/* --- HERO CAROUSEL ARROWS (hero-carousel-arrows.html.twig) ---
   Prev/next arrows over hero-carousel-extended. Every rule is scoped to .hero-carousel-arrows,
   so carousels built from hero-carousel or hero-carousel-extended are untouched. */

.hero-carousel-arrows {
    position: relative;
}
.hero-carousel-arrows .carousel-nav {
    display: var(--hero-carousel-arrows-dots-display, none);
}
.hero-carousel-arrows__btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--hero-carousel-arrows-width, 50px);
    height: var(--hero-carousel-arrows-height, 48px);
    padding: 0;
    border: none;
    background: var(--hero-carousel-arrows-bg, transparent);
    color: var(--hero-carousel-arrows-color, var(--color-primary));
    transform: translateY(-50%);
    cursor: pointer;
}
.hero-carousel-arrows__btn svg {
    display: block;
    width: var(--hero-carousel-arrows-icon-width, 26px);
    height: var(--hero-carousel-arrows-icon-height, 48px);
}
.hero-carousel-arrows__btn--prev {
    left: var(--hero-carousel-arrows-offset, 20px);
}
.hero-carousel-arrows__btn--next {
    right: var(--hero-carousel-arrows-offset, 20px);
}
.hero-carousel-arrows__btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* stopAtEnds (hero-carousel-arrows--ends): the arrow that can't go further (aria-disabled, set by
   hero-carousel-arrows-ends.js) is faded. Only under this class. */
.hero-carousel-arrows--ends .hero-carousel-arrows__btn[aria-disabled="true"] {
    opacity: var(--hero-carousel-arrows-disabled-opacity, 0.3);
}

/* Below the desktop row the slides are swiped; the arrows show only when the brand asks. */
@media (max-width: 991px) {
    .hero-carousel-arrows__btn {
        display: var(--hero-carousel-arrows-display-mobile, none);
    }
}
