:root {
    --promo-navy: #0b2454;
    --promo-navy-deep: #07193d;
    --promo-orange: #ff7a00;
    --promo-orange-hover: #f26c00;
    --promo-text-muted: #4b5a73;
    --promo-border: #e2e8f0;
}

/* =========================================
   SHARED PRIMARY CTA (High Contrast)
   ========================================= */
.promo-btn {
    background-color: var(--promo-orange);
    color: var(--promo-navy-deep) !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: .75rem;
    white-space: nowrap;
    display: inline-flex;
    align-self: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.promo-btn:hover,
.promo-btn:focus-visible {
    background-color: var(--promo-orange-hover);
    outline: 2px solid #fff;
    outline-offset: 2px;
    color: var(--promo-navy-deep) !important;
}

/* =========================================
   1. TOP ANNOUNCEMENT BAR
   ========================================= */
.promo-bar {
    position: relative;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, var(--promo-navy-deep) 0%, var(--promo-navy) 50%, var(--promo-navy-deep) 100%);
    border-bottom: 2px solid var(--promo-orange);
    color: #fff;
    padding: 8px 48px 8px 52px;
}

.promo-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, #3375b125, transparent 60%), repeating-linear-gradient(130deg, transparent 0 45px, #ffffff09 46px 47px, transparent 48px 100px);
}

.promo-bar.is-hidden {
    display: none !important;
}

/* Subtle tag instead of a competing orange pill */
.promo-bar__tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffb870;
    background-color: rgba(255, 122, 0, 0.14);
    border: 1px solid rgba(255, 122, 0, 0.45);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.promo-bar__text {
    margin: 0;
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 1.4;
}

.promo-bar__text strong {
    color: #ffc478;
}

/* Grouped, jitter-free countdown */
.promo-timer {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 4px 10px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.promo-timer__unit {
    min-width: 30px;
    line-height: 1.1;
    align-self: center;
}

.promo-timer__num {
    font-size: 0.925rem;
    font-weight: 800;
}

.promo-timer__label {
    font-size: 0.625rem;
    opacity: .75;
}

.promo-timer__sep {
    font-weight: 700;
    opacity: .5;
    padding-bottom: 10px;
    user-select: none;
}

/* Anchored far-left close button with 36x36px hit area */
.promo-bar__close {
    position: absolute;
    top: 50%;
    left: 12px;
    right: auto;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.promo-bar__close:hover,
.promo-bar__close:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

/* =========================================
   2. FLOATING PROMO CARD
   ========================================= */
.promo-card {
    position: fixed !important;
    bottom: 24px;
    right: 24px;
    left: auto;
    inset-inline-start: 24px;
    z-index: 9999990;
    width: min(400px, calc(100vw - 32px));
    background-color: #fff;
    border: 1px solid var(--promo-border);
    border-radius: 20px;
    box-shadow: 0 18px 40px -12px rgba(11, 36, 84, 0.18);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
}

.promo-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px -12px rgba(11, 36, 84, 0.24);
}

.promo-card__content {
    flex: 1;
    min-width: 0;
}

.promo-card__eyebrow {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 700;
    color: #c25500;
    background-color: #fff3e6;
    padding: 2px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.promo-card__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--promo-navy);
    line-height: 1.3;
}

.promo-card__desc {
    margin: 0 0 14px;
    font-size: 0.875rem;
    color: var(--promo-text-muted);
    line-height: 1.55;
}

/* Stretched link makes whole card clickable without nesting interactive tags */
.promo-card__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: 1;
}

.promo-card__media {
    flex-shrink: 0;
    width: 140px;
    padding-top: 8px;
}

.promo-card__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Compact visual circle (28px) with generous 44px touch target */
.promo-card__close {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    inset-inline-end: 12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background-color: #f1f5f9;
    color: var(--promo-text-muted);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.promo-card__close::before {
    content: "";
    position: absolute;
    inset: -8px;
}

.promo-card__close:hover,
.promo-card__close:focus-visible {
    background-color: #e2e8f0;
    color: var(--promo-navy);
    outline: none;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .promo-bar {
        --wp--preset--spacing--50: .5rem;
        padding: 12px 0;
    }

    .promo-bar__inner {
        flex-direction: column;
        gap: .75rem;
    }

    .promo-bar__tag {
        padding: 3px 10px 0px;
        margin-top: -1rem;
    }

    .promo-bar__text {
        font-size: 0.825rem;
        text-align: center;
    }

    .promo-bar__text strong {
        display: block;
    }

    .promo-timer {
        padding: 2px 10px;
        width: 100%;
    }

    .promo-timer__unit {
        min-width: 24px;
    }

    .promo-timer__num {
        font-size: 0.8rem;
    }

    .promo-btn--sm {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: .25rem;
    }

    .promo-bar__close {
        top: 6px;
        left: 6px;
        right: auto;
        inset-inline-end: 6px;
        transform: none;
    }

    /* Compact bottom sheet on mobile */
    .promo-card {
        bottom: 12px;
        left: 12px;
        right: 12px;
        inset-inline: 12px;
        width: auto;
        padding: 16px;
        border-radius: 16px;
    }

    .promo-card__title {
        font-size: 1rem;
    }

    .promo-card__desc {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .promo-card__media {
        width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .promo-card,
    .promo-btn,
    .promo-btn__arrow {
        transition: none;
    }
}