/* Shared public-site dropdown appearance. Existing selection/AJAX logic is retained. */
body.mediyox-dropdown-theme {
    --mediyox-dropdown-border: #e6e8ef;
    --mediyox-dropdown-text: #62666d;
    --mediyox-dropdown-accent: #1769ff;
    --mediyox-dropdown-active: #f0f5ff;
    --mediyox-dropdown-shadow: 0 8px 24px #00000012;
}
body.mediyox-dropdown-theme .mediyox-location-panel,
body.mediyox-dropdown-theme .select2-container .select2-dropdown,
body.mediyox-dropdown-theme .ui-autocomplete.ui-widget-content {
    box-sizing: border-box;
    border: 1px solid var(--mediyox-dropdown-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: var(--mediyox-dropdown-shadow) !important;
    color: var(--mediyox-dropdown-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 0;
}
body.mediyox-dropdown-theme .select2-container .select2-dropdown { overflow: hidden; }
body.mediyox-dropdown-theme .select2-search--dropdown { padding: 0 16px 12px; }
body.mediyox-dropdown-theme .select2-search--dropdown .select2-search__field,
body.mediyox-dropdown-theme .mediyox-location-panel input[type=search] {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    padding: 10px 12px !important;
    border: 1px solid var(--mediyox-dropdown-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--mediyox-dropdown-text);
    font-family: inherit;
    font-size: 16px !important;
    line-height: 22px;
    box-shadow: none;
}
body.mediyox-dropdown-theme .select2-search--dropdown .select2-search__field { width: 100%; margin: 0; }
body.mediyox-dropdown-theme .select2-search--dropdown .select2-search__field:focus,
body.mediyox-dropdown-theme .mediyox-location-panel input[type=search]:focus {
    border-color: var(--mediyox-dropdown-accent) !important;
    outline: 2px solid #1769ff26;
    outline-offset: 1px;
}
body.mediyox-dropdown-theme .select2-container .select2-results > .select2-results__options,
body.mediyox-dropdown-theme .ui-autocomplete.ui-widget-content {
    max-height: min(300px, 45dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
body.mediyox-dropdown-theme .select2-results__option,
body.mediyox-dropdown-theme .mediyox-location-panel .mediyox-location-option,
body.mediyox-dropdown-theme .ui-autocomplete .ui-menu-item-wrapper {
    box-sizing: border-box;
    min-height: 44px;
    padding: 9px 20px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--mediyox-dropdown-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.mediyox-dropdown-theme .ui-autocomplete .ui-menu-item { padding: 0; margin: 0; border: 0; }
body.mediyox-dropdown-theme .select2-results__option--highlighted[aria-selected],
body.mediyox-dropdown-theme .select2-results__option[aria-selected=true],
body.mediyox-dropdown-theme .select2-results__option--selected,
body.mediyox-dropdown-theme .ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
body.mediyox-dropdown-theme .ui-autocomplete .ui-menu-item-wrapper:hover,
body.mediyox-dropdown-theme .mediyox-location-panel .mediyox-location-option:hover,
body.mediyox-dropdown-theme .mediyox-location-panel .mediyox-location-option:focus-visible,
body.mediyox-dropdown-theme .mediyox-location-panel .mediyox-location-option[aria-pressed=true] {
    background: var(--mediyox-dropdown-active) !important;
    color: var(--mediyox-dropdown-accent) !important;
    border: 0;
    margin: 0;
}
body.mediyox-dropdown-theme .mediyox-location-panel .mediyox-country {
    color: var(--mediyox-dropdown-accent);
    font-weight: 600;
}
body.mediyox-dropdown-theme .select2-results__option[data-level="2"] { padding-inline-start: 40px; }
body.mediyox-dropdown-theme .select2-results__option[data-level="3"] { padding-inline-start: 60px; }
body.mediyox-dropdown-theme .select2-results__option[aria-disabled=true] { color: #9ca3af; }
