/*
 * CasinoKitchen Featured Casinos carousel
 * Version: 1.1.0
 */

/*
 * The JavaScript adds .ck-featured-widget only to the
 * Featured Casinos widget that is converted into a slider.
 */
.ck-featured-widget .space-companies-home-widget-ins {
    position: relative;
}

/*
 * Main Swiper container.
 *
 * Desktop and tablet leave space for the navigation arrows.
 * Mobile uses the full available width because arrows are hidden.
 */
.ck-featured-widget .ck-featured-swiper {
    width: calc(100% - 88px);
    margin: 0 auto;
    padding: 10px 8px 32px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Remove Mercury clearfix pseudo-elements. */
.ck-featured-widget .ck-featured-swiper::before,
.ck-featured-widget .ck-featured-swiper::after {
    display: none !important;
    content: none !important;
}

/* Keep every slide stretched to equal height. */
.ck-featured-widget .ck-featured-swiper .swiper-wrapper {
    align-items: stretch;
}

/*
 * Swiper controls the width of desktop and tablet slides.
 * Each slide uses flex so its casino card fills the full height.
 */
.ck-featured-widget .ck-featured-swiper .swiper-slide {
    height: auto !important;
    margin: 0;
    display: flex;
    box-sizing: border-box;
}

/*
 * Reset the original Mercury grid layout.
 */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item {
    float: none !important;
    clear: none !important;

    min-width: 0;
    max-width: none;

    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    display: flex;
    box-sizing: border-box;

    box-shadow: none !important;
    filter: none !important;
}

/* Full-height inner card shell. */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-ins {
    width: 100%;
    height: 100%;

    display: flex;
    box-sizing: border-box;

    box-shadow: none !important;
    filter: none !important;
}

/*
 * Main casino card.
 *
 * The slightly wider and shorter proportions make the cards
 * less narrow and more cube-shaped.
 */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-wrap {
    width: 100%;
    min-height: 410px;
    height: 100%;

    padding: 24px 22px 22px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    box-shadow: none !important;
    filter: none !important;
}

/* Equal logo area. */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-img {
    width: 100%;
    height: 138px;
    min-height: 138px;

    margin: 0 0 10px;

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

    box-sizing: border-box;
}

.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-img a {
    width: 100%;
    height: 100%;

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

    box-sizing: border-box;
}

.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-img img {
    display: block;

    width: auto;
    height: auto;

    max-width: 145px;
    max-height: 132px;

    object-fit: contain;
}

/* Equal casino-title area. */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-title {
    width: 100%;
    min-height: 58px;

    margin: 0 0 4px;

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

    box-sizing: border-box;
}

.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-title a {
    display: block;
    width: 100%;

    text-align: center;
    overflow-wrap: anywhere;
}

/* Equal rating area. */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-rating {
    width: 100%;
    min-height: 30px;

    margin: 0 0 10px;

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

    box-sizing: border-box;
}

/* Equal description area. */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-short-desc {
    width: 100%;
    min-height: 58px;

    margin: 0 0 12px;
    padding: 0 5px;

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

    text-align: center;
    overflow-wrap: anywhere;

    box-sizing: border-box;
}

/*
 * Push the button to the bottom of every card.
 */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-button {
    width: 100%;
    margin-top: auto;
}

/*
 * Keep buttons consistent and comfortably clickable.
 */
.ck-featured-widget
.ck-featured-swiper
.space-companies-archive-item-button a {
    width: 100%;
    min-height: 46px;

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

    box-sizing: border-box;
}

/*
 * Navigation arrows.
 *
 * They remain outside the cards on desktop and tablet.
 */
.ck-featured-widget .ck-featured-arrow {
    position: absolute;
    top: 54%;
    z-index: 30;

    width: 42px;
    height: 48px;

    margin: 0;
    padding: 0;

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

    border: 0;
    border-radius: 4px;
    background: transparent;

    color: #555;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);
    opacity: 0.82;

    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.ck-featured-widget .ck-featured-prev {
    left: 2px;
}

.ck-featured-widget .ck-featured-next {
    right: 2px;
}

.ck-featured-widget .ck-featured-arrow:hover {
    color: #ff1717;
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}

.ck-featured-widget .ck-featured-arrow:focus-visible {
    outline: 2px solid #ff1717;
    outline-offset: 2px;
}

/*
 * Swiper may temporarily disable navigation while an
 * animation is running. Keep that state visually subtle.
 */
.ck-featured-widget .ck-featured-arrow-disabled {
    opacity: 0.35;
    cursor: default;
}

/*
 * Pagination dots.
 *
 * They are mainly useful on mobile, but remain available
 * on all screen sizes as a clear position indicator.
 */
.ck-featured-widget .ck-featured-pagination {
    position: relative;
    bottom: auto;

    width: 100%;
    min-height: 16px;

    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.ck-featured-widget
.ck-featured-pagination
.swiper-pagination-bullet {
    width: 7px;
    height: 7px;

    margin: 0 !important;

    background: #777;
    opacity: 0.4;
}

.ck-featured-widget
.ck-featured-pagination
.swiper-pagination-bullet-active {
    background: #ff1717;
    opacity: 1;
}

/*
 * Prevent invisible cloned or duplicate slides left by an
 * older cached version of the JavaScript from appearing.
 */
.ck-featured-widget
.ck-featured-swiper
.ck-featured-duplicate {
    display: none !important;
}

/* Tablet. */
@media (max-width: 899px) {
    .ck-featured-widget .ck-featured-swiper {
        width: calc(100% - 68px);
        padding-right: 6px;
        padding-left: 6px;
    }

    .ck-featured-widget
    .ck-featured-swiper
    .space-companies-archive-item-wrap {
        min-height: 400px;
        padding: 23px 19px 21px;
    }

    .ck-featured-widget
    .ck-featured-swiper
    .space-companies-archive-item-img {
        height: 132px;
        min-height: 132px;
    }

    .ck-featured-widget
    .ck-featured-swiper
    .space-companies-archive-item-img img {
        max-width: 138px;
        max-height: 126px;
    }

    .ck-featured-widget .ck-featured-prev {
        left: 0;
    }

    .ck-featured-widget .ck-featured-next {
        right: 0;
    }
}

/* Mobile. */
@media (max-width: 599px) {
    /*
     * Use equal left and right padding.
     *
     * The old version used a reduced container width plus
     * separate arrow spacing, which could make the card look
     * slightly shifted to the right.
     */
    .ck-featured-widget .ck-featured-swiper {
        width: 100%;
        margin: 0;
        padding: 8px 20px 28px;
    }

    .ck-featured-widget
    .ck-featured-swiper
    .space-companies-archive-item-wrap {
        min-height: 385px;
        padding: 22px 18px 20px;
    }

    .ck-featured-widget
    .ck-featured-swiper
    .space-companies-archive-item-img {
        height: 132px;
        min-height: 132px;
        margin-bottom: 8px;
    }

    .ck-featured-widget
    .ck-featured-swiper
    .space-companies-archive-item-img img {
        max-width: 132px;
        max-height: 126px;
    }

    .ck-featured-widget
    .ck-featured-swiper
    .space-companies-archive-item-title {
        min-height: 54px;
    }

    .ck-featured-widget
    .ck-featured-swiper
    .space-companies-archive-item-short-desc {
        min-height: 54px;
    }

    /*
     * Mobile users can swipe and use pagination dots.
     * Removing side arrows also prevents asymmetric spacing.
     */
    .ck-featured-widget .ck-featured-arrow {
        display: none;
    }

    .ck-featured-widget .ck-featured-pagination {
        margin-top: 12px;
    }
}

/*
 * Respect the user's reduced-motion preference.
 */
@media (prefers-reduced-motion: reduce) {
    .ck-featured-widget .ck-featured-arrow {
        transition: none;
    }
}