/* Composition and dimensions supplied by Marion; typography uses Corim utilities. */
/* Use the existing Corim font file under a section-specific family: the global
   "Roboto Bold" utility has no loaded face on the public theme. */
@font-face {
    font-family: 'Corim Product Roboto';
    src: url('/font/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.corim-product-choice__card {
    display: grid;
    grid-template-rows: 1fr 1fr;
    border-radius: 25px;
}

.corim-product-choice__copy {
    display: flex;
    flex-direction: column;
    padding: 55px 25px;
    overflow-wrap: anywhere;
}

.corim-product-choice__name {
    color: #007cf8 !important;
    line-height: 1.5;
}

.corim-product-choice__description {
    flex: 1 0 auto;
    font-family: 'Corim Product Roboto', sans-serif !important;
    margin-top: 29px;
    line-height: 29px;
    min-height: 87px;
}

.corim-product-choice__description > * {
    font: inherit;
    color: inherit;
    margin: 0;
}

.corim-product-choice__image {
    display: block;
    position: relative;
    min-height: 0;
}

.corim-product-choice__image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corim-product-choice__link {
    font-weight: 400;
    min-height: 48px;
    height: auto;
    max-width: 100%;
    border-radius: 7px;
    color: #fff !important;
}

.corim-product-choice .corim-product-choice__link:hover,
.corim-product-choice .corim-product-choice__link:focus-visible {
    border-radius: 7px;
    color: #fff !important;
}

.corim-product-choice .corim-product-choice__link:active,
.corim-product-choice .corim-product-choice__link:hover:active {
    background-color: #7589a0 !important;
    border-color: #7589a0 !important;
    border-radius: 7px;
    color: #fff !important;
}

/* Native scroll snapping keeps the cards reachable without JavaScript. */
.corim-product-choice__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    --product-gap: 16px;
    --product-visible: 1.1;
}

.corim-product-choice__track.is-ready {
    scrollbar-width: none;
}

.corim-product-choice__track.is-ready::-webkit-scrollbar {
    display: none;
}

.corim-product-choice__items {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--product-visible) - 1) * var(--product-gap)) / var(--product-visible));
    gap: var(--product-gap);
    padding: 0;
}

.corim-product-choice__items > li {
    min-width: 0;
    scroll-snap-align: start;
}

.corim-product-choice__controls[hidden] {
    display: none;
}

@media (min-width: 640px) {
    .corim-product-choice__track {
        --product-gap: 24px;
        --product-visible: 1.5;
    }
}

@media (min-width: 960px) {
    .corim-product-choice__track {
        --product-visible: 2.5;
    }

    .corim-product-choice__track[data-product-count="2"] {
        --product-visible: 2;
    }
}

@media (min-width: 1200px) {
    .corim-product-choice__track {
        --product-gap: 32px;
    }
}
