/* Gift cards: the card face, one white card for the page, the print page and the emails.
   Self contained (no page tokens): the print page loads this file without the page styles.
   Montserrat comes from the site; the stack falls back to Arial. */
.nara-gc-face, .nara-gc-face *, .nara-gc-face *::before, .nara-gc-face *::after { box-sizing: border-box; }
.nara-gc-face {
  width: 100%; max-width: 640px; margin: 0 auto; background: #FFFFFF; color: #333333;
  border: 1px solid #E4E4E4; border-bottom: 5px solid #A8936A;
  font: 400 14px/1.5 Montserrat, Arial, sans-serif; text-align: center;
}
.nara-gc-face .nara-gc-face-photo { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 1.9 / 1; object-fit: cover; }
.nara-gc-face .nara-gc-face-photo[hidden], .nara-gc-face p[hidden] { display: none; }
.nara-gc-face .nara-gc-face-body { padding: 28px 32px 36px; }
.nara-gc-face .nara-gc-face-logo { display: block; width: 56px; height: 56px; max-width: none; margin: 0 auto 16px; }
.nara-gc-face p { margin: 0; padding: 0; font-family: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.nara-gc-face .nara-gc-face-for { font-size: 13px; }
.nara-gc-face .nara-gc-face-headline { margin-top: 10px; font-size: 28px; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.nara-gc-face .nara-gc-face-subline { margin-top: 8px; font-size: 14px; }
.nara-gc-face .nara-gc-face-value { margin-top: 14px; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.nara-gc-face .nara-gc-face-message { margin-top: 28px; font-size: 20px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.nara-gc-face .nara-gc-face-from { margin-top: 24px; font-size: 13px; }
.nara-gc-face .is-empty { color: #6B6B6B; }

@media (max-width: 760px) {
  .nara-gc-face .nara-gc-face-body { padding: 24px 20px 28px; }
  .nara-gc-face .nara-gc-face-headline { font-size: 24px; }
  .nara-gc-face .nara-gc-face-message { font-size: 18px; }
}

/* The credit card style card (views/gift-card-wallet.php): 1.586 to 1 with the padding trick, because iOS 14 has no aspect-ratio
   on boxes with content. The padding is on a ::before, so its percentage is of the card's own width, not of a wider column.
   The place colour is set inline; the soft gradient lives only inside the card, and its white stop is no stronger than
   Nara_Gift_Card_Wallet_Model::SHEEN_WHITE, which the card colour is darkened for so white text reads at 4.5 to 1 under it. */
.nara-gc-wallet, .nara-gc-wallet *, .nara-gc-wallet *::before, .nara-gc-wallet *::after { box-sizing: border-box; }
.nara-gc-wallet {
  position: relative; width: 100%; max-width: 420px; margin: 24px auto 0; border-radius: 16px; overflow: hidden;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.18) 100%);
  color: #FFFFFF; font: 400 12px/1.4 Montserrat, Arial, sans-serif; text-align: left;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.nara-gc-wallet::before { content: ""; display: block; padding-top: 63.05%; }
.nara-gc-wallet .nara-gc-wallet-inner { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; padding: 6.5% 7%; }
.nara-gc-wallet p { margin: 0; padding: 0; font-family: inherit; letter-spacing: 0; text-transform: none; color: #FFFFFF; }
.nara-gc-wallet [hidden] { display: none; }
.nara-gc-wallet .nara-gc-wallet-top { display: flex; align-items: center; justify-content: space-between; }
.nara-gc-wallet .nara-gc-wallet-logo { display: block; width: 34px; height: 34px; max-width: none; }
.nara-gc-wallet .nara-gc-wallet-label { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; }
.nara-gc-wallet .nara-gc-wallet-code { margin-top: auto; font-size: 18px; font-weight: 700; letter-spacing: 0.1em; line-height: 1.2; white-space: nowrap; }
.nara-gc-wallet .nara-gc-wallet-code.is-dots { letter-spacing: 0.16em; }
.nara-gc-wallet .nara-gc-wallet-dash { margin: 0 0.3em; }
.nara-gc-wallet .nara-gc-wallet-name { margin-top: 12px; font-size: 19px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nara-gc-wallet .nara-gc-wallet-name.is-empty { font-weight: 400; }
.nara-gc-wallet .nara-gc-wallet-foot { display: flex; align-items: flex-end; margin-top: 16px; }
.nara-gc-wallet .nara-gc-wallet-col { flex-shrink: 0; margin-right: 22px; }
.nara-gc-wallet .nara-gc-wallet-key { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; line-height: 1.5; white-space: nowrap; }
.nara-gc-wallet .nara-gc-wallet-val { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.3; white-space: nowrap; }
.nara-gc-wallet .nara-gc-wallet-place { min-width: 0; margin-left: auto; font-size: 11px; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) {
  .nara-gc-wallet .nara-gc-wallet-code { font-size: 16px; letter-spacing: 0.08em; }
  .nara-gc-wallet .nara-gc-wallet-name { font-size: 16px; }
  .nara-gc-wallet .nara-gc-wallet-place { white-space: normal; }
}
@media (max-width: 360px) {
  .nara-gc-wallet .nara-gc-wallet-code { font-size: 13.5px; letter-spacing: 0.02em; }
  .nara-gc-wallet .nara-gc-wallet-col { margin-right: 14px; }
}
