/* Anahata v2 — currency selector (footer). Pill matches the option dropdown. */

.currency-select {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.currency-select .opt-dd {
  background: var(--a-gradient-brand);
  border: 0;
  color: var(--a-on-dark);
  font-weight: 600;
}

.currency-select .opt-dd__label,
.currency-select .opt-dd__caret {
  color: var(--a-on-dark);
}

.currency-select__go {
  margin-left: var(--a-space-2);
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
}

.currency-select__note {
  flex-basis: 100%;
  margin: var(--a-space-2) 0 0;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
  line-height: 1.35;
  color: var(--a-text-muted);
}

/* ---- listbox (opens above the button; --below when there's no room) ---- */
.currency-select__control {
  position: relative;
  display: inline-block;
}

.currency-select__button {
  -webkit-tap-highlight-color: transparent;
}

.currency-select__button:focus-visible {
  outline: 2px solid var(--a-ink-pure);
  outline-offset: 2px;
  box-shadow: none;
}

.currency-select__button[aria-expanded='true'] .opt-dd__caret {
  transform: rotate(180deg);
}

.currency-select__list {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + var(--a-space-2));
  left: 50%;
  transform: translateX(-50%);
  min-width: 100%;
  max-height: 60vh;
  margin: 0;
  padding: var(--a-space-2);
  overflow-y: auto;
  list-style: none;
  background: var(--a-surface);
  border: 1px solid var(--a-border-soft);
  border-radius: var(--a-radius-dropdown);
  box-shadow: var(--a-shadow-card);
  text-align: left;
}

.currency-select__list:focus {
  outline: none;
}

.currency-select__list:focus-visible {
  outline: 2px solid var(--a-ink-pure);
  outline-offset: 2px;
}

.currency-select__list--below {
  top: calc(100% + var(--a-space-2));
  bottom: auto;
}

.currency-select__option {
  display: flex;
  align-items: center;
  gap: var(--a-space-2);
  padding: var(--a-space-2) var(--a-space-3);
  border-radius: var(--a-radius-8);
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-s);
  line-height: var(--a-lh-body-s);
  color: var(--a-ink);
  white-space: nowrap;
  cursor: pointer;
}

.currency-select__option.is-active {
  background: var(--a-bg-subtle);
}

.currency-select__option[aria-selected='true'] {
  font-weight: 700;
}

.currency-select__check {
  display: inline-flex;
  width: 14px;
  color: var(--a-brand-deep);
}
