/* ==========================================================================
   JTD Quantity Coupon – Frontend Notice Styles
   Works on: Cart, Checkout, Flatsome Off-Canvas Mini Cart
   ========================================================================== */

.jtd-qc-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 12px;
    border-left: 4px solid;
}

/* ── Applied state ── */
.jtd-qc-notice--applied {
    background: #f0faf4;
    border-color: #2ea05f;
    color: #1a4a30;
}

/* ── Promo (not yet applied) state ── */
.jtd-qc-notice--promo {
    background: #fff8f0;
    border-color: #f59e0b;
    color: #5c3a00;
}

/* ── Tag badges ── */
.jtd-qc-notice__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 2px;
    width: fit-content;
}

.jtd-qc-notice__tag--applied {
    background: #2ea05f;
    color: #fff;
}

.jtd-qc-notice__tag--promo {
    background: #f59e0b;
    color: #fff;
}

/* ── Text lines ── */
.jtd-qc-notice__current {
    display: block;
}

.jtd-qc-notice__upsell {
    display: block;
    opacity: 0.85;
    font-size: 13px;
}

.jtd-qc-notice__max {
    color: #2ea05f;
    font-weight: 600;
    opacity: 1;
}

/* ── Tiers list (shown when qty not yet reached first tier) ── */
.jtd-qc-tiers-list {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jtd-qc-tiers-list li {
    font-size: 12.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.04);
}

.jtd-qc-tiers-list li::before {
    content: '›  ';
    opacity: 0.5;
}

/* Reached tier gets a green highlight */
.jtd-qc-tiers-list li.jtd-qc-tier--reached {
    background: #d4f0e2;
    color: #1a4a30;
    font-weight: 600;
}

.jtd-qc-tiers-list li.jtd-qc-tier--reached::before {
    content: '✓  ';
    opacity: 1;
}

/* ==========================================================================
   Mini-cart specific overrides
   Flatsome's off-canvas cart has a narrower column; compact the notice a bit.
   ========================================================================== */
.canvas-cart .jtd-qc-notice,
.woocommerce-mini-cart-item ~ * .jtd-qc-notice,
.widget_shopping_cart .jtd-qc-notice {
    font-size: 12.5px;
    padding: 10px 12px;
    gap: 4px;
    margin-top: 10px;
    margin-bottom: 0;
}

.canvas-cart .jtd-qc-notice__tag,
.widget_shopping_cart .jtd-qc-notice__tag {
    font-size: 10px;
}

.canvas-cart .jtd-qc-tiers-list li,
.widget_shopping_cart .jtd-qc-tiers-list li {
    font-size: 12px;
}
