/* Trial + checkout discount promo banners */
/* ── Free trial promo banner (matches V2 landing light hero) ── */

.rx-v2-discount-offer-banner {
    top: var(--rx-v2-trial-banner-h, 0px);
    border-top: 1px solid rgba(196, 93, 60, 0.12);
}

.rx-v2-discount-offer-banner .rx-v2-trial-offer-banner__inner {
    padding: 0.95rem 1.35rem;
    gap: 1rem;
}

.rx-v2-discount-offer-banner .rx-v2-trial-offer-banner__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
}

.rx-v2-discount-offer-banner .rx-v2-trial-offer-banner__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.rx-v2-discount-offer-banner__headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin: 0.08rem 0 0;
    line-height: 1;
}

.rx-v2-discount-offer-banner__pct {
    font-size: clamp(1.55rem, 3.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--rx2-orange-deep, #a84c30);
}

.rx-v2-discount-offer-banner__off {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #161618;
}

.rx-v2-discount-offer-banner__deadline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-left: 0.1rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(196, 93, 60, 0.11);
    border: 1px solid rgba(196, 93, 60, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.rx-v2-discount-offer-banner__days,
.rx-v2-discount-offer-banner__date {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--rx2-orange-deep, #a84c30);
    white-space: nowrap;
}

.rx-v2-discount-offer-banner__date::before {
    content: "·";
    margin-right: 0.5rem;
    opacity: 0.55;
    font-weight: 600;
}

.rx-v2-discount-offer-banner .rx-v2-trial-offer-banner__detail {
    margin-top: 0.35rem;
    font-size: 0.84rem;
}

.rx-v2-discount-offer-banner .rx-v2-trial-offer-banner__cta {
    min-height: 2.55rem;
    padding: 0 1.15rem;
    font-size: 0.88rem;
}

body.rx-v2-discount-offer-active.rx-v2-upgrade-page .rx-v2-upgrade-hero-wrap,
body.rx-v2-discount-offer-active.rx-v2-landing-page .rx-v2-landing-hero {
    scroll-margin-top: calc(var(--rx-v2-trial-banner-h, 0px) + var(--rx-v2-discount-banner-h, 0px));
}

.rx-v2-trial-offer-banner {
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(196, 93, 60, 0.22);
    background:
        linear-gradient(90deg, rgba(196, 93, 60, 0.1) 0%, rgba(232, 168, 124, 0.06) 42%, rgba(255, 255, 255, 0.04) 100%),
        rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #161618;
}

.rx-v2-trial-offer-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: min(72rem, 100%);
    max-width: 100%;
    margin: 0 auto;
    padding: 0.8rem 1.25rem;
    box-sizing: border-box;
}

.rx-v2-trial-offer-banner__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.rx-v2-trial-offer-banner__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    color: var(--rx2-orange-deep, #a84c30);
    background: rgba(196, 93, 60, 0.1);
    border: 1px solid rgba(196, 93, 60, 0.2);
}

.rx-v2-trial-offer-banner__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.rx-v2-trial-offer-banner__copy {
    flex: 1 1 12rem;
    min-width: 0;
}

.rx-v2-trial-offer-banner__eyebrow {
    display: block;
    margin: 0 0 0.18rem;
    color: var(--rx2-orange, #c45d3c);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.64rem;
    font-weight: 700;
}

.rx-v2-trial-offer-banner__title {
    display: block;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #161618;
}

.rx-v2-trial-offer-banner__detail {
    margin: 0.18rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #5c5c63;
}

.rx-v2-trial-offer-banner__countdown {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.rx-v2-trial-offer-banner__countdown strong {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.98rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: var(--rx2-orange-deep, #a84c30);
    line-height: 1;
}

.rx-v2-trial-offer-banner__cta {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    min-height: 2.35rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #161618;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rx-v2-trial-offer-banner__cta:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #000 !important;
}

.rx-v2-trial-offer-banner__pulse {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rx2-orange, #c45d3c);
    box-shadow: 0 0 16px rgba(196, 93, 60, 0.45);
    animation: rx-v2-trial-pulse 1.8s ease-in-out infinite;
}

@keyframes rx-v2-trial-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1); }
}

body.rx-v2-trial-offer-active.rx-v2-landing-page .rx-vela-nav {
    scroll-margin-top: 3.75rem;
}

@media (max-width: 720px) {
    .rx-v2-discount-offer-banner .rx-v2-trial-offer-banner__inner {
        padding: 0.85rem 1rem;
    }

    .rx-v2-discount-offer-banner__pct {
        font-size: 1.45rem;
    }

    .rx-v2-discount-offer-banner__off {
        font-size: 1rem;
    }

    .rx-v2-discount-offer-banner__deadline {
        margin-left: 0;
        padding: 0.32rem 0.62rem;
    }

    .rx-v2-discount-offer-banner__days,
    .rx-v2-discount-offer-banner__date {
        font-size: 0.8rem;
    }

    .rx-v2-trial-offer-banner__inner {
        display: grid;
        grid-template-columns: 2.25rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 0.45rem 0.65rem;
        padding: 0.7rem 0.85rem;
        align-items: start;
    }

    .rx-v2-trial-offer-banner__icon {
        grid-row: 1 / span 2;
        align-self: start;
    }

    .rx-v2-trial-offer-banner__copy {
        grid-column: 2;
        min-width: 0;
    }

    .rx-v2-trial-offer-banner__actions {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .rx-v2-trial-offer-banner__detail {
        font-size: 0.76rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rx-v2-trial-offer-banner__countdown {
        min-width: 0;
        flex: 0 0 auto;
    }

    .rx-v2-trial-offer-banner__countdown strong {
        font-size: 0.92rem;
    }

    .rx-v2-trial-offer-banner__cta {
        flex: 0 0 auto;
        min-width: 4.75rem;
        padding: 0 1rem;
    }

    .rx-v2-trial-offer-banner__pulse {
        display: none;
    }
}

@media (max-width: 420px) {
    .rx-v2-trial-offer-banner__title {
        font-size: 0.86rem;
    }

    .rx-v2-trial-offer-banner__eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }
}