/**
 * Auto-Coupon No Referral Styles
 * Banner and UI styles for auto-coupon feature
 */

/* Success Banner - Beautiful design for when coupon is applied */
.ethos-auto-coupon-success-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 25px 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    animation: slideDown 0.4s ease-out;
    border: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ethos-auto-coupon-success-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.ethos-auto-coupon-success-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: scaleIn 0.3s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.ethos-auto-coupon-success-text {
    flex: 1;
    color: #fff;
}

.ethos-auto-coupon-success-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.ethos-auto-coupon-success-message {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Poppins', sans-serif;
}

.ethos-auto-coupon-success-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ethos-auto-coupon-success-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ethos-auto-coupon-success-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Error/Warning Banner */
.ethos-auto-coupon-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ethos-auto-coupon-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ethos-auto-coupon-banner-message {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    font-family: 'Poppins', sans-serif;
}

.ethos-auto-coupon-banner-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #856404;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ethos-auto-coupon-banner-close:hover {
    opacity: 1;
}

.ethos-auto-coupon-banner-close:focus {
    outline: none;
    opacity: 1;
}

/* Collapsible Coupon Section Toggle */
.ethos-coupon-section-toggle {
    background: #f5f5f5;
    border: 1px solid #eae9f3;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 0 0 10px 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ethos-coupon-section-toggle:hover {
    background: #eeeeee;
    border-color: #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ethos-coupon-section-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.ethos-coupon-section-toggle:active {
    transform: translateY(1px);
}

.ethos-coupon-toggle-text {
    flex: 1;
    user-select: none;
}

.ethos-coupon-toggle-icon {
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.3s ease;
    user-select: none;
    display: inline-block;
}

.ethos-coupon-section-toggle[aria-expanded="false"] .ethos-coupon-toggle-icon {
    transform: rotate(-90deg);
}

.ethos-coupon-collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Referral Error Banner */
.ethos-coupon-referral-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 15px 0;
    color: #721c24;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.ethos-coupon-referral-error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ethos-coupon-referral-error-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.ethos-coupon-referral-error-message {
    flex: 1;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ethos-auto-coupon-success-banner {
        padding: 16px 20px;
        margin: 0 0 20px 0;
        border-radius: 10px;
    }
    
    .ethos-auto-coupon-success-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .ethos-auto-coupon-success-title {
        font-size: 16px;
    }
    
    .ethos-auto-coupon-success-message {
        font-size: 13px;
    }
    
    .ethos-auto-coupon-success-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .ethos-auto-coupon-banner {
        padding: 12px 15px;
        margin: 0 0 15px 0;
    }
    
    .ethos-auto-coupon-banner-message {
        font-size: 13px;
    }
    
    .ethos-auto-coupon-banner-close {
        font-size: 20px;
        margin-left: 10px;
    }
    
    .ethos-coupon-referral-error {
        padding: 10px 12px;
        font-size: 13px;
    }
}

