/*
 * ListDome Booking Plus request UI
 * v0.1.277
 * Visual-only layer for the native frontend Booking Plus popup.
 * Logic, availability, pricing, validation and booking state are untouched.
 */

/* Keep body-appended Select2 dropdowns above the Booking Plus modal. */
body.ld-booking-request-ui-active .select2-container--open {
    z-index: 1000005 !important;
}

/* Closed Select2 controls inside the active Booking Plus popup. */
body.ld-booking-request-ui-active .select2-container--default .select2-selection--single {
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid #d8dde7 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 1px 3px rgba(8, 16, 35, .05) !important;
    color: #202735 !important;
}

body.ld-booking-request-ui-active .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 46px !important;
    line-height: 46px !important;
    padding: 0 44px 0 16px !important;
    color: #4f5664 !important;
    -webkit-text-fill-color: #4f5664 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

body.ld-booking-request-ui-active .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9199a7 !important;
    -webkit-text-fill-color: #9199a7 !important;
}

body.ld-booking-request-ui-active .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0 !important;
    right: 12px !important;
    width: 24px !important;
    height: 48px !important;
}

/* One consistent chevron: neutralise Select2's native triangle first. */
body.ld-booking-request-ui-active .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

body.ld-booking-request-ui-active .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "" !important;
    position: absolute !important;
    left: 7px !important;
    top: 18px !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 2px solid #8d95a4 !important;
    border-bottom: 2px solid #8d95a4 !important;
    transform: rotate(45deg) !important;
    transform-origin: 50% 50% !important;
    transition: transform .16s ease, border-color .16s ease !important;
}

body.ld-booking-request-ui-active .select2-container--default.select2-container--open .select2-selection--single,
body.ld-booking-request-ui-active .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #A737FF !important;
    box-shadow: 0 0 0 3px rgba(167, 55, 255, .10) !important;
}

body.ld-booking-request-ui-active .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    top: 21px !important;
    border-color: #A737FF !important;
    transform: rotate(225deg) !important;
}

/* Body-appended dropdown panel. Keep it light, compact and readable. */
body.ld-booking-request-ui-active .select2-container--open .select2-dropdown {
    margin-top: 5px !important;
    border: 1px solid #d8dde7 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 14px 34px rgba(8, 16, 35, .18) !important;
    overflow: hidden !important;
}

body.ld-booking-request-ui-active .select2-container--open .select2-search--dropdown {
    padding: 8px !important;
    background: #ffffff !important;
}

body.ld-booking-request-ui-active .select2-container--open .select2-search--dropdown .select2-search__field {
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 1px solid #d8dde7 !important;
    border-radius: 7px !important;
    outline: none !important;
    background: #f8fafe !important;
    color: #202735 !important;
    -webkit-text-fill-color: #202735 !important;
    box-shadow: none !important;
}

body.ld-booking-request-ui-active .select2-container--open .select2-results,
body.ld-booking-request-ui-active .select2-container--open .select2-results__options {
    background: #ffffff !important;
}

body.ld-booking-request-ui-active .select2-container--open .select2-results__options {
    max-height: 260px !important;
    padding: 6px !important;
    overflow-y: auto !important;
}

body.ld-booking-request-ui-active .select2-container--open .select2-results__option,
body.ld-booking-request-ui-active .select2-container--open .select2-results__option--selectable {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 36px !important;
    margin: 0 0 2px !important;
    padding: 8px 11px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #202735 !important;
    -webkit-text-fill-color: #202735 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
}

body.ld-booking-request-ui-active .select2-container--open .select2-results__option:last-child {
    margin-bottom: 0 !important;
}

body.ld-booking-request-ui-active .select2-container--open .select2-results__option--highlighted,
body.ld-booking-request-ui-active .select2-container--open .select2-results__option--highlighted[aria-selected],
body.ld-booking-request-ui-active .select2-container--open .select2-results__option--selected,
body.ld-booking-request-ui-active .select2-container--open .select2-results__option[aria-selected="true"] {
    background: #A737FF !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.ld-booking-request-ui-active .select2-container--open .select2-results__message,
body.ld-booking-request-ui-active .select2-container--open .select2-results__option[aria-disabled="true"] {
    color: #7b8391 !important;
    -webkit-text-fill-color: #7b8391 !important;
    background: transparent !important;
}

@media (max-width: 767px) {
    body.ld-booking-request-ui-active .select2-container--default .select2-selection--single {
        height: 46px !important;
        min-height: 46px !important;
    }

    body.ld-booking-request-ui-active .select2-container--default .select2-selection--single .select2-selection__rendered {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 14px !important;
    }

    body.ld-booking-request-ui-active .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 46px !important;
    }
}
