/*
 * Callout — Slider Layout
 * Loaded separately so it doesn't require a LESS compile step.
 */

/* ─── Container ───────────────────────────────── */
.callout-slider {
    position: relative;
    overflow: hidden;
}

/* ─── Track (flex row of slides) ─────────────── */
.callout-slider__track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* ─── Individual slide ────────────────────────── */
.callout-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    /* preserve existing callout-wrapper styles */
}

/* Hide out-of-view slides from AT */
.callout-slider__slide[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
}

/* ─── Arrows ──────────────────────────────────── */
.callout-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    background-color: #fff;
    border: 2px solid #7259ef;
    border-radius: 50%;
    color: #7259ef;
    cursor: pointer;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.callout-slider__arrow:hover,
.callout-slider__arrow:focus-visible {
    background-color: #7259ef;
    color: #fff;
    outline: 2px solid #7259ef;
    outline-offset: 2px;
}

.callout-slider__arrow--prev {
    left: 12px;
}

.callout-slider__arrow--next {
    right: 12px;
}

/* On dark-background callouts, invert arrows */
.callout-wrapper.bg-is-dark-color ~ .callout-slider__arrow,
.callout-slider[data-bg-dark="true"] .callout-slider__arrow {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.callout-wrapper.bg-is-dark-color ~ .callout-slider__arrow:hover,
.callout-slider[data-bg-dark="true"] .callout-slider__arrow:hover {
    background-color: #fff;
    color: #7259ef;
}

/* ─── Dot indicators ──────────────────────────── */
.callout-slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.callout-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #DCDCDC;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.callout-slider__dot.is-active,
.callout-slider__dot[aria-selected="true"] {
    background-color: #7259ef;
    transform: scale(1.3);
}

.callout-slider__dot:focus-visible {
    outline: 2px solid #7259ef;
    outline-offset: 2px;
}

/* ─── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .callout-slider__track {
        transition: none;
    }
    .callout-slider__arrow,
    .callout-slider__dot {
        transition: none;
    }
}

/* ─── Mobile ──────────────────────────────────── */
@media (max-width: 767px) {
    .callout-slider__arrow {
        width: 32px;
        height: 32px;
    }
    .callout-slider__arrow--prev { left: 6px; }
    .callout-slider__arrow--next { right: 6px; }

    .callout-slider__arrow svg {
        width: 18px;
        height: 18px;
    }
}
