/* ── Promo Banner — Frontend CSS v1.0.1 ── */

#promo-banner-wrap {
    /* FIX #5: explicit position so the element is always in normal flow
       by default; pb-sticky overrides to sticky when the option is on. */
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 999999;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#promo-banner-wrap.pb-sticky {
    position: sticky;
    position: -webkit-sticky;
}

#promo-banner-wrap.pb-hidden {
    display: none !important;
}

.pb-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-right: 40px; /* space for close btn */
}

.pb-text {
    flex: 1 1 auto;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pb-text strong {
    font-weight: 800;
}

/* ── CTA Button ── */
.pb-cta-btn {
    display: inline-block;
    flex-shrink: 0;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9em;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    white-space: nowrap;
}
.pb-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none !important;
}
.pb-cta-btn:active {
    transform: translateY(0);
}

/* ── Close Button ── */
.pb-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 4px 8px;
    border-radius: 4px;
    transition: opacity 0.2s;
}
.pb-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.12);
}

/* ── Countdown ── */
.pb-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.95em;
    white-space: nowrap;
    background: rgba(0,0,0,0.18);
    border-radius: 5px;
    padding: 4px 10px;
    letter-spacing: 0.03em;
}

.pb-countdown .pb-unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.pb-countdown .pb-num {
    font-size: 1.15em;
    font-weight: 900;
    display: block;
}

.pb-countdown .pb-label {
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.85;
    text-transform: uppercase;
    display: block;
}

.pb-countdown .pb-sep {
    font-size: 1.2em;
    font-weight: 900;
    margin: 0 1px;
    padding-bottom: 6px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .pb-inner {
        gap: 10px;
        padding-right: 36px;
    }
    .pb-text {
        font-size: 0.92em;
    }
    .pb-cta-btn {
        padding: 8px 16px;
        font-size: 0.82em;
    }
    .pb-countdown {
        font-size: 0.82em;
    }
}
