/**
 * Select2 global overrides — must load after select2-bootstrap4 theme.
 * Bookings-specific rules live in bookings-pages.css (loaded after this file).
 */

.select2-container--bootstrap4 {
    width: 100% !important;
}

.select2-container--bootstrap4 .select2-selection--single {
    height: calc(2.25rem + 2px) !important;
    min-height: calc(2.25rem + 2px) !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    line-height: 1.25 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0.75rem;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    line-height: 1.25 !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 0 !important;
    right: 3px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
    position: static !important;
    margin: 0 !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__clear {
    margin-top: 0 !important;
    margin-right: 0.25rem !important;
    height: auto !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
}
