.carousel__card>* {
    padding: 0;
}

.carousel__container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    grid-template-rows: auto 1fr;
}

h1+.carousel__container {
    margin-top: 30px;
}

.carousel__table-head {
    display: none;
}

.carousel__container .carousel__header {
    grid-column: 1 / -1;
    font-size: var(--font-size-h2);
    font-weight: var(--headers-weight);
    text-align: center;
    text-transform: var(--headers-transform);
    padding: 0 1.25rem 0;
    margin: 1.25rem auto 0rem;
}

.content-wrapper>h2:has(+ .carousel__container) {
    margin: 1.25rem auto 0rem;
}

.carousel__card-container {
    position: relative;
    height: 380px;
    border-spacing: 0;
    width: 100%;
}

.carousel__card {
    border-radius: var(--border-radius);
    background: var(--card-bg-color);
    -webkit-font-smoothing: antialiased;
    box-shadow: var(--box-shadow-carousel);
}

.carousel__prop {
    display: grid;
    align-content: center;
}

.tc-readmore {
    color: var(--color-secondary-light);
    text-decoration: underline;
    display: inline-block;
    cursor: pointer;
}

.carousel__prop:nth-child(3) {
    border-top: 1px solid #F0F1F5;
}

.carousel__card>.carousel__prop {
    border-bottom: 1px solid #F0F1F5;
    padding: 0.5rem 0;
}

.carousel__tc-title {
    display: block;
    color: var(--color-secondary-light);
    font-size: 0.625rem;
}

.carousel__tc-title a {
    color: var(--color-secondary-light);
    text-decoration: none;
}

.carousel__tc {
    font-size: var(--font-size-caption);
    font-size: 0.625rem;
    display: grid;
    align-items: center;
    align-content: center;
}

.carousel__tc-text,
.carousel__tc-text a,
.expl-inner__terms-content,
.expl-inner__terms-content a {
    color: var(--text-color-card);
}

.carousel__tc-popoup {
    display: none;
}

.carousel__tcpopup {
    display: none;
    position: fixed;
    left: 0;
    bottom: -999%;
    width: 290px;
    height: 400px;
    background: var(--card-bg-color);
    position: fixed;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.carousel__tcpopup.carousel__tcpopup--show {
    display: block !important;
    z-index: 9999999;
    position: fixed;
    margin: auto;
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
    left: 0;
    right: 0;
    margin: auto;
    bottom: auto;
    top: 34%;
    z-index: 9999999 !important;
}

.carousel__expl-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto 40px;
    grid-gap: 0.6rem 0.8rem;
    max-width: 330px;
    min-height: 300px;
    margin: auto;
    padding: 1.5rem;
    margin: 20px auto;
    background: #fff;
    color: var(--text-color-card);
}

.carousel__expl-inner .carousel__logo {
    display: flex;
    grid-column: 1 / span 2;
    grid-row: 1;
    margin: auto;
    align-self: center;
    align-items: center;
    justify-content: center;
}

.carousel__expl-close {
    grid-column: 2;
    grid-row: 1;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 auto auto;
    cursor: pointer;
    z-index: 9998;
}

.expl-inner__text {
    grid-column: -1/1;
    white-space: pre-line;
    max-height: 40vh;
    overflow: scroll;
}

.expl-inner__terms-title,
.expl-inner__terms-content {
    grid-column: -1/1;
    display: block;
    margin: auto;
    font-size: var(--font-size-caption);
    line-height: var(--line-height);
}

.expl-inner__terms-title {
    color: var(--color-secondary-light);
    margin: 0;
    font-weight: bold;
}

.explicit-terms.explicit-terms--open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3e3d3d8c;
    display: block !important;
    z-index: 9999;
}

.carousel__expl-inner {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 9998;
}

.carousel__card>* {
    padding: 0;

}

.carousel__card--visible:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: background-color 450ms ease 0s;
    background: rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius);
}

.carousel__card--center-left .carousel__rank,
.carousel__card--center-center .carousel__rank,
.carousel__card--center-right .carousel__rank {
    opacity: 1;
}

.carousel__card--center-left:after {
    display: none;
}

.carousel__rank {
    border-radius: var(--border-radius-largest);
    background: var(--color-cta-btn-bg);
    opacity: 1;
}

.carousel__rank-value {
    font-size: var(--font-size-caption-desktop);
    font-weight: 600;
    color: white;
}

