/**
 * ZD Banner Slider for Creative Elements - front styles
 */
.zdbs {
    position: relative;
    width: 100%;
    overflow: hidden;
    --zdbs-speed: 600ms;
}

.zdbs-viewport {
    width: 100%;
    overflow: hidden;
}

.zdbs-track {
    display: flex;
    width: 100%;
}

.zdbs-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
}

.zdbs-slide[hidden] {
    display: none;
}

.zdbs-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Themes commonly round every image in the shop. The banner must stay square
   at the media level; the rounding of the slider is the job of the "Radio del
   borde" control, which applies it to the outer box (it has overflow hidden).
   !important is deliberate here: the theme rule is unknown and often wins. */
.zdbs img,
.zdbs picture,
.zdbs .zdbs-video,
.zdbs iframe {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.zdbs-slide a {
    display: block;
    line-height: 0;
}

/* ============================================================
   One size for the whole slider
   The box is defined once on the viewport, and every slide -
   image or video - fills it, so rotating never resizes the banner.
   ============================================================ */

.zdbs-size-ratio .zdbs-viewport {
    aspect-ratio: var(--zdbs-ratio, 16 / 9);
}

/* exact size of the uploaded banners: the box takes their own proportions, so
   nothing is cropped and it still scales with the screen */
.zdbs-ratio-custom.zdbs-size-ratio .zdbs-viewport {
    aspect-ratio: var(--zdbs-rw, 1920) / var(--zdbs-rh, 600);
}

.zdbs-size-height .zdbs-viewport {
    height: var(--zdbs-height, 420px);
}

.zdbs-size-ratio .zdbs-track,
.zdbs-size-height .zdbs-track {
    height: 100%;
}

.zdbs-size-ratio .zdbs-slide,
.zdbs-size-height .zdbs-slide {
    height: 100%;
    overflow: hidden;
}

.zdbs-size-ratio .zdbs-slide a,
.zdbs-size-height .zdbs-slide a,
.zdbs-size-ratio .zdbs-slide picture,
.zdbs-size-height .zdbs-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.zdbs-size-ratio .zdbs-slide img,
.zdbs-size-height .zdbs-slide img {
    width: 100%;
    height: 100%;
    object-fit: var(--zdbs-image-fit, cover);
    object-position: center;
}

/* the intrinsic video ratio no longer drives the height */
.zdbs-size-ratio .zdbs-video,
.zdbs-size-height .zdbs-video {
    height: 100%;
}

.zdbs-size-ratio .zdbs-video::before,
.zdbs-size-height .zdbs-video::before {
    display: none;
}

/* ---- video slides ---- */
.zdbs-video {
    position: relative;
    width: 100%;
    background-color: #000;
}

.zdbs-video::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.zdbs-ratio-21-9::before {
    padding-top: 42.857%;
}

.zdbs-ratio-4-3::before {
    padding-top: 75%;
}

.zdbs-ratio-1-1::before {
    padding-top: 100%;
}

.zdbs-ratio-9-16::before {
    padding-top: 177.777%;
}

/* Always centred. "Contain" is these values as they are: the iframe fills the
   box and the provider letterboxes the video inside it. For "cover" the script
   measures the box and sets a larger width/height here, because CSS alone
   cannot grow a replaced element to cover a box of unknown proportions. */
.zdbs-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
}

/* a fixed slider height overrides the intrinsic video ratio */
.zdbs-slide[data-type="video"] .zdbs-video {
    height: 100%;
}

/* clean mode: the player must never receive a mouse event, because that hover
   is exactly what makes YouTube reveal its title, share and watch-later bar */
.zdbs-video.is-clean iframe {
    pointer-events: none;
}

/* an invisible layer on top keeps the click available for play/pause */
.zdbs-video-shield {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.zdbs-video-shield:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

/* ---- how the video sits inside the banner box ----
   The fit is chosen separately for desktop and mobile, and the script reads
   these classes to decide whether to size the iframe for "cover". The old
   pure-CSS approach (min-width/min-height + aspect-ratio) silently collapsed
   back to "contain" whenever the box was taller than the video, which is
   exactly the case on mobile. ---- */

/* ============================================================
   Optional text layer over the banner
   Layers, bottom to top: media (1) - stretched link (2) -
   video shield (3) - darkening overlay (4) - content (5).
   ============================================================ */

.zdbs-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.zdbs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    pointer-events: none;
    --zdbs-ov-color: #000;
    --zdbs-ov-alpha: 0.45;
}

