/* Countdown modal. Colors and font come from inline custom properties per site. */
.vxcm-lock { overflow: hidden; }

.vxcm {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: var(--vxcm-font, inherit);
    color: var(--vxcm-text, #111);
}
.vxcm[hidden] { display: none; }

.vxcm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, .6);
    opacity: 0;
    transition: opacity .25s ease;
}

.vxcm__dialog {
    position: relative;
    display: grid;
    grid-template-columns: 42% 1fr;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: var(--vxcm-bg, #fff);
    border-radius: var(--vxcm-radius, 8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.vxcm--no-image .vxcm__dialog { grid-template-columns: 1fr; max-width: 420px; }

.vxcm--open .vxcm__backdrop { opacity: 1; }
.vxcm--open .vxcm__dialog { transform: none; opacity: 1; }

.vxcm__media { min-height: 100%; }
.vxcm__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.vxcm__body { position: relative; padding: 28px 24px 22px; }

.vxcm__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 26px;
    line-height: 1;
    opacity: .55;
    cursor: pointer;
}
.vxcm__close:hover, .vxcm__close:focus-visible { opacity: 1; }

.vxcm__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vxcm-brand);
}

.vxcm__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #3f9a5b; /* was #e0262a red */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.vxcm__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    /* animation: vxcm-pulse 1.2s ease-in-out infinite; static dot, no pulse */
}

.vxcm__title { margin: 10px 0 6px; font-family: var(--vxcm-heading-font, inherit); font-size: 26px; font-weight: 700; line-height: 1.15; }
.vxcm__text { margin: 0 0 12px; font-size: 15px; opacity: .8; }

.vxcm__perks { margin: 0 0 16px; padding: 0; list-style: none; }
.vxcm__perks li { position: relative; margin: 0 0 6px; padding-left: 22px; font-size: 15px; font-weight: 600; }
.vxcm__perks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--vxcm-brand);
}

.vxcm__timer { margin: 0 0 16px; }
.vxcm__timer[hidden] { display: none; }
.vxcm__timer-label { display: block; margin-bottom: 6px; font-size: 13px; opacity: .7; }
.vxcm__clock {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--vxcm-radius, 8px);
    background: var(--vxcm-text, #111);
    color: var(--vxcm-bg, #fff);
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

.vxcm__expired { margin: 0 0 16px; font-size: 14px; opacity: .8; }
.vxcm__expired[hidden] { display: none; }
.vxcm--expired .vxcm__perks { opacity: .45; text-decoration: line-through; }

.vxcm__cta {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: var(--vxcm-radius, 8px);
    background: var(--vxcm-brand);
    color: var(--vxcm-brand-text, #fff);
    font: inherit;
    font-family: var(--vxcm-button-font, inherit);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: pointer;
}
.vxcm__cta:hover { filter: brightness(1.08); }
.vxcm__cta:focus-visible { outline: 3px solid var(--vxcm-text); outline-offset: 2px; }
.vxcm--live .vxcm__cta { background: #e0262a; color: #fff; }

/* Live and offline parts are both in the markup; the root class picks one. */
.vxcm:not(.vxcm--live) .vxcm__live,
.vxcm--live .vxcm__badge,
.vxcm--live .vxcm__timer,
.vxcm--live .vxcm__expired { display: none; }

.vxcm[data-vxcm-state="toy"] .vxcm__live { background: #7b18a4; }
.vxcm__perks li[hidden] { display: none; }

/* Mobile: bottom sheet. */
@media (max-width: 640px) {
    .vxcm { align-items: flex-end; padding: 0; }
    .vxcm__dialog {
        grid-template-columns: 1fr;
        max-width: none;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }
    .vxcm__media { max-height: 32vh; overflow: hidden; }
    .vxcm__body { padding: 22px 16px 20px; }
    .vxcm__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .vxcm__backdrop, .vxcm__dialog { transition: none; }
    .vxcm__dot { animation: none; }
}

@keyframes vxcm-pulse {
    50% { opacity: .3; }
}

/*
 * The modal now shows the live and toy states, so the floating status link
 * (footer part, a.vxstatus with the online and toy flags) is hidden. The
 * status badge next to the logo is a separate element and stays.
 */
/* Moved to an inline style behind the hideFloatingStatus setting (renderer). */
/* html body a.vxstatus { display: none !important; } */