.carousel__tooltip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-tooltip);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-tooltip);
    padding: 10px;
    font-weight: 500;
    font-size: 11px;
    width: 150px;
    z-index: 2;
    max-width: 80vw;
}

.carousel__tooltip:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--color-tooltip);
    clear: both;
}

.carousel__ribbon-text {
    color: #fff;
    background: var(--list-pay-n-play-color);
}

.carousel__ribbon>svg path:first-child {
    fill: var(--list-pay-n-play-color);
}

.carousel__logo {
    text-decoration: none;
}

.carousel__casino-name {
    color: var(--text-color-card);
    font-size: 0.625rem;
    font-weight: 300;
    margin-top: 0.25rem;
}

.carousel__star svg {
    max-width: 20px;
}

.carousel__star {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4rem;
}

.carousel__star+.carousel__prop-value {
    display: inline-block;
}

.carousel__maxscore {
    font-weight: bold;
    font-size: var(--font-size-body);
    color: var(--gray-500);
}

.carousel__prop-title {
    color: var(--text-color-card);
}

.carousel__prop-value {
    color: var(--text-color-card);
}

.carousel__prop-value .carousel__prop-value-hid {
    display: none;
}

.carousel__button {
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cta-btn-bg);
    border-radius: var(--border-radius);
    margin: 0;
    min-height: 40px;
    color: var(--text-color-cta);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

.carousel__link>a.carousel__button:hover {
    text-decoration: unset;
}

.carousel__link {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    grid-gap: 0 0.6rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.carousel__button.carousel__button--review[href^='#/'] {
    pointer-events: none;
    opacity: 0.3;
}

.carousel__link.carousel__link--popup {
    grid-column: -1/1;
    grid-row: 4;
}

.carousel__button--review {
    background: transparent;
    color: var(--text-color-card);
    border: 1px solid var(--text-color-card);
}

.carousel__button.carousel__button--review:hover {
    color: #fff;
    background: var(--text-color-card);
    text-decoration: none;
}

.carousel__button:hover {
    background: var(--color-cta-dark);
}

.carousel__button:active {
    background: var(--color-cta-darker);
}

.carousel__circle-button {
    justify-self: center;
    align-self: center;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 4;
    user-select: none;
    background: var(--carousel-circle-color);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    transition: opacity 0.3s ease-in-out 0.3s;
    box-shadow: var(--box-shadow-carousel);
}

.carousel__circle-button:hover {
    transition: background 0.3s ease-in;
}

.carousel__arrow-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 18px;
}

.carousel__arrow-container--left {
    transform: translate(-50%, -50%) rotateZ(180deg);
}

.carousel__arrow-container svg {
    width: 12px;
    stroke: var(--carousel-arrow-color);
}

.indicators {
    grid-column: -1/1;
    display: block;
    margin: 10px auto;
    color: #C4C4C4;
    font-size: 0.88rem;
}

.indicator__nr {
    display: none;
}

.indicator__nr-active {
    display: inline-block;
}

.indicator span {
    margin: 0 4px;
}

.indicator.indicator-start {
    font-weight: bold;
    color: var(--text-color-dark);
}

.indicator span {
    margin-right: 0;
}

.indicator.indicator-dots {
    margin: 0 4px;
}

.indicator-prev {
    display: none;
}

.tc-opup-open .carousel__card--visible.carousel__card--right,
.tc-opup-open .carousel__card--visible.carousel__card--left {
    z-index: -2;
}

.tc-opup-open .carousel__card {
    z-index: auto;
}

.tc-opup-open .carousel__circle-button {
    pointer-events: none;
}

.carousel__container--small-3 .indicators-desktop,
.carousel__container--small-3 .indicators {
    display: none;
}

@media screen and (min-width: 700px) {

    .carousel__card--center-center:after,
    .carousel__card--center-right:after {
        display: none;
    }

    .carousel__card--visible {
        transition: all 450ms ease 0s;
    }

    .carousel__card--visible:after {
        background: rgba(0, 0, 0, 0.06);
    }

    .carousel__card--most-right.carousel__card--visible:after,
    .carousel__card--most-left.carousel__card--visible:after {
        background: rgba(0, 0, 0, 0.12);
    }

    .carousel__container .carousel__header {
        font-size: var(--font-size-h2-desktop);
    }

}

@media screen and (min-width: 890px) {
    .carousel__card--active:after {
        display: none;
    }

}