/* the colour is a plain colour and the strength a separate number, so both
   stay independently editable; color-mix keeps them combined */
.zdbs-ov-solid {
    background-color: color-mix(in srgb, var(--zdbs-ov-color) calc(var(--zdbs-ov-alpha) * 100%), transparent);
}

.zdbs-ov-bottom {
    background-image: linear-gradient(
        to top,
        color-mix(in srgb, var(--zdbs-ov-color) calc(var(--zdbs-ov-alpha) * 100%), transparent) 0%,
        transparent 75%
    );
}

.zdbs-ov-top {
    background-image: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--zdbs-ov-color) calc(var(--zdbs-ov-alpha) * 100%), transparent) 0%,
        transparent 75%
    );
}

.zdbs-ov-sides {
    background-image: linear-gradient(
        to right,
        color-mix(in srgb, var(--zdbs-ov-color) calc(var(--zdbs-ov-alpha) * 100%), transparent) 0%,
        transparent 45%,
        transparent 55%,
        color-mix(in srgb, var(--zdbs-ov-color) calc(var(--zdbs-ov-alpha) * 100%), transparent) 100%
    );
}

/* browsers without color-mix still get a readable overlay */
@supports not (background-color: color-mix(in srgb, #000 50%, transparent)) {
    .zdbs-ov-solid {
        background-color: rgba(0, 0, 0, 0.45);
    }

    .zdbs-ov-bottom {
        background-image: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 75%);
    }

    .zdbs-ov-top {
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, transparent 75%);
    }

    .zdbs-ov-sides {
        background-image: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, transparent 45%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
    }
}

.zdbs-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    /* clicks fall through to the link or to the video play/pause underneath;
       only the button and links inside stay interactive */
    pointer-events: none;
}

.zdbs-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 70%;
    text-align: center;
}

.zdbs-content a,
.zdbs-content .zdbs-btn {
    pointer-events: auto;
}

.zdbs-eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

.zdbs-heading {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
}

.zdbs-text {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.55;
    color: #fff;
}

.zdbs-btn {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid transparent;
    background-color: #fff;
    color: #111;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.zdbs-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: currentColor;
    text-decoration: none;
}

/* ============================================================
   Entrance animation of the text
   Each child enters after the previous one. The delay is built from
   --zdbs-anim-step so the editor can tune the rhythm, and the whole
   thing only runs on the slide that is active.
   ============================================================ */

.zdbs-content-inner > * {
    --zdbs-anim-speed: 650ms;
    --zdbs-anim-step: 120ms;
}

/* Gated behind .zdbs-ready, which the script adds. Without the gate a
   slider whose script never ran - the Creative Elements editor preview, a
   deferred asset, a JS error elsewhere - would show an empty banner with
   no hint as to why. */
.zdbs-ready[class*="zdbs-anim-"] .zdbs-content-inner > * {
    opacity: 0;
    will-change: transform, opacity;
}

