/* Anahata v2 — option dropdown. Figma: "Component 1" pill selects. */

.opt-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a-space-3);
  padding: var(--a-space-3) var(--a-space-3) var(--a-space-3) var(--a-space-4);
  border: 0;
  border-radius: var(--a-radius-dropdown);
  background: var(--a-bg-subtle);
  font-family: var(--a-font-body);
  font-weight: 500;
  color: var(--a-ink);
  text-decoration: none;
  cursor: pointer;
}

.opt-dd--md {
  font-size: var(--a-fs-body-l);
}

.opt-dd--sm {
  padding: var(--a-space-2) var(--a-space-2) var(--a-space-2) var(--a-space-4);
  font-size: var(--a-fs-body);
}

.opt-dd--block {
  display: flex;
  width: 100%;
}

.opt-dd__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opt-dd__caret {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--a-radius-round);
  color: var(--a-ink);
}

.opt-dd__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  border: 0;
  cursor: pointer;
  appearance: none;
}

/* single-choice products: plain label on grey, no caret, not tappable.
   Semibold, not bold (designer review 2026-09-24). */
.opt-dd--static {
  padding: var(--a-space-1) var(--a-space-3);
  font-weight: 600;
  cursor: default;
}

.opt-dd--static.opt-dd--sm {
  font-size: var(--a-fs-body-xs);
}

/* Our list under the pill (assets/ui-option-dropdown.js) — the phone's own
   select menu opened far from it (designer review 2026-09-29). Same look as
   the currency list. Fixed, so a card's clipped overflow can't hide it. */
.opt-dd__list {
  position: fixed;
  z-index: 70;
  max-height: 50vh;
  margin: 0;
  padding: var(--a-space-1);
  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);
}

.opt-dd__list:focus {
  outline: none;
}

.opt-dd__option {
  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;
}

.opt-dd__option.is-active {
  background: var(--a-bg-subtle);
}

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

.opt-dd[data-listbox]:focus-visible {
  outline: 2px solid var(--a-ink-pure);
  outline-offset: 2px;
}
