/* Rental booking SweetAlert2 modal */

.rental-booking-swal.swal2-popup {
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 16px;
}

.rental-booking-swal .swal2-title {
    font-size: 1.25rem;
    font-weight: 700;
    padding-right: 1rem;
}

.rental-booking-swal-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rental-booking-swal-html {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0 0.25rem;
}

.rental-booking-modal .form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3f4254;
}

.rental-booking-modal .form-control,
.rental-booking-modal .form-select {
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e4e6ef;
    font-size: 0.9375rem;
}

.rental-booking-modal .form-select {
    background-position: right 16px center;
    padding-right: 2.5rem;
}

.rental-booking-modal .form-control:focus,
.rental-booking-modal .form-select:focus {
    border-color: #009ef7;
    box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.12);
}

.rental-booking-modal .rental-booking-field {
    margin-bottom: 20px;
}

.rental-booking-modal .rental-booking-section {
    margin: 1.25rem 0 0.75rem;
    padding: 1rem 1rem 0.25rem;
    background: #f9fafb;
    border: 1px solid #eef0f4;
    border-radius: 12px;
}

.rental-booking-modal .rental-booking-section-title {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #181c32;
}

.rental-booking-modal .rental-booking-route-hint {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #eef6ff;
    border: 1px solid #d8ebff;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #3f4254;
}

.rental-booking-modal .rental-booking-custom-wrap {
    display: none;
}

.rental-booking-modal .rental-booking-custom-wrap.is-visible {
    display: block;
}

@media (min-width: 992px) {
    .rental-booking-swal.swal2-popup {
        width: 920px !important;
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 991.98px) {
    .rental-booking-swal.swal2-popup {
        display: flex !important;
        flex-direction: column !important;
        width: calc(100vw - 1rem) !important;
        margin: 0.5rem;
        max-height: calc(100dvh - 1rem);
        overflow: hidden !important;
        padding-bottom: 0.75rem;
    }

    .rental-booking-swal .swal2-title {
        flex-shrink: 0;
    }

    .rental-booking-swal .swal2-html-container.rental-booking-swal-html,
    .rental-booking-swal-html {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    .rental-booking-swal .rental-booking-swal-actions.swal2-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        align-self: stretch !important;
        width: calc(100% - 1rem) !important;
        margin: 0.75rem 0.5rem 0 !important;
        padding: 0 !important;
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
    }

    .rental-booking-swal .rental-booking-swal-actions .swal2-styled {
        width: 100% !important;
        margin: 0 !important;
    }

    .rental-booking-modal .form-select,
    .rental-booking-modal .form-control {
        position: relative;
        z-index: 5;
        width: 100%;
        max-width: 100%;
        touch-action: manipulation;
        font-size: 16px;
    }

    .rental-booking-modal .rental-booking-field {
        position: relative;
        z-index: 0;
    }

    .rental-booking-modal .rental-booking-field:focus-within {
        z-index: 10;
    }
}
