.premium-rail-cards .premium-compact-card--spot,
.premium-rail-cards .premium-spot-card {
    height: 100%;
}

.premium-rail-cards .premium-spot-card {
    display: block;
}

.premium-rail-cards .premium-spot-card__frame {
    height: 100% !important;
    min-height: 0 !important;
    margin: 0;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .premium-rail-cards--desktop .premium-compact-card--spot,
    .premium-rail-cards--desktop .premium-spot-card {
        height: 100%;
    }

    .premium-rail-cards--desktop .premium-spot-card {
        display: block;
    }

    .premium-rail-cards--desktop .premium-spot-card__frame {
        height: 100% !important;
        min-height: 0 !important;
        margin: 0;
        box-sizing: border-box;
    }
}

@media (min-width: 992px) {
    .premium-rail-cards--desktop {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    .premium-rail-cards--desktop .premium-rail-cards__cell {
        min-width: 0;
    }

    .premium-rail-carousel .premium-rail-control.carousel-control-prev {
        left: -6px;
    }

    .premium-rail-carousel .premium-rail-control.carousel-control-next {
        right: -6px;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .premium-rail-cards--desktop .premium-compact-card__media {
        aspect-ratio: 16 / 10;
        height: auto !important;
    }

    .premium-rail-cards--desktop .premium-compact-card__media img {
        height: 100% !important;
    }
}

@media (min-width: 992px) {
    .premium-spot-modal .premium-spot-modal__dialog {
        width: min(92vw, 920px) !important;
        max-width: 920px !important;
        margin: 0.75rem auto;
    }

    .premium-spot-modal .premium-spot-modal__content {
        max-height: calc(100vh - 1.5rem);
        overflow: hidden;
    }

    .premium-spot-modal .modal-header {
        padding: 1.1rem 1.4rem 0.65rem !important;
    }

    .premium-spot-modal .modal-body {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
        align-items: start;
        gap: 1rem 1.4rem;
        padding: 0.8rem 1.4rem 1rem !important;
        overflow: visible !important;
    }

    .premium-spot-modal__steps {
        margin: 0 !important;
    }

    .premium-spot-modal__step {
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .premium-spot-modal__step:last-child {
        margin-bottom: 0;
    }

    .premium-spot-modal__step p.fw-semibold {
        margin-bottom: 0.2rem !important;
        line-height: 1.25;
    }

    .premium-spot-modal__step p.small {
        line-height: 1.4;
    }

    .premium-spot-modal__perks {
        align-self: stretch;
        padding: 1rem !important;
    }

    .premium-spot-modal__perks ul {
        line-height: 1.45;
    }

    .premium-spot-modal .modal-footer {
        justify-content: flex-end;
        padding: 0.65rem 1.4rem 1.1rem !important;
    }
}

@media (min-width: 1600px) {
    .premium-spot-modal .premium-spot-modal__dialog {
        width: min(78vw, 1100px) !important;
        max-width: 1100px !important;
    }

    .premium-spot-modal .modal-header {
        padding: 1.35rem 1.8rem 0.8rem !important;
    }

    .premium-spot-modal .modal-body {
        grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
        gap: 1.25rem 2rem;
        padding: 1rem 1.8rem 1.15rem !important;
    }

    .premium-spot-modal .modal-footer {
        padding-right: 1.8rem !important;
        padding-left: 1.8rem !important;
    }
}

@media (max-width: 991.98px) {
    .premium-spot-modal .premium-spot-modal__dialog {
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        margin: 0;
    }

    .premium-spot-modal .premium-spot-modal__content {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0 !important;
    }

    .premium-spot-modal .modal-header {
        flex-shrink: 0;
        padding: 0.85rem 1rem 0.45rem !important;
    }

    .premium-spot-modal .modal-header .d-flex {
        gap: 0.65rem !important;
    }

    .premium-spot-modal .premium-spot-modal__icon {
        width: 3rem;
        height: 3rem;
        flex: 0 0 3rem;
    }

    .premium-spot-modal .modal-title {
        font-size: 1.2rem;
        line-height: 1.15;
    }

    .premium-spot-modal .modal-header .small {
        font-size: 0.78rem !important;
        line-height: 1.3;
    }

    .premium-spot-modal .modal-body {
        padding: 0.55rem 1rem 0.45rem !important;
        overflow-y: auto;
    }

    .premium-spot-modal__steps {
        margin-bottom: 0.75rem !important;
    }

    .premium-spot-modal__step {
        gap: 0.65rem;
        margin-bottom: 0.7rem;
    }

    .premium-spot-modal__step:last-child {
        margin-bottom: 0;
    }

    .premium-spot-modal__step-num {
        width: 1.7rem;
        height: 1.7rem;
        flex: 0 0 1.7rem;
        font-size: 0.82rem;
    }

    .premium-spot-modal__step p.fw-semibold {
        margin-bottom: 0.1rem !important;
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .premium-spot-modal__step p.small {
        font-size: 0.76rem !important;
        line-height: 1.35;
    }

    .premium-spot-modal__perks {
        padding: 0.7rem 0.8rem !important;
    }

    .premium-spot-modal__perks p {
        margin-bottom: 0.35rem !important;
        font-size: 0.8rem !important;
    }

    .premium-spot-modal__perks ul {
        padding-left: 1rem !important;
        font-size: 0.75rem !important;
        line-height: 1.3;
    }

    .premium-spot-modal .modal-footer {
        flex-direction: row !important;
        flex-shrink: 0;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem max(0.65rem, env(safe-area-inset-bottom)) !important;
    }

    .premium-spot-modal .modal-footer .btn {
        width: auto !important;
        min-height: 2.65rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .premium-spot-modal .modal-footer .btn-primary {
        flex: 1 1 auto;
    }

    .premium-spot-modal .modal-footer .btn-outline-secondary {
        flex: 0 0 auto;
        min-width: 5.5rem;
    }
}

@media (max-width: 991.98px) and (max-height: 650px) {
    .premium-spot-modal .modal-header {
        padding-top: 0.55rem !important;
    }

    .premium-spot-modal .premium-spot-modal__icon {
        width: 2.5rem;
        height: 2.5rem;
        flex-basis: 2.5rem;
    }

    .premium-spot-modal .premium-spot-modal__step {
        margin-bottom: 0.45rem;
    }

    .premium-spot-modal .premium-spot-modal__perks {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}
