/*
 * The sale banner (protected/views/_shared/_saleBanner.php): one line across the page under the site
 * header while a sale runs on the source (SourceSale). Public pages run on Bootstrap 5 + the legacy
 * layer (10px root) or the clean stack (16px root), so every size here is px.
 *
 * Colour: a theme sets --theme-sale-banner-bg / --theme-sale-banner-ink / --theme-sale-banner-rule on
 * :root (LTC Connection and InsuranceStudy: a light gold band with deep brown type). Without them the strip is
 * the source's own strong brand colour with white type (--theme-brand-strong: the generated custom.css
 * of the standard templates), and a neutral slate where a source has no brand token at all.
 * The strip is not sticky: it scrolls away under the header, so no header offset changes.
 */
.sale-banner {
    --sale-banner-bg: var(--theme-sale-banner-bg, var(--theme-brand-strong, #25303B));
    --sale-banner-ink: var(--theme-sale-banner-ink, #FFFFFF);
    --sale-banner-rule: var(--theme-sale-banner-rule, transparent);
    background: var(--sale-banner-bg);
    border-bottom: 1px solid var(--sale-banner-rule);
    color: var(--sale-banner-ink);
    text-align: center;
}
.sale-banner .sale-banner-inner {
    padding-top: 10px;
    padding-bottom: 10px;
}
.sale-banner .sale-banner-text {
    display: inline-block;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    color: inherit;
    text-wrap: balance;
}
.sale-banner .sale-banner-icon {
    margin-right: 8px;
    font-size: 14px;
}
/* the whole line is the link: underlined on hover and focus only, so at rest it reads as a notice */
.sale-banner .sale-banner-link,
.sale-banner .sale-banner-link:visited {
    color: inherit;
    text-decoration: none;
    border-radius: 3px;
}
.sale-banner .sale-banner-link:hover,
.sale-banner .sale-banner-link:focus {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sale-banner .sale-banner-link:active {
    opacity: .82;
}
.sale-banner .sale-banner-link:focus {
    outline: 0;
}
.sale-banner .sale-banner-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
@media (min-width: 768px) {
    .sale-banner .sale-banner-text {
        font-size: 16px;
    }
}
@media print {
    .sale-banner {
        display: none;
    }
}
