/* ====================================================
   WC Smart Discounts – Front Styles
   ==================================================== */

.xoo-wsc-ft-totals {
    display: flex;
    flex-direction: column;
}

.wcsd-notice {
    order: -1;
    margin: 0 0 10px 0;
    border-radius: 8px;
    font-family: inherit;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
}

.woocommerce-cart .wcsd-notice,
.woocommerce-checkout .wcsd-notice {
    order: unset;
    margin-bottom: 16px;
}

/* ── Remise active ── */
.wcsd-notice--active {
    background: #A4F498;
    border: none;
    color: #14532d;
}

/* ── Remise maximale ── */
.wcsd-notice--success {
    background: #A4F498;
    border: none;
    color: #14532d;
}

/* ── Encouragement ── */
.wcsd-notice--info {
    background: #fff;
    border: 2px solid #d4af37;
    color: #1a1a1a;
}

/* Ligne picto + texte */
.wcsd-notice__row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wcsd-notice__icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.wcsd-notice__text {
    font-size: .88rem;
    line-height: 1.4;
    font-weight: 500;
}

.wcsd-notice--active .wcsd-notice__text { color: #166534; }
.wcsd-notice--info .wcsd-notice__text { color: #4b5563; }

/* Badge % horizontal */
.wcsd-notice__pct-wrap {
    margin-bottom: 10px;
}

.wcsd-notice__pct-box {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 8px;
    padding: 10px 16px;
}

.wcsd-notice--info .wcsd-notice__pct-box {
    background: #fff8e1;
    border: 2px solid #d4af37;
}

.wcsd-notice--active .wcsd-notice__pct-box,
.wcsd-notice--success .wcsd-notice__pct-box {
    background: #fff;
    border: 2px solid #166534;
}

.wcsd-notice__pct {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.wcsd-notice--info .wcsd-notice__pct { color: #b45309; }
.wcsd-notice--active .wcsd-notice__pct,
.wcsd-notice--success .wcsd-notice__pct { color: #166534; }

.wcsd-notice__pct-label {
    font-size: .82rem;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

.wcsd-notice--info .wcsd-notice__pct-label { color: #92400e; }
.wcsd-notice--active .wcsd-notice__pct-label,
.wcsd-notice--success .wcsd-notice__pct-label { color: #166534; }

/* Catégorie */
.wcsd-notice__cat {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    margin-top: 2px;
    opacity: .8;
}

/* Barre de progression */
.wcsd-bar {
    height: 7px;
    background: rgba(0,0,0,.08);
    border-radius: 10px;
    overflow: hidden;
}

.wcsd-notice--info .wcsd-bar { background: #f3f4f6; }

.wcsd-bar__fill {
    height: 100%;
    border-radius: 10px;
    background: #166534;
    transition: width .4s ease;
}

.wcsd-bar__fill--gold {
    background: #d4af37;
}

.wcsd-notice__arrow {
    font-size: 22px;
    color: #166534;
    flex-shrink: 0;
}

.wcsd-notice--info .wcsd-notice__arrow {
    color: #b45309;
}

.wcsd-bar__label {
    font-size: .72rem;
    margin-top: 4px;
    text-align: right;
    color: #9ca3af;
}

.wcsd-notice--active .wcsd-bar__label { color: #166534; }
