/* Site-wide sale (inc/sale.php): top-bar ticker, product badge, struck "was" price, popup.
   Loaded only while the sale is on. Black + logo yellow, like the brand. */

/* ---------- badge + was price ---------- */
.vz-salebadge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--r-pill);
    background: var(--logo-yellow);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
    box-shadow: 0 6px 16px -8px rgba(10, 10, 10, .45), inset 0 0 0 1px rgba(10, 10, 10, .12);
}
.vz-items--list .vz-salebadge { top: 4px; right: 4px; height: 20px; padding: 0 6px; font-size: 11px; }

.vz-was {
    font-family: var(--font-mono);
    font-size: .78em;
    font-weight: 500;
    color: var(--muted);
    text-decoration-thickness: 1px;
    white-space: nowrap;
}
.vz-card__price, .vz-item__price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }

.vz-buybox__sale { display: flex; align-items: center; gap: 10px; margin: 0; width: 100%; order: 3; }
.vz-buybox__sale .vz-was { font-size: 16px; }
.vz-buybox__sale .vz-salebadge { position: static; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .12); }

/* ---------- ticker in the black top bar ---------- */
.vz-ticker { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 100%; }
.vz-ticker ~ .vz-topbar__help { flex-shrink: 0; white-space: nowrap; }
.vz-ticker__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.vz-ticker__track { display: flex; width: max-content; animation: vz-ticker 60s linear infinite; }
.vz-ticker__group { display: flex; flex-shrink: 0; }
.vz-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-right: 36px;
    white-space: nowrap;
    color: #F5F5F5;
    font-weight: 500;
}
.vz-ticker__item:first-child { color: var(--logo-yellow); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.vz-ticker__item svg { color: var(--logo-yellow); flex-shrink: 0; }
.vz-ticker:hover .vz-ticker__track,
.vz-ticker:focus-within .vz-ticker__track,
.vz-ticker.is-paused .vz-ticker__track { animation-play-state: paused; }

.vz-ticker__toggle {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #F5F5F5;
    cursor: pointer;
}
.vz-ticker__toggle:hover { background: rgba(255, 255, 255, .22); }
.vz-ticker__toggle:focus-visible { outline: 2px solid var(--logo-yellow); outline-offset: 2px; }
/* pause bars → play triangle */
.vz-ticker__pause { width: 8px; height: 8px; border-inline: 2.5px solid currentColor; box-sizing: border-box; }
.vz-ticker.is-paused .vz-ticker__pause {
    border: 0;
    width: 0;
    height: 0;
    border-left: 7px solid currentColor;
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
    margin-left: 2px;
}

@keyframes vz-ticker { to { transform: translateX(-50%); } }

@media (max-width: 1119px) {
    .vz-topbar__row { justify-content: flex-start; }
    .vz-ticker { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .vz-ticker__track { animation: none; width: auto; }
    .vz-ticker__group[aria-hidden] { display: none; }
    .vz-ticker__group { flex-wrap: nowrap; overflow: hidden; }
    .vz-ticker__toggle { display: none; }
}

/* ---------- popup ---------- */
.vz-salepop {
    width: min(460px, calc(100vw - 32px));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: var(--r-dialog);
    background: transparent;
    color: #F5F5F5;
    overflow: visible;
}
.vz-salepop::backdrop { background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vz-salepop[open] { animation: vz-salepop-in .32s cubic-bezier(.2, .8, .2, 1); }

.vz-salepop__card {
    position: relative;
    overflow: hidden;
    padding: 36px 32px 28px;
    border-radius: var(--r-dialog);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(249, 224, 27, .22), transparent 55%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--ink);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
/* the logo's three pixels, top-left */
.vz-salepop__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--logo-yellow) 0 33.3%, var(--logo-cyan) 33.3% 66.6%, var(--logo-magenta) 66.6%);
}

.vz-salepop__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #F5F5F5;
    cursor: pointer;
}
.vz-salepop__close:hover { background: rgba(255, 255, 255, .2); }

.vz-salepop__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--logo-yellow);
}
.vz-salepop__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--logo-yellow); box-shadow: 0 0 0 4px rgba(249, 224, 27, .2); }

.vz-salepop__big {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 6px;
    font-family: var(--font-head);
    font-weight: 800;
    line-height: .82;
    color: #FFFFFF;
}
.vz-salepop__big span { font-size: clamp(96px, 26vw, 132px); letter-spacing: -.06em; }
.vz-salepop__big small {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--ink);
    background: var(--logo-yellow);
    border-radius: 14px;
    padding: 10px 12px;
}

.vz-salepop__title { margin: 14px 0 0; font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1.2; color: #FFFFFF; }
.vz-salepop__text { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--dark-label); }

.vz-salepop__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; }
.vz-salepop__cta { background: var(--logo-yellow); color: var(--ink); font-weight: 600; }
.vz-salepop__cta:hover { background: #FFF06A; color: var(--ink); }
.vz-salepop__later {
    padding: 8px 2px;
    border: 0;
    background: none;
    color: var(--dark-label);
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.vz-salepop__later:hover { color: #FFFFFF; }
.vz-salepop :focus-visible { outline: 2px solid var(--logo-yellow); outline-offset: 3px; }

@keyframes vz-salepop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* phone: a non-modal sheet at the bottom — the page stays usable (no full-screen interstitial).
   .is-sheet is set by sale.js when it opens with show(), so the sheet stays pinned after a resize. */
.vz-salepop.is-sheet {
    position: fixed;
    inset: auto 0 0;
    width: min(560px, 100%);
    margin: 0 auto;
    border-radius: var(--r-dialog) var(--r-dialog) 0 0;
    z-index: 9990;
}
.vz-salepop.is-sheet .vz-salepop__card { border-radius: var(--r-dialog) var(--r-dialog) 0 0; }
@media (max-width: 639px) {
    .vz-salepop__card { padding: 24px 20px calc(18px + env(safe-area-inset-bottom)); }
    .vz-salepop__big { margin: 8px 0 0; }
    .vz-salepop__big span { font-size: 72px; }
    .vz-salepop__big small { font-size: 18px; padding: 7px 9px; border-radius: 10px; }
    .vz-salepop__title { margin-top: 10px; font-size: 19px; }
    .vz-salepop__text { font-size: 14px; }
    .vz-salepop__actions { margin-top: 16px; }
    .vz-salepop__cta { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .vz-salepop[open] { animation: none; }
}
