/* Accessible, theme-aware replacement for the homepage category and wilaya menus only. */
.search-box select.dzm-native-select-source {
  display: none !important;
}
.search-box .dzm-search-select {
  position: relative;
  min-width: 0;
  width: 100%;
}
.search-box .dzm-search-select-trigger {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  background: #f8faf9;
  color: #20352a;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.search-box .dzm-search-select-trigger:hover {
  border-color: #74a98a;
  background: #f3f8f4;
}
.search-box .dzm-search-select-trigger:focus-visible {
  outline: 3px solid #65a87d;
  outline-offset: 2px;
  border-color: #387a53;
  box-shadow: 0 0 0 4px rgba(56, 122, 83, .16);
}
.search-box .dzm-search-select-trigger:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.dzm-search-select-value {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dzm-search-select-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.dzm-search-select-trigger[aria-expanded="true"] .dzm-search-select-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.dzm-search-select-popup {
  position: fixed;
  z-index: 12000;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #d9e4dc;
  border-radius: 14px;
  background: #fff;
  color: #20352a;
  box-shadow: 0 16px 42px rgba(16, 40, 26, .22), 0 3px 9px rgba(16, 40, 26, .10);
  scrollbar-width: thin;
  scrollbar-color: #a9c5b2 transparent;
}
.dzm-search-select-popup[hidden] { display: none !important; }
.dzm-search-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #20352a;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  transition: color .12s ease, background-color .12s ease, border-color .12s ease;
}
.dzm-search-select-option:hover,
.dzm-search-select-option[data-active="true"] {
  color: #173e2a;
  background: #e7f4eb;
  border-color: #c2e0cb;
}
.dzm-search-select-option[aria-selected="true"] {
  color: #16492f;
  background: #d9eee0;
  font-weight: 750;
}
.dzm-search-select-option[aria-selected="true"][data-active="true"] {
  color: #123c27;
  background: #c5e5cf;
  border-color: #83bd94;
}
.dzm-search-select-option:focus-visible {
  outline: 2px solid #287347;
  outline-offset: -2px;
}
.dzm-search-select-option[aria-disabled="true"] {
  color: #69786e;
  cursor: not-allowed;
  opacity: .65;
}
.dzm-search-select-option-check {
  flex: 0 0 1.2em;
  color: #287347;
  text-align: center;
}
.dzm-search-select-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dzm-search-select-option-code { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
body.dark-theme .search-box .dzm-search-select-trigger {
  border-color: #485b50;
  background: #202c25;
  color: #f0f5f1;
}
body.dark-theme .search-box .dzm-search-select-trigger:hover {
  border-color: #7db895;
  background: #26382d;
}
body.dark-theme .search-box .dzm-search-select-trigger:focus-visible {
  outline-color: #9cddb2;
  border-color: #8dcea4;
  box-shadow: 0 0 0 4px rgba(125, 204, 165, .23);
}
body.dark-theme .dzm-search-select-popup {
  border-color: #40564a;
  background: #1b2821;
  color: #f0f5f1;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .48), 0 3px 10px rgba(0, 0, 0, .3);
  scrollbar-color: #527360 transparent;
}
body.dark-theme .dzm-search-select-option {
  border-color: transparent;
  background: #1b2821;
  color: #edf5ef;
}
body.dark-theme .dzm-search-select-option:hover,
body.dark-theme .dzm-search-select-option[data-active="true"] {
  border-color: #51765f;
  background: #2b4936;
  color: #fff;
}
body.dark-theme .dzm-search-select-option[aria-selected="true"] {
  border-color: #557a62;
  background: #31543e;
  color: #f3fff5;
}
body.dark-theme .dzm-search-select-option[aria-selected="true"][data-active="true"] {
  border-color: #8bc59d;
  background: #3d674b;
  color: #fff;
}
body.dark-theme .dzm-search-select-option[aria-disabled="true"] { color: #a2b1a7; }
body.dark-theme .dzm-search-select-option-check { color: #a8e2b7; }
html[dir="rtl"] .dzm-search-select-trigger,
html[dir="rtl"] .dzm-search-select-popup { direction: rtl; }
@media (max-width: 600px) {
  .search-box .dzm-search-select-trigger { min-height: 46px; padding-inline: 11px; font-size: 13px; }
  .dzm-search-select-popup { max-width: calc(100vw - 24px); }
  .dzm-search-select-option { min-height: 44px; padding: 9px 10px; }
}

.dzm-search-select-option-wilaya { display: inline-flex; align-items: center; gap: .25em; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
