/* ── Promotions: sticky offer bar and the offer box on a sales page ─────────────
   promotions/templates/promotions/_bar.html and _offer_box.html. The bar is the
   first thing in <body>, so sticky top:0 holds it above the navbar while the page
   scrolls. Two rows on a phone: offer on top, countdown and button below. */
.tc-promo-bar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #1f2a17;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.tc-promo-bar[hidden] { display: none; }
.tc-promo-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2.75rem 0.5rem 1rem;
    position: relative;
}
.tc-promo-bar__badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--secondary-color);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}
.tc-promo-bar__headline {
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.3;
}
.tc-promo-bar__timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.tc-promo-bar__ends {
    font-size: 0.82rem;
    opacity: 0.85;
    white-space: nowrap;
}
.tc-promo-bar__cta.btn {
    font-weight: 700;
    white-space: nowrap;
}
.tc-promo-bar__close {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.75;
}
.tc-promo-bar__close:hover,
.tc-promo-bar__close:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.12); }

.tc-promo-countdown {
    display: inline-flex;
    gap: 0.4rem;
    font-variant-numeric: tabular-nums;
}
.tc-promo-countdown__unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.2rem;
    padding: 0.35rem 0.4rem;
    border-radius: 8px;
    background: #f1f6ec;
    color: #1f2a17;
}
.tc-promo-countdown__unit b { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.tc-promo-countdown__unit small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.8; }
.tc-promo-countdown--compact { gap: 0.25rem; }
.tc-promo-countdown--compact .tc-promo-countdown__unit {
    min-width: 2.5rem;
    padding: 0.15rem 0.3rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.tc-promo-countdown--compact .tc-promo-countdown__unit b { font-size: 1rem; }
.tc-promo-countdown--compact .tc-promo-countdown__unit small { font-size: 0.6rem; }

@media (max-width: 767px) {
    .tc-promo-bar__inner { gap: 0.35rem 0.6rem; padding: 0.45rem 2.5rem 0.5rem 0.75rem; }
    .tc-promo-bar__headline { font-size: 0.9rem; flex: 1 1 60%; }
    .tc-promo-bar__ends { display: none; }
}

.tc-promo-box {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1rem;
    border-radius: 12px;
    background: #f7faf4;
    border: 1px dashed var(--secondary-color);
    text-align: center;
}
.tc-promo-box__headline { margin: 0.6rem 0 0.25rem; font-size: 1.2rem; font-weight: 700; }
.tc-promo-box__text { margin: 0 0 0.5rem; }
.tc-promo-box__ends { margin: 0.5rem 0 0.4rem; font-size: 0.9rem; color: #444; }
.tc-promo-box__ended { margin: 0.5rem 0 0; font-weight: 600; }
.tc-promo-box__preview {
    margin: 0 0 0.6rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: #fff3cd;
    color: #664d03;
    font-size: 0.85rem;
}
.tc-promo-was {
    margin-right: 0.4em;
    font-size: 0.55em;
    font-weight: 600;
    color: #777;
}
