/**
 * Checkout Localities - Select2 Styling
 *
 * @package iFlows_for_WooCommerce
 * @since 1.0.0
 */

/* Select2 container */
.iflows-locality-select .select2-container {
    width: 100% !important;
}

/* Select2 single selection */
.iflows-locality-select .select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.iflows-locality-select .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px;
    padding-left: 0;
    color: #333;
}

.iflows-locality-select .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.iflows-locality-select .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #757575;
}

/* Dropdown styling */
.select2-container--default .select2-results__option {
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #f5f5f5;
    color: #000;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #e8e8e8;
}

/* Dropdown container */
.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999 !important;
}

.select2-results {
    max-height: 250px;
    overflow-y: auto;
}

/* Search input in dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Disabled city field styling */
.iflows-locality-select .select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

#billing_city:disabled,
#shipping_city:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}