/* 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 — khớp B2B/TaiKhoan/register.aspx */
.ola-loc-select2.select2-selection--single,
.ola-loc-select2 .select2-selection--single,
.select2-container.ola-loc-select2 .select2-selection--single {
    min-height: 44px !important;
    height: 44px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    background: #f9fafb !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    outline: none !important;
    transition: all 0.2s;
}

.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: normal !important;
    padding-left: 1rem !important;
    padding-right: 2rem !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !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: 42px !important;
    right: 10px !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 3px rgba(11, 121, 184, 0.15) !important;
    background-color: #ffffff !important;
}

.ola-loc-select2-dropdown {
    z-index: 100200 !important;
}

.ola-loc-select2-dropdown .select2-search--dropdown {
    padding: 0.55rem 0.65rem 0.4rem;
    background: #fff;
}

.ola-loc-select2-dropdown .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 8px 12px !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box;
    font-size: 0.875rem !important;
    color: #0f172a;
}

.ola-loc-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: #0b79b8 !important;
    box-shadow: none !important;
}

.ola-loc-select2-dropdown .select2-results__options {
    max-height: 260px !important;
    padding: 0.2rem 0 0.35rem;
    -webkit-overflow-scrolling: touch;
}

.ola-loc-select2-dropdown .select2-results__option {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.9rem !important;
    color: #334155 !important;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.ola-loc-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable,
.ola-loc-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #e7f1ff !important;
    color: #1d4ed8 !important;
}

.ola-loc-select2-dropdown .select2-results__option[aria-selected="true"] {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 600 !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;
}

/* Highlight xanh lá chỉ khi dropdown gắn modal đăng ký NEWS */
.ola-cauth-modal .ola-loc-select2-dropdown .select2-results__option--highlighted[aria-selected],
.ola-loc-select2-dropdown.ola-cauth-loc-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #15803d !important;
    color: #fff !important;
}
