/**
 * Rolex landing — e-Corner hero carousel (Swiper).
 * Migrated from rolex.min.css (.rolex-discoverRolex-carousel-slick + slick).
 */

/* Responsive images (from rolex.min.css) */
@media only screen and (max-width: 767px) {
    .rolex-wrapper .hide-mobile {
        display: none !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .rolex-wrapper .hide-tablet {
        display: none !important;
    }
}

@media only screen and (min-width: 1024px) {
    .rolex-wrapper .hide-desktop {
        display: none !important;
    }
}

.rolex-wrapper .rolex-collection-block.noPadding {
    padding: 0;
}

.rolex-wrapper .rolex-collection-block,
.rolex-wrapper .rolex-collection-image,
.rolex-wrapper .rolex-collection-text,
.rolex-wrapper .rolex-collection-video {
    margin: 0 auto;
    position: relative;
}

.rolex-wrapper .rolex-discoverRolex-carousel-spacer {
    position: relative;
    display: block;
    aspect-ratio: 1920 / 700;
}

@media only screen and (max-width: 767px) {
    .rolex-wrapper .rolex-discoverRolex-carousel-spacer {
        aspect-ratio: 780 / 1050;
    }
}

.rolex-wrapper .rolex-discoverRolex-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rolex-wrapper .rolex-discoverRolex-carousel .rolex-discoverRolex-carousel-slide {
    display: block;
    position: relative;
    height: 100%;
}

.rolex-wrapper .rolex-discoverRolex-carousel .rolex-discoverRolex-carousel-slide > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Swiper pagination — Rolex pill dots (was .slick-dots) */
.rolex-wrapper .rolex-discoverRolex-carousel .swiper-pagination {
    height: 8px;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
    width: auto !important;
}

@media only screen and (max-width: 1023px) {
    .rolex-wrapper .rolex-discoverRolex-carousel .swiper-pagination {
        bottom: 5px;
    }
}

.rolex-wrapper .rolex-discoverRolex-carousel .swiper-pagination-bullet {
    width: 32px !important;
    height: 4px !important;
    margin: 0 7px !important;
    border-radius: 4px;
    background-color: #d4d4d4 !important;
    opacity: 1 !important;
    vertical-align: top;
    transition: width 0.2s ease-out, background-color 0.2s ease-out;
}

.rolex-wrapper .rolex-discoverRolex-carousel .swiper-pagination-bullet.is-active {
    width: 78px !important;
    background-color: #127749 !important;
}

@media only screen and (max-width: 767px) {
    .rolex-wrapper .rolex-discoverRolex-carousel .swiper-pagination-bullet {
        width: 18px !important;
        margin: 0 4px !important;
    }

    .rolex-wrapper .rolex-discoverRolex-carousel .swiper-pagination-bullet.is-active {
        width: 40px !important;
    }
}

/* Arrows — 1:1 with legacy .slick-arrow (10px chevron + ::after grey circle) */
.rolex-wrapper .rolex-discoverRolex-carousel .rolex-carousel-arrow {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    border-style: solid;
    border-color: #fff;
    border-width: 3px 3px 0 0;
    background-color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    z-index: 2;
    appearance: none;
    box-sizing: content-box;
    transition: border-color 0.2s ease-out;
}

.rolex-wrapper .rolex-discoverRolex-carousel .rolex-carousel-arrow::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    top: 0;
    transform: translate3d(-50%, -50%, 0) translate3d(8px, 2px, 0);
    background-color: #767676;
    opacity: 0.3;
    border-radius: 40px;
    z-index: -1;
    pointer-events: none;
}

.rolex-wrapper .rolex-discoverRolex-carousel .rolex-carousel-arrow--prev {
    left: calc(4% - 8px);
    transform: translate3d(0, -50%, 0) rotate3d(0, 0, 1, -135deg);
}

.rolex-wrapper .rolex-discoverRolex-carousel .rolex-carousel-arrow--next {
    right: calc(4% - 8px);
    transform: translate3d(0, -50%, 0) rotate3d(0, 0, 1, 45deg);
}

.rolex-wrapper .rolex-discoverRolex-carousel .rolex-carousel-arrow:hover {
    border-color: #127749;
}

.rolex-wrapper .rolex-discoverRolex-carousel .rolex-carousel-arrow--disabled {
    opacity: 0;
    pointer-events: none;
}

/* Larger tap target without shifting chevron (40px circle from ::after) */
.rolex-wrapper .rolex-discoverRolex-carousel .rolex-carousel-arrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    transform: translate3d(-50%, -50%, 0) translate3d(8px, 2px, 0);
}

@media only screen and (max-width: 767px) {
    .rolex-wrapper .rolex-discoverRolex-carousel .rolex-carousel-arrow {
        display: none;
    }
}
