/* Language & currency picker */
.locale-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.locale-modal[hidden] {
  display: none;
}
.locale-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
}
.locale-modal__panel {
  position: relative;
  width: min(400px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  color: #0d2818;
}
.locale-modal__panel h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.locale-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  color: #5c6c84;
}
.locale-modal__close:hover {
  background: #f0f4f8;
}
.locale-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.locale-modal__field select {
  font: inherit;
  font-weight: 400;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
}
.locale-modal__note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: #5c6c84;
  line-height: 1.45;
}
.locale-modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.locale-modal__apply {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: #0d2818;
  color: #fff;
  font-weight: 700;
}
.locale-modal__cancel {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d9e6;
  background: #fff;
  font-weight: 600;
}

.utility-picker {
  color: #e8eef6;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}
.utility-picker:hover {
  color: #fff;
  text-decoration: underline;
}

.utility-bar--mini {
  background: #0a2540;
  color: #c8d4e4;
  font-size: 0.8125rem;
  padding: 0.35rem 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Pages with a hamburger keep English/AED in the drawer only */
body:has(#menu-toggle) > .utility-bar--mini,
body:has(.mobile-drawer) > .utility-bar--mini {
  display: none !important;
}

html[dir="rtl"] .brand-logo {
  align-items: center;
}
