.moxie-card-carousel {
    --mcc-gap: 10px;
    --mcc-per-view: 4;
    --mcc-autoplay: 1;
    --mcc-autoplay-cards: 1;
    --mcc-autoplay-seconds: 5;
    position: relative;
    width: 100%;
}

.moxie-card-carousel *,
.moxie-card-carousel *::before,
.moxie-card-carousel *::after {
    box-sizing: border-box;
}

.moxie-card-carousel__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.moxie-card-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.moxie-card-carousel__track {
    display: flex;
    align-items: stretch;
    gap: var(--mcc-gap);
    width: max-content;
    min-width: 100%;
}

.moxie-card-carousel__card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 198px;
    padding: 26px 20px 22px;
    border-radius: 20px;
    background: #f1efeb;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
    overflow: hidden;
    transition: background-color .2s ease, color .2s ease;
}

.moxie-card-carousel a.moxie-card-carousel__card,
.moxie-card-carousel a.moxie-card-carousel__card:hover,
.moxie-card-carousel a.moxie-card-carousel__card:focus {
    text-decoration: none;
}

.moxie-card-carousel__image-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 1px;
    margin-bottom: 16px;
}

.moxie-card-carousel__image {
    display: block;
    width: 48px;
    max-width: 100%;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.moxie-card-carousel__separator {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 1px;
    margin-bottom: 14px;
    background: #ba9a2c;
}

.moxie-card-carousel__title {
    margin: 0;
    padding: 0;
    color: #222;
    font: inherit;
    line-height: 1.35;
    text-transform: uppercase;
}

.moxie-card-carousel__link-text {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    align-self: flex-end;
    margin-top: auto;
    padding-top: 18px;
    color: #ba9a2c;
    line-height: 1.2;
    text-transform: uppercase;
}

.moxie-card-carousel__link-arrow {
    line-height: 1;
    transform: translateY(-.03em);
}

.moxie-card-carousel__navigation {
    margin-top: 20px;
}

.moxie-card-carousel__navigation[hidden] {
    display: none !important;
}

.moxie-card-carousel__progress {
    position: relative;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 10px;
    background: #e6dfc6;
}

.moxie-card-carousel__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #ba9a2c;
    transform-origin: left center;
    will-change: transform;
}

.moxie-card-carousel__arrows {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: 100%;
    margin: 0 0 10px;
}

.moxie-card-carousel__arrows[hidden] {
    display: none !important;
}

.moxie-card-carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, opacity .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.moxie-card-carousel__arrow svg {
    display: block;
    width: 22px;
    height: 22px;
}

.moxie-card-carousel__arrow:hover {
    color: #ba9a2c;
}

.moxie-card-carousel__arrow:disabled {
    opacity: .35;
    cursor: default;
}

.moxie-card-carousel__arrow:focus-visible,
.moxie-card-carousel__card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .moxie-card-carousel__viewport {
        scroll-behavior: auto;
    }

    .moxie-card-carousel__card,
    .moxie-card-carousel__arrow {
        transition: none;
    }
}
