.locale-picker {
  position: relative;
}

.locale-picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black, #111);
  cursor: pointer;
  transition: background 0.2s ease;
}

.locale-picker__trigger:hover {
  background: var(--field, #eae7e2);
}

.locale-picker__trigger[aria-expanded="true"] {
  background: var(--field, #eae7e2);
}

.locale-picker__flag {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: var(--locale-flag, linear-gradient(180deg, #ae1c28 0 33%, #fff 33% 66%, #21468b 66%));
}

.locale-picker__chevron {
  flex: none;
  width: 14px;
  height: 14px;
  opacity: 0.55;
  transition: transform 0.2s ease;
}

.locale-picker__trigger[aria-expanded="true"] .locale-picker__chevron {
  transform: rotate(180deg);
}

.locale-picker__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(300px, calc(100vw - 40px));
  max-height: min(420px, 70vh);
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(74, 53, 34, 0.06),
    0 18px 40px rgba(74, 53, 34, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.locale-picker__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.locale-picker__panel[hidden] {
  display: none;
}

.locale-picker__search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--field, #eae7e2);
}

.locale-picker__search svg {
  flex: none;
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.locale-picker__search input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.locale-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.locale-picker__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: var(--black, #111);
  cursor: pointer;
}

.locale-picker__option:hover,
.locale-picker__option.is-selected {
  background: var(--field, #eae7e2);
}

.locale-picker__option .locale-picker__flag {
  width: 20px;
  height: 20px;
}

.locale-picker__option-name {
  flex: 1;
}

.locale-picker__option-currency {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted, #6b6560);
}

.locale-picker__empty {
  padding: 16px 10px;
  font-size: 13px;
  color: var(--muted, #6b6560);
  text-align: center;
}