.zdbs-ready[class*="zdbs-anim-"] .zdbs-content-inner.zdbs-animate > * {
    animation-duration: var(--zdbs-anim-speed, 650ms);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

.zdbs-content-inner.zdbs-animate > *:nth-child(1) { animation-delay: calc(var(--zdbs-anim-step, 120ms) * 0); }
.zdbs-content-inner.zdbs-animate > *:nth-child(2) { animation-delay: calc(var(--zdbs-anim-step, 120ms) * 1); }
.zdbs-content-inner.zdbs-animate > *:nth-child(3) { animation-delay: calc(var(--zdbs-anim-step, 120ms) * 2); }
.zdbs-content-inner.zdbs-animate > *:nth-child(4) { animation-delay: calc(var(--zdbs-anim-step, 120ms) * 3); }

.zdbs-anim-up .zdbs-content-inner.zdbs-animate > * { animation-name: zdbs-in-up; }
.zdbs-anim-fade .zdbs-content-inner.zdbs-animate > * { animation-name: zdbs-in-fade; }
.zdbs-anim-zoom .zdbs-content-inner.zdbs-animate > * { animation-name: zdbs-in-zoom; }
.zdbs-anim-left .zdbs-content-inner.zdbs-animate > * { animation-name: zdbs-in-left; }
.zdbs-anim-right .zdbs-content-inner.zdbs-animate > * { animation-name: zdbs-in-right; }
.zdbs-anim-mask .zdbs-content-inner.zdbs-animate > * { animation-name: zdbs-in-mask; }

@keyframes zdbs-in-up {
    from { opacity: 0; transform: translate3d(0, 28px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes zdbs-in-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zdbs-in-zoom {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zdbs-in-left {
    from { opacity: 0; transform: translate3d(-40px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes zdbs-in-right {
    from { opacity: 0; transform: translate3d(40px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes zdbs-in-mask {
    from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate3d(0, 12px, 0); }
    to { opacity: 1; clip-path: inset(0 0 -10% 0); transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .zdbs-ready[class*="zdbs-anim-"] .zdbs-content-inner > *,
    .zdbs-ready[class*="zdbs-anim-"] .zdbs-content-inner.zdbs-animate > * {
        opacity: 1;
        animation: none !important;
        transform: none;
        clip-path: none;
    }
}

/* ---- layout 2: card ---- */
.zdbs-layout-card .zdbs-content-inner {
    padding: clamp(20px, 4vw, 44px);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ---- layout 3: editorial ---- */
.zdbs-layout-editorial .zdbs-content {
    align-items: flex-end;
}

.zdbs-layout-editorial .zdbs-content-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 40px);
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.zdbs-layout-editorial .zdbs-eyebrow,
.zdbs-layout-editorial .zdbs-heading,
.zdbs-layout-editorial .zdbs-text {
    flex: 1 1 320px;
    min-width: 0;
}

.zdbs-layout-editorial .zdbs-heading {
    flex-basis: 100%;
}

.zdbs-layout-editorial .zdbs-btn {
    flex: 0 0 auto;
    align-self: flex-end;
}

/* ---- layout 4: hero ----
   Bigger type, roomier rhythm and a prominent button. Works at any of the
   three horizontal positions, so the block can sit left, centre or right. */
.zdbs-layout-hero .zdbs-content-inner {
    gap: clamp(14px, 2vw, 26px);
    max-width: min(760px, 92%);
}

.zdbs-layout-hero .zdbs-eyebrow {
    font-size: clamp(0.7rem, 1vw, 0.875rem);
    letter-spacing: 0.22em;
    opacity: 0.9;
}

.zdbs-layout-hero .zdbs-heading {
    font-size: clamp(2rem, 5.6vw, 4.25rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.zdbs-layout-hero .zdbs-text {
    font-size: clamp(0.95rem, 1.45vw, 1.2rem);
    line-height: 1.6;
    max-width: 52ch;
    opacity: 0.95;
}

.zdbs-layout-hero .zdbs-btn {
    margin-top: clamp(4px, 1vw, 12px);
    padding: clamp(14px, 1.4vw, 20px) clamp(26px, 2.6vw, 44px);
    letter-spacing: 0.1em;
}

/* keep the paragraph's own max-width from fighting the chosen position */
.zdbs-layout-hero .zdbs-content-inner[style*="align-items: center"] .zdbs-text,
.zdbs-layout-hero .zdbs-content-inner[style*="align-items:center"] .zdbs-text {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .zdbs-layout-editorial .zdbs-content-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .zdbs-layout-editorial .zdbs-btn {
        align-self: flex-start;
    }

    .zdbs-content-inner {
        max-width: 100%;
    }

    .zdbs-layout-hero .zdbs-content-inner {
        max-width: 100%;
    }

    /* long indicator rows have to stay reachable on a phone */
    .zdbs-dots {
        padding: 0 12px;
        gap: 6px;
    }

    .zdbs-dots-lines .zdbs-dot,
    .zdbs-dots-progress .zdbs-dot {
        max-width: none;
    }

    .zdbs-dots-dashes .zdbs-dot {
        width: 18px;
    }

    .zdbs-counter-track {
        max-width: none;
    }
}

/* ---- effect: slide ---- */
.zdbs-fx-slide .zdbs-track {
    transition: transform var(--zdbs-speed) ease;
}

/* ---- effects: fade / zoom (stacked slides) ---- */
.zdbs-fx-fade .zdbs-track,
.zdbs-fx-zoom .zdbs-track {
    display: block;
    position: relative;
}

.zdbs-fx-fade .zdbs-slide,
.zdbs-fx-zoom .zdbs-slide,
.zdbs-fx-kenburns .zdbs-slide,
.zdbs-fx-blur .zdbs-slide,
.zdbs-fx-reveal .zdbs-slide,
.zdbs-fx-reveal-up .zdbs-slide,
.zdbs-fx-stack .zdbs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--zdbs-speed) cubic-bezier(0.4, 0, 0.2, 1),
        transform var(--zdbs-speed) cubic-bezier(0.4, 0, 0.2, 1),
        filter var(--zdbs-speed) ease,
        clip-path var(--zdbs-speed) cubic-bezier(0.65, 0, 0.35, 1);
}

.zdbs-fx-fade .zdbs-slide.is-active,
.zdbs-fx-zoom .zdbs-slide.is-active,
.zdbs-fx-kenburns .zdbs-slide.is-active,
.zdbs-fx-blur .zdbs-slide.is-active,
.zdbs-fx-reveal .zdbs-slide.is-active,
.zdbs-fx-reveal-up .zdbs-slide.is-active,
.zdbs-fx-stack .zdbs-slide.is-active {
    position: relative;
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.zdbs-fx-fade .zdbs-slide img,
.zdbs-fx-zoom .zdbs-slide img,
.zdbs-fx-kenburns .zdbs-slide img,
.zdbs-fx-blur .zdbs-slide img,
.zdbs-fx-reveal .zdbs-slide img,
.zdbs-fx-reveal-up .zdbs-slide img,
.zdbs-fx-stack .zdbs-slide img {
    height: 100%;
    object-fit: var(--zdbs-image-fit, cover);
}

/* ---- fade + zoom ---- */
.zdbs-fx-zoom .zdbs-slide img {
    transition: transform calc(var(--zdbs-speed) * 2) ease;
    transform: scale(1.06);
}

.zdbs-fx-zoom .zdbs-slide.is-active img {
    transform: scale(1);
}

/* ---- Ken Burns: the active image keeps drifting, which is what makes a
   static banner feel alive ---- */
.zdbs-fx-kenburns .zdbs-slide img {
    transform: scale(1.12);
}

.zdbs-fx-kenburns .zdbs-slide.is-active img {
    animation: zdbs-kenburns 14s ease-out forwards;
}

@keyframes zdbs-kenburns {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}

/* ---- fade with blur ---- */
.zdbs-fx-blur .zdbs-slide {
    filter: blur(14px);
    transform: scale(1.04);
}

.zdbs-fx-blur .zdbs-slide.is-active {
    filter: blur(0);
    transform: scale(1);
}

/* ---- curtain reveal, sideways ---- */
.zdbs-fx-reveal .zdbs-slide {
    clip-path: inset(0 0 0 100%);
    opacity: 1;
}

.zdbs-fx-reveal .zdbs-slide.is-active {
    clip-path: inset(0 0 0 0);
}

/* ---- curtain reveal, upwards ---- */
.zdbs-fx-reveal-up .zdbs-slide {
    clip-path: inset(100% 0 0 0);
    opacity: 1;
}

.zdbs-fx-reveal-up .zdbs-slide.is-active {
    clip-path: inset(0 0 0 0);
}

/* ---- stacked: the new slide drops in over the previous one ---- */
.zdbs-fx-stack .zdbs-slide {
    transform: scale(1.08) translateY(2%);
}

.zdbs-fx-stack .zdbs-slide.is-active {
    transform: scale(1) translateY(0);
}

/* ---- vertical slide: same track as the horizontal one, stacked ---- */
.zdbs-fx-vertical .zdbs-track {
    flex-direction: column;
    height: 100%;
    transition: transform var(--zdbs-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.zdbs-fx-vertical .zdbs-slide {
    flex: 0 0 100%;
    min-height: 100%;
}

/* Anyone who asked their system for less motion gets the plain fade. */
@media (prefers-reduced-motion: reduce) {
    .zdbs-slide,
    .zdbs-track,
    .zdbs-slide img {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}

/* ---- arrows ---- */
.zdbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.zdbs-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.zdbs-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.zdbs-prev {
    left: 12px;
}

.zdbs-prev svg {
    transform: scaleX(-1);
}

.zdbs-next {
    right: 12px;
}

/* ============================================================
   Pagination indicators
   One markup, several looks. --zdbs-dot-* are fed by the style
   controls so every variant stays recolourable.
   ============================================================ */

.zdbs-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    --zdbs-dot-off: rgba(255, 255, 255, 0.55);
    --zdbs-dot-on: #fff;
}

/* indicators below the banner instead of on top of it */
.zdbs-dots-outside {
    padding-bottom: 28px;
}

.zdbs-dots-outside .zdbs-dots {
    bottom: 0;
}

.zdbs-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--zdbs-dot-off);
    color: var(--zdbs-dot-on);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.3s ease, transform 0.3s ease,
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
        border-color 0.3s ease;
}

.zdbs-dot.is-active {
    background-color: var(--zdbs-dot-on);
    transform: scale(1.2);
}

/* ---- filled active + hollow rest ---- */
.zdbs-dots-outline .zdbs-dot {
    width: 9px;
    height: 9px;
    background-color: transparent;
    border: 1.5px solid var(--zdbs-dot-off);
    transform: none;
}

.zdbs-dots-outline .zdbs-dot.is-active {
    background-color: var(--zdbs-dot-on);
    border-color: var(--zdbs-dot-on);
}

/* ---- capsule: the active one stretches ---- */
.zdbs-dots-pill .zdbs-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transform: none;
}

.zdbs-dots-pill .zdbs-dot.is-active {
    width: 34px;
    transform: none;
}

/* ---- short dashes ---- */
.zdbs-dots-dashes .zdbs-dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    transform: none;
    opacity: 0.55;
}

.zdbs-dots-dashes .zdbs-dot.is-active {
    opacity: 1;
    transform: none;
}

/* ---- lines sharing the available width ---- */
.zdbs-dots-lines .zdbs-dots,
.zdbs-dots-progress .zdbs-dots {
    gap: 12px;
}

.zdbs-dots-lines .zdbs-dot,
.zdbs-dots-progress .zdbs-dot {
    flex: 1 1 0;
    width: auto;
    max-width: 180px;
    height: 2px;
    border-radius: 0;
    transform: none;
}

.zdbs-dots-lines .zdbs-dot.is-active {
    height: 3px;
    transform: none;
}

/* ---- lines where the active one fills with the autoplay ---- */
.zdbs-dots-progress .zdbs-dot {
    position: relative;
    overflow: hidden;
    background-color: var(--zdbs-dot-off);
}

.zdbs-dots-progress .zdbs-dot > span {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--zdbs-dot-on);
}

.zdbs-dots-progress .zdbs-dot.is-active {
    transform: none;
    background-color: var(--zdbs-dot-off);
}

/* ---- numbers ---- */
.zdbs-dots-numbers .zdbs-dots {
    gap: 14px;
}

.zdbs-dots-numbers .zdbs-dot {
    width: auto;
    height: auto;
    padding: 2px 2px 6px;
    border-radius: 0;
    background-color: transparent;
    color: var(--zdbs-dot-off);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    transform: none;
    border-bottom: 2px solid transparent;
}

.zdbs-dots-numbers .zdbs-dot.is-active {
    background-color: transparent;
    color: var(--zdbs-dot-on);
    border-bottom-color: var(--zdbs-dot-on);
    transform: none;
}

/* ---- "1/3" readout with bar ---- */
.zdbs-counter {
    gap: 4px;
    color: var(--zdbs-dot-on);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.zdbs-counter-total {
    opacity: 0.6;
    margin-right: 10px;
}

.zdbs-counter-track {
    position: relative;
    flex: 1 1 auto;
    max-width: 260px;
    height: 1px;
    background-color: var(--zdbs-dot-off);
}

.zdbs-counter-bar {
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--zdbs-dot-on);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.zdbs-counter-nav {
    display: flex;
    gap: 2px;
    margin-left: 10px;
}

.zdbs-counter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.zdbs-counter-btn:hover {
    opacity: 1;
}

.zdbs-counter-btn:first-child svg {
    transform: scaleX(-1);
}

/* the counter carries its own arrows, so the big side ones get out of the way */
.zdbs-dots-counter .zdbs-dots {
    justify-content: flex-start;
}
