/**
 * Promotions (since 2.26.0): the deal label ("Limited time · Early Black Friday offer"), the struck-through regular price and
 * the countdown wherever a price or Premium call to action shows: homepage hero and toolkit bar, Premium pages, the pricing
 * box, the checkout order card, the article sidebar and the category Premium box. Countdowns are filled by
 * assets/js/promo-*.js. New file name for every change: the live optimizer strips ?ver=.
 */

/* The countdown (all places) */
.st-clock { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-clock[hidden] { display: none !important; }
.st-clock b { font-weight: 800; }

/* The deal tag (all places) */
.st-deal-tag, .sth-deal-tag, .stk-deal-tag, .st-co-deal-t {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    background: #f5c518; color: #111111 !important;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 12.5px; font-weight: 800; line-height: 1.2;
    letter-spacing: 0.06em; text-transform: uppercase;
}

/* Homepage hero: tag + countdown, then "Join Premium for ~~CA$299.99/year~~ CA$149.99/year →" */
.sth .sth-deal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 28px !important; }
.sth .sth-deal .st-clock { color: var(--sth-text); font-size: clamp(15px, 1.05vw, 17px); font-weight: 600; }
.sth .sth-deal .st-clock b { color: var(--sth-gold); }
.sth .sth-join-deal { margin-top: 12px !important; }
.sth .sth-join-deal s { color: var(--sth-muted); font-weight: 500; text-decoration-thickness: 2px; }

/* Premium hero: the flag pill holds the label and the countdown; the button shows the struck regular price */
.sth .sth-flag-deal { gap: 6px 14px; padding: 9px 18px; }
.sth .sth-flag-deal .sth-flag-t { color: var(--sth-gold); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: clamp(13px, 0.95vw, 15px); }
.sth .sth-flag-deal .st-clock { color: var(--sth-text); font-weight: 600; }
.sth .sth-flag-deal .st-clock b { color: var(--sth-gold); }
.sth a.sth-buy span s, .sph-bar a.sph-bar-btn span s { margin-right: 4px; font-weight: 500; opacity: 0.65; text-decoration-thickness: 2px; }

/* Toolkit closing bar */
.stk .stk-close-deal { border-color: rgba(245, 197, 24, 0.55); box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.15) inset; }
.stk .stk-deal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.stk .stk-deal .st-clock { color: var(--stk-text); font-size: 15px; font-weight: 600; }
.stk .stk-deal .st-clock b { color: #f5c518; }
html[data-theme="light"] .stk .stk-deal .st-clock b { color: #8a6606; }

/* Above the pricing box: banner text and countdown side by side */
.spr .spr-banner:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; }
.spr .spr-banner .st-clock { font-weight: 600; }
.spr .spr-banner .st-clock b { font-size: 1.08em; }

/* Checkout order card (dark card in both themes) */
.st-co-deal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 6px !important; }
.st-co-deal .st-clock { color: #f5f5f2 !important; font-size: 14.5px; font-weight: 600; }
.st-co-deal .st-clock b, .st-co-deal .st-clock span { color: inherit !important; }
.st-co-deal .st-clock b { color: #f5c518 !important; }

/* Article sidebar */
.sta-mini.sta-mini-deal { border-color: #e2b714; }
.sta-mini-deal p s { opacity: 0.6; font-weight: 500; }
.sta-mini-deal p b { font-weight: 800; }
.sta-mini-deal .st-clock { display: inline-flex; margin: 10px 0 2px; font-size: 14.5px; font-weight: 600; }
.sta-mini-deal .st-clock b { color: #8a6606; }
html[data-theme="dark"] .sta-mini-deal .st-clock b { color: #f5c518; }

/* Category Premium box */
.stc-prem .stc-prem-t s { opacity: 0.6; }
.stc-prem .stc-prem-r .st-clock { font-size: 14.5px; font-weight: 600; }
.stc-prem .stc-prem-r .st-clock b { color: #8a6606; }
html[data-theme="dark"] .stc-prem .stc-prem-r .st-clock b { color: #f5c518; }

/* The tag inside other components' text styles (article sidebar, category box): keep the pill's own type */
.sta-mini .st-deal-tag, .stc-prem .stc-prem-t .st-deal-tag {
    display: inline-block !important; margin: 0 0 10px !important; padding: 5px 10px !important; border-radius: 8px !important;
    background: #f5c518 !important; color: #111111 !important;
    font-size: 11.5px !important; font-weight: 800 !important; line-height: 1.35 !important; letter-spacing: 0.05em !important; text-transform: uppercase !important;
}

.stc-prem .stc-prem-t .st-deal-tag { display: table !important; }

/* Phones: the buttons keep to the deal price (the struck price is in the line under them) */
@media (max-width: 560px) {
    .sth a.sth-buy span s { display: none; }
}
@media (max-width: 400px) {
    .sph-bar a.sph-bar-btn span s { display: none; }
}
