/**
 * Natura Black Friday - Styles Front-End
 * Couleurs : Vert foncé (#21461A) & Blanc (#ffffff)
 * Angles : Pas d'arrondis (border-radius: 0)
 */

/* ==========================================================================
   1. Bandeau Haut de Page (Sitewide Top Banner)
   ========================================================================== */
#nbf-top-banner {
    position: relative;
    width: 100%;
    z-index: 99999;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    background-color: #21461A;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nbf-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
}

.nbf-banner-badge {
    background: #ffffff;
    color: #21461A;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 0 !important;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: none;
    line-height: 1.2;
}

.nbf-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: #ffffff;
}

.nbf-banner-dates {
    font-weight: 700;
    color: #ffffff;
}

.nbf-banner-promo {
    color: #ffffff;
}

.nbf-banner-promo strong {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #ffffff;
}

.nbf-banner-cta {
    background: transparent;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 0 !important;
    border: 1.5px solid #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.4;
}

.nbf-banner-cta:hover {
    background: #ffffff;
    color: #21461A !important;
    border-color: #ffffff;
}

.nbf-banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 0 !important;
    transition: color 0.2s ease;
}

.nbf-banner-close:hover {
    color: #ffffff;
}

/* ==========================================================================
   2. Encadré Page Produit (Product Page Banner)
   ========================================================================== */
.nbf-product-promo-box {
    margin: 18px 0 22px;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #21461A;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.nbf-product-promo-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #21461A;
    border-radius: 0 !important;
}

.nbf-promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(33, 70, 26, 0.15);
    padding-bottom: 8px;
}

.nbf-badge-blackfriday {
    background: #21461A;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    border-radius: 0 !important;
    text-transform: uppercase;
}

.nbf-promo-dates {
    font-size: 12px;
    font-weight: 700;
    color: #21461A;
}

.nbf-promo-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nbf-promo-rule {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 0 !important;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    transition: all 0.25s ease;
}

.nbf-promo-rule.nbf-highlight {
    background: #f4f7f2;
    border: 1.5px solid #21461A;
    border-radius: 0 !important;
}

.nbf-rule-icon {
    font-size: 18px;
    line-height: 1.2;
}

.nbf-rule-text {
    font-size: 13px;
    color: #21461A;
    line-height: 1.45;
}

.nbf-rule-text strong {
    color: #21461A;
    font-weight: 700;
}

.nbf-promo-rule.nbf-highlight .nbf-rule-text strong {
    color: #21461A;
}

.nbf-promo-rule.nbf-rule-excluded {
    background: #fdf6f6;
    border: 1px solid #fed7d7;
    border-left: 3px solid #b32d2e;
    border-radius: 0 !important;
}

.nbf-promo-rule.nbf-rule-excluded .nbf-rule-text {
    color: #7f1d1d;
}

.nbf-promo-rule.nbf-rule-excluded .nbf-rule-text strong {
    color: #991b1b;
}

.nbf-product-promo-box.nbf-promo-box-excluded {
    border-color: #888888;
}

.nbf-product-promo-box.nbf-promo-box-excluded::before {
    background: #888888;
}

.nbf-applied-tag {
    display: inline-block;
    color: #21461A;
    font-weight: 700;
    margin-left: 4px;
}

.nbf-promo-footer {
    margin-top: 12px;
    font-size: 12px;
    color: #21461A;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nbf-check-icon {
    color: #21461A;
    font-weight: bold;
}

/* ==========================================================================
   3. Notifications Panier & Checkout (Cart Progress & Success)
   ========================================================================== */
.nbf-cart-notice-wrapper {
    margin: 15px 0 25px;
    font-family: 'Montserrat', sans-serif;
}

.nbf-cart-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 0 !important;
    border: 2px solid #21461A;
    background: #ffffff;
    color: #21461A;
}

.nbf-cart-notice-progress {
    background: #ffffff;
    border-color: #21461A;
    color: #21461A;
}

.nbf-cart-notice-success {
    background: #f4f7f2;
    border-color: #21461A;
    color: #21461A;
}

.nbf-notice-icon {
    font-size: 24px;
    line-height: 1;
}

.nbf-notice-content {
    flex: 1;
}

.nbf-notice-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #21461A;
    font-weight: 600;
}

.nbf-progress-bar-container {
    width: 100%;
    height: 10px;
    background: #e6ede4;
    border-radius: 0 !important;
    overflow: hidden;
    margin: 8px 0;
}

.nbf-progress-bar {
    height: 100%;
    background: #21461A;
    border-radius: 0 !important;
    transition: width 0.5s ease-in-out;
}

.nbf-notice-subtext {
    font-size: 12px;
    color: #21461A;
    font-style: italic;
}

/* ==========================================================================
   4. Side Cart Mini-Bandeau
   ========================================================================== */
.nbf-sidecart-notice {
    background: #ffffff;
    border: 1.5px solid #21461A;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 0 !important;
    margin: 8px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #21461A;
}

/* ==========================================================================
   5. Responsive adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .nbf-banner-container {
        padding: 8px 35px 8px 12px;
        font-size: 12px;
        gap: 8px;
    }

    .nbf-banner-badge {
        font-size: 10px;
        padding: 3px 7px;
        border-radius: 0 !important;
    }

    .nbf-banner-cta {
        font-size: 11px;
        padding: 3px 10px;
        border-radius: 0 !important;
    }

    .nbf-product-promo-box {
        padding: 12px 14px;
        border-radius: 0 !important;
    }

    .nbf-promo-rule {
        border-radius: 0 !important;
    }

    .nbf-rule-text {
        font-size: 12px;
    }
}
