/* Select2 — dropdown Tỉnh/Thành & Phường/Xã (dùng chung)
   Select2 4.1: selectionCssClass gắn lên .select2-selection;
   JS cũng add class lên .select2-container → CSS hỗ trợ cả hai. */

.ola-loc-select2.select2-container,
.select2-container.ola-loc-select2 {
    width: 100% !important;
}

/* Selection box (class trên selection HOẶC con của container) */
.ola-loc-select2.select2-selection--single,
.ola-loc-select2 .select2-selection--single,
.select2-container.ola-loc-select2 .select2-selection--single {
    min-height: 42px !important;
    height: auto !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.ola-loc-select2.select2-selection--single .select2-selection__rendered,
.ola-loc-select2 .select2-selection--single .select2-selection__rendered,
.select2-container.ola-loc-select2 .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 0.85rem !important;
    padding-right: 2rem !important;
    color: #1f2937 !important;
    font-size: 14px !important;
}

.ola-loc-select2.select2-selection--single .select2-selection__placeholder,
.ola-loc-select2 .select2-selection--single .select2-selection__placeholder,
.select2-container.ola-loc-select2 .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.ola-loc-select2.select2-selection--single .select2-selection__arrow,
.ola-loc-select2 .select2-selection--single .select2-selection__arrow,
.select2-container.ola-loc-select2 .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 6px !important;
    top: 0 !important;
}

.select2-container--open.ola-loc-select2 .select2-selection--single,
.select2-container--focus.ola-loc-select2 .select2-selection--single,
.ola-loc-select2.select2-container--open .select2-selection--single,
.ola-loc-select2.select2-container--focus .select2-selection--single {
    border-color: #0b79b8 !important;
    box-shadow: 0 0 0 1px #0b79b8 !important;
}

.ola-loc-select2-dropdown {
    border-color: #d1d5db !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
    z-index: 100200 !important;
}

.ola-loc-select2-dropdown .select2-search__field {
    border-radius: 0.375rem !important;
    padding: 6px 10px !important;
}

.ola-loc-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #0b79b8 !important;
}

.select2-container--disabled.ola-loc-select2 .select2-selection--single,
.ola-loc-select2.select2-container--disabled .select2-selection--single {
    background-color: #f1f5f9 !important;
    cursor: not-allowed !important;
}

/* ========== Modal đăng ký NEWS — khớp input .ola-cauth-field ========== */
.ola-cauth-modal .ola-cauth-field .select2-container {
    width: 100% !important;
    display: block !important;
}

.ola-cauth-modal .ola-cauth-field .select2-container .select2-selection--single,
.ola-cauth-modal .ola-loc-select2.select2-selection--single,
.ola-cauth-modal .select2-container.ola-loc-select2 .select2-selection--single {
    min-height: 44px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.ola-cauth-modal .ola-cauth-field .select2-container .select2-selection--single .select2-selection__rendered,
.ola-cauth-modal .ola-loc-select2.select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    padding-left: 14px !important;
    padding-right: 40px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
}

.ola-cauth-modal .ola-cauth-field .select2-selection__placeholder,
.ola-cauth-modal .ola-loc-select2 .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.ola-cauth-modal .ola-cauth-field .select2-container .select2-selection--single .select2-selection__arrow,
.ola-cauth-modal .ola-loc-select2.select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    width: 28px !important;
    right: 8px !important;
}

.ola-cauth-modal .ola-cauth-field .select2-container--open .select2-selection--single,
.ola-cauth-modal .ola-cauth-field .select2-container--focus .select2-selection--single,
.ola-cauth-modal .select2-container--open.ola-loc-select2 .select2-selection--single,
.ola-cauth-modal .select2-container--focus.ola-loc-select2 .select2-selection--single {
    border-color: #15803d !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12) !important;
}

.ola-cauth-modal .ola-cauth-field .select2-container:hover .select2-selection--single {
    border-color: #cbd5e1 !important;
    background: #fff !important;
}

.ola-cauth-modal .ola-cauth-field .select2-container--open:hover .select2-selection--single,
.ola-cauth-modal .ola-cauth-field .select2-container--focus:hover .select2-selection--single {
    border-color: #15803d !important;
}

/* Ẩn select gốc (tránh chồng mũi tên CSS native) */
.ola-cauth-modal .ola-cauth-field select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    background: none !important;
}

.ola-loc-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #15803d !important;
}
