/* Gift cards page: the card preview, the sale and request forms and everything
   in them: selects, the tiles and group size, the Gift value block, the fields,
   the delivery choice, the button and the errors. Each choice is a real radio;
   the tile is its label, so the form works without a script. Inputs are square
   with a 1px grey border; the selected tile has an ink border and a sand ground. */

/* ---------- The card preview ---------- */
.nara-gc-make-preview .nara-gc-eyebrow { margin-bottom: 14px; }
/* The preview is white with a thin gold line round it and a 5px bottom border in the chosen place's true colour (set on the element
   by the server and the page script). With a place chosen the thin line turns grey. The lines of the card stay ink, the empty field
   lines too (the print page and the emails keep their muted placeholders: this file is not loaded there). */
.nara-gc-make .nara-gc-face { max-width: none; overflow: hidden; background: var(--gc-white); border: 1px solid #A88A4A; border-bottom-width: 5px; box-shadow: 0 20px 45px rgba(43, 38, 32, 0.05); }
.nara-gc-make .nara-gc-face.is-placed { border-top-color: #A3A3A3; border-right-color: #A3A3A3; border-left-color: #A3A3A3; }
.nara-gc-make .nara-gc-face .is-empty { color: var(--gc-ink); }
.nara-gc-make .nara-gc-face .nara-gc-face-body { padding: 32px 40px 40px; }
.nara-gc-make .nara-gc-face .nara-gc-face-headline { font-size: 30px; font-weight: 300; letter-spacing: -0.01em; }
.nara-gc-make .nara-gc-face .nara-gc-face-subline { font-size: 13px; }
.nara-gc-make .nara-gc-face .nara-gc-face-value { font-size: 15px; font-weight: 500; }
.nara-gc-make .nara-gc-face .nara-gc-face-message { margin-top: 24px; font-size: 19px; font-weight: 300; }
.nara-gc .nara-gc-preview-caption { margin-top: 20px; max-width: 24em; font-size: 12px; line-height: 1.7; color: var(--gc-muted); }

/* ---------- Form and fields ---------- */
.nara-gc-form { min-width: 0; }
.nara-gc .nara-gc-form-intro { margin: 0 0 28px; font-size: 15px; line-height: 1.7; }
.nara-gc .nara-gc-form-error, .nara-gc .nara-gc-staff-selling {
  margin: 0 0 24px; padding: 12px 16px; font-size: 14px; background: var(--gc-sand); border-left: 2px solid var(--gc-negative);
}
.nara-gc .nara-gc-staff-selling { border-left-color: var(--gc-gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.nara-gc-form .nara-gc-field { margin: 24px 0 0; }
.nara-gc-form > .nara-gc-field:first-of-type { margin-top: 0; }
.nara-gc .nara-gc-label {
  display: block; margin: 0 0 8px; padding: 0; font: 500 10.5px/1.4 var(--gc-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gc-ink);
}
.nara-gc.nara-gc .nara-gc-input, .nara-gc.nara-gc .nara-gc-select {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid var(--gc-border); border-radius: 0;
  background: var(--gc-white); color: var(--gc-ink); box-shadow: none; font: 400 14px/1.5 var(--gc-font);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.nara-gc.nara-gc .nara-gc-input::placeholder { color: #767676; opacity: 1; }
.nara-gc.nara-gc .nara-gc-input:hover, .nara-gc.nara-gc .nara-gc-select:hover { border-color: var(--gc-ink); }
.nara-gc.nara-gc .nara-gc-input:focus, .nara-gc.nara-gc .nara-gc-select:focus { outline: none; border-color: var(--gc-ink); box-shadow: 0 0 0 1px var(--gc-ink); }
.nara-gc.nara-gc .nara-gc-select {
  padding-right: 44px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23333333' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.nara-gc.nara-gc .nara-gc-select:disabled { cursor: not-allowed; opacity: 0.55; }
.nara-gc.nara-gc .nara-gc-textarea { min-height: 116px; resize: vertical; }
.nara-gc .nara-gc-hint { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--gc-muted); }
.nara-gc-field-row { display: flex; justify-content: space-between; margin-top: 8px; }
.nara-gc-field-row .nara-gc-hint { margin-top: 0; }
.nara-gc .nara-gc-count { margin-left: 16px; font-size: 12px; color: var(--gc-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nara-gc-field.has-error .nara-gc-input, .nara-gc.nara-gc .nara-gc-input[aria-invalid="true"] { border-color: var(--gc-negative); box-shadow: 0 0 0 1px var(--gc-negative); }
.nara-gc .nara-gc-error { display: flex; align-items: flex-start; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--gc-negative); }
.nara-gc-error-mark { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border: 1.5px solid var(--gc-negative); border-radius: 9999px; font: 700 11px/1 var(--gc-font); }

/* ---------- Choices: tiles and group size ---------- */
.nara-gc-choices { margin-top: 28px; }
.nara-gc-tiles { display: grid; gap: 12px; }
.nara-gc-tiles--rows { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.nara-gc-tiles--amounts { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.nara-gc .nara-gc-tile, .nara-gc .nara-gc-choice { position: relative; display: flex; margin: 0; cursor: pointer; }
.nara-gc .nara-gc-tile input, .nara-gc .nara-gc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.nara-gc-tile-face, .nara-gc-choice-face {
  display: flex; flex: 1; flex-direction: column; min-height: 88px; padding: 14px 16px; border: 1px solid var(--gc-border);
  background: var(--gc-white); color: var(--gc-ink); transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.nara-gc-tile-face > * + *, .nara-gc-choice-face > * + * { margin-top: 4px; }
.nara-gc-tile--live .nara-gc-tile-face, .nara-gc-tile--custom .nara-gc-tile-face { justify-content: center; }
.nara-gc-tile-label, .nara-gc-tile-text { font: 600 13px/1.35 var(--gc-font); }
.nara-gc-tile-sub { font-size: 12px; line-height: 1.5; color: var(--gc-muted); }
.nara-gc-tile-price { display: flex; flex-direction: column; margin-top: auto; padding-top: 4px; }
.nara-gc-tile-cur { font: 500 10px/1.2 var(--gc-font); letter-spacing: 0.16em; color: var(--gc-muted); }
.nara-gc-tile-num { margin-top: 2px; font: 300 24px/1.1 var(--gc-font); }
.nara-gc-tile:hover .nara-gc-tile-face, .nara-gc-choice:hover .nara-gc-choice-face { border-color: var(--gc-ink); }
.nara-gc-tile input:checked + .nara-gc-tile-face, .nara-gc-choice input:checked + .nara-gc-choice-face {
  border-color: var(--gc-ink); background: var(--gc-sand); box-shadow: inset 0 0 0 1px var(--gc-ink);
}
.nara-gc-tile input:focus + .nara-gc-tile-face, .nara-gc-choice input:focus + .nara-gc-choice-face { outline: 2px solid var(--gc-ink); outline-offset: 3px; }
/* A browser that knows :focus-visible hides the ring again for a mouse click; one that does not keeps it, so the tile always shows where the keyboard is. */
.nara-gc-tile input:focus:not(:focus-visible) + .nara-gc-tile-face, .nara-gc-choice input:focus:not(:focus-visible) + .nara-gc-choice-face { outline: none; }
.nara-gc-tile input:focus-visible + .nara-gc-tile-face, .nara-gc-choice input:focus-visible + .nara-gc-choice-face { outline: 2px solid var(--gc-ink); outline-offset: 3px; }
/* A row that cannot be sold now (its party cannot be priced today): shown, dimmed, and it cannot be picked. */
.nara-gc .nara-gc-tile.is-unavailable { cursor: not-allowed; }
.nara-gc-tile.is-unavailable .nara-gc-tile-face { border-style: dashed; color: var(--gc-muted); }
.nara-gc-tile.is-unavailable:hover .nara-gc-tile-face { border-color: var(--gc-border); }
.nara-gc-custom, .nara-gc-date { max-width: 320px; }
.nara-gc-form .nara-gc-custom { margin-top: 16px; }
.nara-gc-money { position: relative; }
.nara-gc-money-cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--gc-font); letter-spacing: 0.14em; color: var(--gc-muted); }
.nara-gc.nara-gc .nara-gc-money .nara-gc-input { padding-left: 56px; }

.nara-gc-party { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.nara-gc-tiles + .nara-gc-party { margin-top: 20px; }
.nara-gc .nara-gc-party > .nara-gc-label { margin-bottom: 12px; font: 600 13px/1.4 var(--gc-font); letter-spacing: 0; text-transform: none; }
.nara-gc-party-fields { display: flex; }
.nara-gc-party-fields .nara-gc-field { flex: none; width: 100px; margin: 0; }
.nara-gc-party-fields .nara-gc-field + .nara-gc-field { margin-left: 12px; }
.nara-gc.nara-gc .nara-gc-party-fields .nara-gc-input { width: 100%; }

/* ---------- Gift value: between two hairlines ---------- */
.nara-gc-value { margin-top: 32px; padding: 24px 0 26px; border-top: 1px solid var(--gc-gold); border-bottom: 1px solid var(--gc-gold); }
.nara-gc .nara-gc-value-amount { margin-top: 16px; font: 300 36px/1.15 var(--gc-font); letter-spacing: -0.01em; }
.nara-gc .nara-gc-value-party { margin-top: 12px; font-size: 13px; line-height: 1.6; }
.nara-gc .nara-gc-value-note, .nara-gc .nara-gc-value-expiry { margin-top: 8px; font-size: 12px; line-height: 1.65; color: var(--gc-muted); }
.nara-gc .nara-gc-value-problem { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--gc-negative); }

/* ---------- Who it is for, the message, the email, delivery and the occasion ---------- */
.nara-gc-person { margin-top: 28px; }
.nara-gc-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nara-gc-form .nara-gc-names .nara-gc-field { margin-top: 0; }
.nara-gc-delivery { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.nara-gc-choices-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nara-gc-choice-face { min-height: 76px; }
.nara-gc-choice-title { font: 600 13px/1.35 var(--gc-font); }
.nara-gc-choice-text { font-size: 12px; line-height: 1.5; color: var(--gc-muted); }
.nara-gc-form .nara-gc-date { margin-top: 16px; }

/* ---------- The button and what sits under it ---------- */
.nara-gc-summary, .nara-gc-actions { margin-top: 32px; }
.nara-gc.nara-gc .nara-gc-form .nara-gc-btn { width: 100%; min-height: 48px; }
.nara-gc .nara-gc-summary-note { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--gc-muted); }
.nara-gc-actions .nara-gc-summary-note { margin: 0 0 16px; }
.nara-gc .nara-gc-summary-once { margin-top: 10px; font-size: 12px; line-height: 1.6; }
.nara-gc .nara-gc-privacy { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--gc-muted); }

/* ---------- The terms: two-line summary and the tick box above the button ---------- */
.nara-gc-accept { margin-top: 28px; }
.nara-gc .nara-gc-accept-summary { margin: 0 0 6px; font-size: 12px; line-height: 1.65; color: var(--gc-muted); }
.nara-gc .nara-gc-check { display: flex; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.6; cursor: pointer; }
.nara-gc .nara-gc-check input { flex: none; width: 20px; height: 20px; margin: 1px 12px 0 0; accent-color: var(--gc-ink); }
.nara-gc .nara-gc-check a { color: var(--gc-ink); text-decoration: underline; text-underline-offset: 3px; }
.nara-gc .nara-gc-check input:focus-visible { outline: 2px solid var(--gc-ink); outline-offset: 2px; }

@media (max-width: 760px) {
  .nara-gc-make .nara-gc-face .nara-gc-face-body { padding: 24px 20px 28px; }
  .nara-gc-make .nara-gc-face .nara-gc-face-headline { font-size: 24px; }
  .nara-gc-make .nara-gc-face .nara-gc-face-message { font-size: 17px; }
  .nara-gc-tiles--rows, .nara-gc-tiles--amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nara-gc-names { grid-template-columns: minmax(0, 1fr); }
  .nara-gc-choices-row { grid-template-columns: minmax(0, 1fr); }
  .nara-gc-custom, .nara-gc-date { max-width: none; }
  .nara-gc .nara-gc-value-amount { font-size: 30px; }
}
