/* R193 (أمر المالك 19/11): منتقي الدولة الباحث — قواعده المركزية في ملفٍ واحد يُحمَّل حيث يُحمَّل
   assets/js/country-picker.js (البوابات والمتجر معًا). نُقلت من app-ui.css بلا تغيير ورُفع عنها حصر
   النطاق (.sstf-flow/.sstf-admin) لأن أصنافها لا توجد إلا حيث يعمل المنتقي. نسخة واحدة لا نسختان. */
.country-field{position:relative}
.country-field label{margin-bottom:var(--sstf-space-2)}
.country-picker{position:relative}
.country-trigger{width:100%;text-align:start;display:flex;justify-content:space-between;align-items:center;background:#fff;color:#111;border:1px solid #ccc;border-radius:var(--sstf-r-s);min-height:46px;margin:0;padding:10px;font:inherit}
.country-popup{position:absolute;z-index:30;top:calc(100% + 6px);inset-inline:0;background:#fff;border:1px solid #999;border-radius:var(--sstf-r-s);padding:10px;box-shadow:var(--sstf-sh-card)}
.country-popup input{margin:0 0 var(--sstf-space-2)}
.country-list{max-height:240px;overflow:auto;overscroll-behavior:contain}
.country-option{display:block;width:100%;text-align:start;background:#fff;color:#111;border:0;border-radius:var(--sstf-r-s);padding:10px;margin:0;font:inherit}
.country-option[aria-selected="true"]{font-weight:800}
/* R193 (أمر المالك 19/11): «التصنيفات صغيرة جدًا ومش واضح إنها تصنيف — بدي طريقة واضحة جدًا».
   (أ) عنوان القسم شريطٌ ملوّن **ملتصق** بأعلى القائمة فلا يغيب أثناء التمرير. */
.country-group{position:sticky;top:0;z-index:2;margin:12px 0 6px;padding:8px 12px;border-radius:10px;
  background:#e8f0fb;color:#0b4a9c;font-size:.95rem;font-weight:800;letter-spacing:.2px;
  box-shadow:0 1px 0 rgba(11,99,206,.18)}
.country-group:first-child{margin-top:0}
/* (ب) صفّ شرائح الأقسام — أفقيّ يتمرّر ولا يلتفّ (قاعدة المالك)، يقفز إلى القسم ويُظهر أين أنت. */
.country-chips{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding:6px 2px 8px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
  -webkit-mask-image:linear-gradient(to left,transparent 0,#000 16px,#000 calc(100% - 16px),transparent 100%);
  mask-image:linear-gradient(to left,transparent 0,#000 16px,#000 calc(100% - 16px),transparent 100%)}
.country-chips::-webkit-scrollbar{display:none}
.country-chips[hidden]{display:none}
.country-chip{flex:0 0 auto;min-height:34px;padding:6px 14px;border-radius:999px;border:1px solid #cfe0f5;
  background:#f6faff;color:#0b4a9c;font:inherit;font-weight:700;font-size:.88rem;cursor:pointer}
.country-chip.is-on{background:#0b63ce;border-color:#0b63ce;color:#fff}
.country-option:focus,.country-option.is-active{outline:2px solid #111;outline-offset:-2px}
.country-trigger:focus-visible{outline:2px solid #111;outline-offset:2px}
.country-trigger,.country-option,.brand-results button{background:#fff;color:#18212c;box-shadow:none;border-color:#d6dfe9;text-align:start}
.country-option{border-color:transparent;justify-content:flex-start}
.country-option.is-active{background:var(--flow-blue-soft)}
