/* Black Friday sale: the bar at the top of the header, the flyer and the homepage pop-up (includes/sale-banner.php) */

.sale-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #07120b, #0f2a17 50%, #07120b);
    border-bottom: 1px solid rgba(217, 165, 33, 0.35);
    color: #f2f5ef;
    font-size: 14px;
}

.sale-bar[hidden],
.site-header.is-scrolled .sale-bar {
    display: none;
}

.sale-bar__link {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    min-width: 0;
    padding: 8px 48px 8px 16px;
    color: inherit;
    text-decoration: none;
}

.sale-bar__tag {
    padding: 2px 10px;
    border-radius: 999px;
    background: #d9a521;
    color: #0b1712;
    font-family: var(--display, inherit);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sale-bar__text {
    font-weight: 600;
}

.sale-bar__clock {
    color: #d9a521;
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
}

.sale-bar__cta {
    color: #34c05d;
    font-weight: 600;
}

.sale-bar__link:hover .sale-bar__cta {
    text-decoration: underline;
}

.sale-bar__close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(242, 245, 239, 0.66);
    cursor: pointer;
}

.sale-bar__close:hover,
.sale-bar__close:focus-visible {
    background: rgba(242, 245, 239, 0.1);
    color: #f2f5ef;
}

@media (max-width: 640px) {
    .sale-bar {
        font-size: 13px;
    }

    .sale-bar__cta,
    .sale-bar__more {
        display: none;
    }

    .sale-bar__link {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 40px 8px 12px;
        white-space: nowrap;
    }

    .sale-bar__tag {
        padding: 2px 8px;
        font-size: 11px;
    }
}

.sale-flyer {
    padding: 32px 0;
}

.sale-flyer__link {
    display: block;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(8, 145, 58, 0.18);
    transition: transform 0.2s;
}

.sale-flyer__link:hover {
    transform: translateY(-2px);
}

.sale-flyer img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .sale-flyer__link {
        max-width: 480px;
        border-radius: 16px;
    }
}

.sale-popup {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 1px solid rgba(52, 192, 93, 0.5);
    border-radius: 18px;
    background: #07120b;
    overflow: hidden;
}

.sale-popup::backdrop {
    background: rgba(3, 8, 5, 0.75);
}

.sale-popup a {
    display: block;
}

.sale-popup img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 34px);
    object-fit: contain;
}

.sale-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 18, 11, 0.8);
    color: #f2f5ef;
    font-size: 16px;
    cursor: pointer;
}

/* Plan cards on the homepage and pricing page */
.site-plan__price s {
    display: block;
    color: var(--auth-muted);
    font-size: 16px;
    font-weight: 400;
}

.site-plan__sale {
    position: absolute;
    top: -12px;
    right: 28px;
    padding: 3px 12px;
    border-radius: 999px;
    background: #d9a521;
    color: #0b1712;
    font-size: 13px;
    font-weight: 700;
}
