/* Anahata v2 — Buy gift card. Figma `1552:2924` / `1800:4914`. */

.giftcard__inner {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-4);
  padding-inline: var(--a-gutter);
}

/* hero — `1552:3067`: copy left, gift mark right; white ground per the
   designer review 2026-09-26 (#6) */
.giftcard__hero {
  display: flex;
  align-items: center;
  gap: var(--a-space-1);
  min-height: 122px;
  padding: var(--a-space-4);
  background: var(--a-surface);
  border-radius: var(--a-radius);
}

.giftcard__hero-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--a-space-2);
}

.giftcard__hero-title {
  margin: 0;
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-l);
  line-height: normal;
  color: var(--a-ink-pure);
}

.giftcard__hero-note {
  margin: 0;
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: normal;
  color: var(--a-text-muted);
}

.giftcard__hero-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  color: var(--a-ink-pure);
}

/* the numbered steps — an ordered list in the design, rendered as headings
   with their own numeral so the sections can sit apart in the flow */
.giftcard__step {
  display: flex;
  gap: var(--a-space-2);
  align-items: center;
  min-height: 35px;
  margin: 0;
  font-family: var(--a-font-body);
  font-weight: 500;   /* Medium — designer review 2026-09-26 */
  font-size: var(--a-fs-body-s);
  line-height: normal;
  color: var(--a-ink-pure);
}

.giftcard__step-n {
  font-variant-numeric: tabular-nums;
}

.giftcard__form {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-4);
  margin: 0;
}

/* 6 tiles, three to a row — `1552:3102` / `1552:3112` */
.giftcard__amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* full width, flush with the step heading (designer review #6) */
  gap: var(--a-space-3) 6px;
}

.giftcard__who {
  display: flex;
  gap: var(--a-space-3);
}

.giftcard__who .balance-tile {
  flex: 1 1 0;
  min-width: 0;
  gap: var(--a-space-3);   /* icon ↔ text had too little room (designer review #7) */
}

.giftcard__who .balance-tile__body {
  gap: 2px;                /* title ↔ note were too far apart */
}

.giftcard__who .balance-tile__title {
  font-size: var(--a-fs-body-s);   /* 14px */
  line-height: 1.2;
}

.giftcard__who .balance-tile__subtitle {
  line-height: 1.2;
}

.giftcard__recipient {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-4);
}

/* after the rule above, so hiding actually wins */
.giftcard__recipient[hidden] {
  display: none;
}

.giftcard__info {
  display: flex;
  align-items: center;
  gap: var(--a-space-2);
  margin: 0;
  font-family: var(--a-font-body);
  font-size: 11px;
  line-height: normal;
  color: var(--a-text-muted);
}

.giftcard__stub {
  margin: 0;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
  line-height: var(--a-lh-label);
  color: var(--a-text-muted);
  text-align: center;
}

.giftcard__bar {
  padding-block: var(--a-space-5);
}

/* ---- Add Message dialog (`1800:5023`) ---- */
.giftmsg {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-3);
  width: 100%;
}

.giftmsg__title {
  margin: 0;
  font-family: var(--a-font-body);
  font-weight: 700;
  font-size: var(--a-fs-title);   /* Add Message sheet.png: ~27px */
  line-height: normal;
  color: var(--a-ink);
  text-align: center;
}

/* the design shows only the box; the label stays for screen readers */
.giftmsg__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.giftmsg__input {
  width: 100%;
  min-height: 128px;
  padding: var(--a-space-3) var(--a-space-4);
  border: 1px solid var(--a-border-input);
  border-radius: var(--a-radius);
  background: var(--a-surface);
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-l);   /* Add Message sheet.png: ~17px */
  line-height: var(--a-lh-body-l);
  color: var(--a-ink);
  resize: none;
}

/* one ink border on focus — not Dawn's extra focus shadow as well */
.giftmsg__input:focus,
.giftmsg__input:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--a-ink);
}

.giftmsg__input::placeholder {
  color: var(--a-text-placeholder);
}


.giftmsg__actions {
  display: flex;
  gap: var(--a-space-3);
}

.giftmsg__actions .a-btn {
  flex: 1 1 0;
}


/* the gift glyph has more air in its box than the profile one, so at the
   tile's 18px it read small and off-centre (designer review #7) */
.giftcard__who .balance-tile__icon .a-icon {
  width: 22px;
  height: 22px;
}
