/* Anahata v2 — PDP option chips. Figma 1473:915 "Select Size" (1785:3787). */

.option-chips {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-3);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.option-chips__label {
  /* floated, a legend stops sitting on the fieldset's top edge — the product
     page draws a hairline there (component-pdp.css) */
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-subheading);
  line-height: normal;
  color: var(--a-ink-pure);
}

.option-chips__tray {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--a-space-3);
  /* no card round the chips any more — the block is set off by the
     product page's hairlines (component-pdp.css) */
  justify-content: flex-start;
}

.option-chips__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 var(--a-space-4);
  background: var(--a-surface);
  border: 1px solid var(--a-grey-50);
  border-radius: var(--a-radius-pill);
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-xs);
  line-height: normal;
  color: var(--a-ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.option-chips__input:checked + .option-chips__chip {
  background: var(--a-cream);
  border-color: var(--a-tan);
  /* read clearly as "chosen" (designer review 2026-09-24): an inset ring
     doubles the tan border without shifting the chip's size */
  box-shadow: inset 0 0 0 1px var(--a-tan);
  font-weight: 600;
}

.option-chips__input:focus-visible + .option-chips__chip {
  outline: 2px solid var(--a-ink-pure);
  outline-offset: 2px;
}

.option-chips__chip.is-unavailable {
  color: var(--a-text-muted);
  text-decoration: line-through;
}