@media (max-width: 992px) {
    #scrollcards {
        grid-column: 1/-1;
        grid-template-rows: auto 1fr;
        margin: 0 -1.25rem 0;
        grid-template-columns: auto;
    }

    #scrollcards .carousel__card-container {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    #scrollcards tbody {
        scroll-snap-type: x mandatory;
    }

    #scrollcards tr.carousel__card {
        border-radius: var(--border-radius);
        opacity: 1 !important;
        z-index: 1 !important;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .carousel__link {
        align-self: end;
    }

    #scrollcards .carousel__card:after {
        content: none;
    }

    #scrollcards .carousel__circle-button {
        display: none;
    }

    .indicator span {
        margin: 0 3px;
    }

    .indicators.indicators-desktop {
        display: none;
    }

}

@media (max-width: 480px) {
    .carousel__expl-inner {
        margin: auto 1rem;
        top: 20%;
    }
}

@media (min-width: 993px) {
    .carousel__prop-value {
        font-size: var(--font-size-body-desktop);
        line-height: 1.25rem;
    }

    .carousel__card-container {
        min-height: 430px;
    }

    #scrollcards tr.carousel__card {
        top: 2rem;
    }

    .card-transition .carousel__card {
        transition: all 450ms ease 0s;
    }

    .carousel__card--visible {
        transition: all 450ms ease 0s;
    }

    .indicators {
        display: none;
    }

    .indicators.indicators-desktop {
        display: block;
        margin-top: 15px;
    }

    .indicator-next {
        margin: 0 4px;
    }

    .carousel__container--small-3 .carousel__card {
        width: 270px;
    }

    .carousel__container--small-3 .carousel__card--right {
        display: grid;
        left: calc(50% + 47px);
        transform: none;
        z-index: 3;
    }

    .carousel__container--small-3 .carousel__card--center-center {
        display: grid;
        left: calc(50% + 336px);
        transform: none;
        z-index: 3;
    }

    .carousel__container--small-3 .carousel__card--center-right {
        transform: none;
        left: calc(50% + 623px);
        transform: none;
        display: grid;
        z-index: 3;
    }

    .carousel__container--small-3 .carousel__circle-button {
        display: none;
    }

    .carousel__container--small-3 .indicators-desktop {
        display: none;
    }

    .carousel__container--small .carousel__card--most-right {
        display: grid;
        left: calc(50% - 457px);
        transform: none;
        z-index: 3;
    }

    .carousel__container--small .carousel__card--most-left {
        display: grid;
        left: calc(50% + 170px);
        transform: none;
        z-index: 3;
    }

    .carousel__card--right {
        z-index: 2;
    }

    #scrollcards.carousel__container--smallest {
        display: block;
        margin: auto;
        text-align: center;
    }

    #scrollcards.carousel__container--smallest tr.carousel__card {
        position: relative;
        display: inline-grid;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        margin: 2.2rem 0.6rem 0;
        z-index: 3;
        opacity: 1;
    }

    .carousel__card--visible:after {
        content: none;
    }

}

@media (min-width: 1140px) {
    .carousel__container {
        margin: 0 -3.8rem 0;
    }

    .carousel__card {
        width: 290px;
        max-width: 100%;
    }


    .carousel__card--most-left {
        display: grid;
        left: calc(50% - 230px);
        transform: translateX(-365px) translateX(50%) scale(0.7);
        z-index: 1;
        display: none;
    }

    .carousel__card--left {
        left: calc(50% - 326px);
        transform: translateX(-260px) translateX(25%) scale(0.85);
        z-index: 2;
    }

    .carousel__card--center-left {
        left: calc(50% - 458px);
        z-index: 3;
    }

    .carousel__card--center-center {
        left: calc(50% - 144px);
        transform: none;
        z-index: 3;
    }

    .carousel__card--center-right {
        transform: none;
        left: calc(50% + 170px);
        z-index: 3;
    }

    .carousel__card--right {
        display: grid;
        left: calc(50% + 267px);
        transform: translateX(30px) translateX(-25%) scale(0.85);
        z-index: 2;
    }

    .carousel__card--most-right {
        display: grid;
        left: calc(50% + 230px);
        transform: translateX(-95px) translateX(50%) scale(0.7);
        z-index: 1;
        display: none;
    }

    .carousel__container--small-3 .carousel__card {
        max-width: initial;
    }

    .carousel__container--small-3 .carousel__card--right {
        left: calc(50% + 110px);
    }

    .carousel__container--small-3 .carousel__card--center-center {
        left: calc(50% + 397px);
    }

    .carousel__container--small-3 .carousel__card--center-right {
        left: calc(50% + 684px);
    }
}
