.opostal-opp-carousel,
.opostal-opp-carousel * {
    box-sizing: border-box;
}

.opostal-opp-carousel {
    --opostal-gap: 14px;
    --opostal-orange: #ff7b3b;
    --opostal-text: #ffffff;
    --opostal-button-text: #f27a35;
    --opostal-arrow-size: 48px;
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-inline: 62px;
    margin: 0 auto;
}

.opostal-opp-carousel--no-arrows {
    padding-inline: 0;
}

.opostal-opp-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.opostal-opp-viewport::-webkit-scrollbar {
    display: none;
}

.opostal-opp-viewport:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.opostal-opp-track {
    display: flex;
    align-items: stretch;
    gap: var(--opostal-gap);
    width: max-content;
    min-width: 100%;
}

.opostal-opp-card {
    flex: 0 0 calc((100vw - 124px - (3 * var(--opostal-gap))) / 4);
    width: calc((100vw - 124px - (3 * var(--opostal-gap))) / 4);
    max-width: calc((100% - (3 * var(--opostal-gap))) / 4);
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 330px;
    padding: 18px;
    border-radius: 8px;
    background: var(--opostal-orange);
    color: var(--opostal-text);
    overflow: hidden;
}

/* When the carousel itself has a constrained width, JS writes the precise card width. */
.opostal-opp-carousel[data-opostal-ready="1"] .opostal-opp-card {
    flex-basis: var(--opostal-card-width, 260px);
    width: var(--opostal-card-width, 260px);
    max-width: var(--opostal-card-width, 260px);
}

.opostal-opp-card__eyebrow {
    margin: 0 0 18px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
}

.opostal-opp-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.opostal-opp-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.opostal-opp-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #c9262c;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.opostal-opp-card__title {
    margin: 0 0 9px;
    padding: 0;
    color: var(--opostal-text);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: none;
}

.opostal-opp-card__description {
    margin: 0 0 18px;
    color: var(--opostal-text);
    font-size: 13px;
    line-height: 1.38;
    font-weight: 400;
}

.opostal-opp-card__footer {
    margin-top: auto;
    padding-top: 6px;
}

.opostal-opp-card__button,
.opostal-opp-card__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    max-width: 100%;
    padding: 8px 18px;
    border: 0;
    border-radius: 7px;
    background: #ffffff;
    color: var(--opostal-button-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 700;
    box-shadow: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.opostal-opp-card__button:hover,
.opostal-opp-card__button:focus-visible {
    color: var(--opostal-button-text);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.opostal-opp-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: var(--opostal-arrow-size);
    height: var(--opostal-arrow-size);
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d8d8d8;
    color: #ffffff;
    box-shadow: none;
    cursor: pointer;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: opacity .16s ease, background-color .16s ease;
}

.opostal-opp-arrow span {
    display: block;
    margin-top: -3px;
    font-size: 48px;
    line-height: .7;
    font-weight: 300;
}

.opostal-opp-arrow--prev {
    left: 0;
}

.opostal-opp-arrow--next {
    right: 0;
}

.opostal-opp-arrow:hover,
.opostal-opp-arrow:focus-visible {
    background: #c7c7c7;
    color: #ffffff;
}

.opostal-opp-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.opostal-opp-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.opostal-opp-carousel.is-static .opostal-opp-arrow {
    visibility: hidden;
    pointer-events: none;
}

.opostal-opp-empty {
    padding: 12px 14px;
    border: 1px dashed #ccd0d4;
    border-radius: 4px;
    background: #fff;
    color: #50575e;
    font-size: 14px;
}

@media (max-width: 1023px) {
    .opostal-opp-carousel {
        padding-inline: 54px;
    }

    .opostal-opp-carousel--no-arrows {
        padding-inline: 0;
    }
}

@media (max-width: 767px) {
    .opostal-opp-carousel {
        --opostal-gap: 12px;
        --opostal-arrow-size: 38px;
        padding-inline: 44px;
    }

    .opostal-opp-carousel--no-arrows {
        padding-inline: 0;
    }

    .opostal-opp-card {
        padding: 16px;
        min-height: 310px;
    }

    .opostal-opp-card__title {
        font-size: 16px;
    }

    .opostal-opp-arrow span {
        font-size: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .opostal-opp-viewport {
        scroll-behavior: auto;
    }

    .opostal-opp-card__button,
    .opostal-opp-arrow {
        transition: none;
    }
}
