html.toprest-city-popup-open,html.toprest-city-popup-open body{overflow:hidden}.toprest-city-popup[hidden]{display:none!important}.toprest-city-popup{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.58);box-sizing:border-box}.toprest-city-popup,.toprest-city-popup *{box-sizing:border-box}.toprest-city-popup__dialog{position:relative;width:min(480px,100%);padding:28px;border:1px solid rgba(148,163,184,.35);border-radius:18px;background:#fff;color:#1d2327;box-shadow:0 24px 70px rgba(15,23,42,.28);font-family:inherit;direction:rtl}.toprest-city-popup__dialog h2{margin:0 0 8px;font-size:clamp(22px,5vw,30px);line-height:1.3}.toprest-city-popup__dialog p{margin:0 0 20px;color:#646970}.toprest-city-popup__field label{display:block;margin-bottom:7px;font-weight:600}.toprest-city-popup__field select{width:100%}.toprest-city-popup__close{position:absolute;inset-block-start:12px;inset-inline-end:12px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#f0f0f1;color:#1d2327;font-size:24px;line-height:1;cursor:pointer}.toprest-city-popup__close:hover,.toprest-city-popup__close:focus{background:#dcdcde}.toprest-city-popup .select2-container{width:100%!important}.toprest-city-popup .select2-container .select2-selection--single{height:46px;border-color:#8c8f94;border-radius:6px}.toprest-city-popup .select2-container--default .select2-selection--single .select2-selection__rendered{padding:8px 14px;line-height:28px}.toprest-city-popup .select2-container--default .select2-selection--single .select2-selection__arrow{height:44px;inset-inline-end:8px}.toprest-city-select2-dropdown{z-index:2147483640!important}.toprest-city-popup__status{min-height:22px;margin-top:12px;color:#2271b1;font-size:13px}.toprest-city-popup__status.is-error{color:#b32d2e}@media(max-width:600px){.toprest-city-popup{align-items:flex-end;padding:0}.toprest-city-popup__dialog{width:100%;padding:26px 18px calc(22px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}.toprest-city-popup__dialog h2{padding-inline-end:34px}}

/* 1.6.1 — إزالة بقايا الزر/النافذة القديمة وإضافة محدد الهيدر. */
.qa-change-city,
#qa-location-overlay,
.qa-location-overlay {
    display: none !important;
}

.toprest-city-switcher-wrap {
    display: inline-flex;
    max-width: 100%;
    vertical-align: middle;
}

.toprest-city-switcher {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.15;
    cursor: pointer;
}

.toprest-city-switcher:hover,
.toprest-city-switcher:focus-visible {
    background: rgba(127, 127, 127, .08);
    outline: none;
}

.toprest-city-switcher__icon,
.toprest-city-switcher__arrow {
    flex: 0 0 auto;
    font-size: 18px;
}

.toprest-city-switcher__copy {
    display: grid;
    min-width: 0;
    text-align: start;
}

.toprest-city-switcher__copy small {
    opacity: .68;
    font-size: 10px;
    line-height: 1.2;
}

.toprest-city-switcher__copy strong {
    overflow: hidden;
    max-width: 190px;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .toprest-city-switcher {
        min-height: 38px;
        padding: 6px 9px;
    }
    .toprest-city-switcher__copy strong { max-width: 130px; }
}

.toprest-city-switcher-wrap {
    position: relative;
    align-items: center;
    gap: 6px;
    min-width: 210px;
    padding: 4px 6px;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: transparent;
    color: inherit;
}
.toprest-city-switcher-wrap .toprest-city-switcher__icon {
    margin-inline-start: 4px;
}
.toprest-city-switcher-select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 220px;
    height: 34px;
    padding: 0 4px;
    border: 0 !important;
    background: transparent !important;
    color: inherit;
    box-shadow: none !important;
    font: inherit;
    cursor: pointer;
}
.toprest-city-switcher-select:focus {
    outline: none;
    box-shadow: none !important;
}
.toprest-city-switcher-open {
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(127,127,127,.1);
    color: inherit;
    cursor: pointer;
}
.toprest-city-switcher-open:hover,
.toprest-city-switcher-open:focus-visible { background: rgba(127,127,127,.18); }
@media (max-width: 480px) {
    .toprest-city-switcher-wrap { min-width: 170px; }
    .toprest-city-switcher-select { max-width: 150px; }
}

/* 1.6.2 — إغلاق واضح وتطبيق موثوق لاختيار المدينة. */
.toprest-city-popup__dialog {
    padding-block-start: 56px;
}
.toprest-city-popup__close {
    z-index: 5;
    display: inline-grid !important;
    place-items: center;
    border: 1px solid #dcdcde;
    background: #fff;
    color: #50575e;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.toprest-city-popup__close:hover,
.toprest-city-popup__close:focus-visible {
    border-color: #b32d2e;
    background: #fff5f5;
    color: #b32d2e;
    outline: 2px solid transparent;
}
.toprest-city-popup__actions {
    display: flex;
    justify-content: stretch;
    margin-top: 16px;
}
.toprest-city-popup__confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #135e96;
    border-radius: 8px;
    background: #2271b1;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}
.toprest-city-popup__confirm:hover:not(:disabled),
.toprest-city-popup__confirm:focus-visible:not(:disabled) {
    filter: brightness(.94);
    transform: translateY(-1px);
}
.toprest-city-popup__confirm:disabled {
    cursor: not-allowed;
    opacity: .48;
}
.toprest-city-popup__confirm.is-loading {
    cursor: progress;
}
.toprest-city-popup__status:not(:empty) {
    padding: 9px 11px;
    border-radius: 7px;
    background: #f0f6fc;
}
.toprest-city-popup__status.is-error:not(:empty) {
    background: #fcf0f1;
}
@media (max-width: 600px) {
    .toprest-city-popup__dialog {
        padding-block-start: 54px;
    }
    .toprest-city-popup__close {
        inset-block-start: 10px;
        inset-inline-end: 12px;
    }
}

/* 1.7.1 — controller-safe popup: controls remain visible even when theme CSS is aggressive. */
.toprest-city-popup__form{display:block;margin:0;padding:0}
.toprest-city-popup__field{position:relative;z-index:2;overflow:visible}
.toprest-city-popup__actions{position:relative;z-index:1;overflow:visible}
.toprest-city-popup__confirm{visibility:visible!important;opacity:1}
.toprest-city-popup__confirm:disabled{opacity:.48}
.toprest-city-popup__close{visibility:visible!important;opacity:1!important}
.toprest-city-popup .select2-container,.toprest-city-popup .select2-dropdown{z-index:2147483640!important}
