/* Gift Card checkout matches the site's existing purchase card. */
.new-methods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.new-method { min-width: 0; }
.new-method small { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.buy-card.is-gift-card .amount-label,
.buy-card.is-gift-card .amount-field,
.buy-card.is-gift-card .slider-control,
.buy-card.is-gift-card .presets,
.buy-card.is-gift-card #amount-error,
.buy-card.is-gift-card #ingame-store,
.buy-card.is-gift-card .transfer-note,
.buy-card.is-gift-card .new-total,
.buy-card.is-gift-card #checkout-open,
.buy-card.is-gift-card .plus-stock { display: none !important; }
.buy-card.is-gift-card .buy-card-heading { margin-bottom: 18px; }
.buy-card.is-gift-card .method-label { margin-top: 0; }
.buy-card.is-gift-card #gift-card-panel { display: block; }
#gift-card-panel[hidden] { display: none !important; }
.gift-card-panel { margin-top: 20px; color: var(--ink); }
.gift-card-head { margin-bottom: 21px; }
.gift-card-head h3 { margin: 0; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }
.gift-card-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--ink); font-size: 11px; font-weight: 650; }
.gift-card-label span { color: var(--muted); font-weight: 500; }
.gift-card-denominations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gift-card-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 102px; padding: 10px 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--ink); font: inherit; transition: border-color .18s, box-shadow .18s, transform .18s; }
.gift-card-choice.is-unavailable { opacity: .56; cursor: not-allowed; }
.gift-card-choice.is-available { cursor: pointer; border-color: #86d4fa; background: linear-gradient(150deg, var(--surface) 15%, var(--blue-soft)); box-shadow: 0 7px 18px #0799df17; }
.gift-card-choice.is-available:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 9px 21px #0799df28; }
.gift-card-choice.is-available[aria-pressed="true"] { border-color: #139fe9; box-shadow: 0 0 0 2px #159fe81c, 0 7px 18px #0799df20; }
.gift-card-amount { display: inline-flex; align-items: baseline; gap: 3px; }
.gift-card-value { font-size: 17px; font-weight: 750; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.gift-card-unit { font-size: 10px; font-weight: 650; opacity: .7; line-height: 1; }
.gift-card-availability { color: var(--muted); font-size: 9px; font-weight: 600; line-height: 1.15; text-align: center; }
.gift-card-choice.is-available .gift-card-availability { color: var(--blue); }
.gift-card-stock-note { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #d9e9f2; border-radius: 12px; background: var(--blue-soft); color: var(--ink); font-size: 12px; line-height: 1.55; }
.gift-card-stock-note[hidden] { display: none; }
.gift-card-choice:focus-visible, #gift-card-method:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gift-card-dialog:not([open]), .gift-card-form[hidden], .gift-card-review[hidden], .gift-card-payment[hidden] { display: none !important; }
.gift-card-dialog .modal-subtitle { margin-top: 0; }
.gift-card-dialog .order-chip { margin-bottom: 20px; }
.gift-card-dialog .field-hint { margin: 8px 0 0; }
.gift-card-dialog .review-list { margin-top: 9px; }
.gift-card-dialog .modal-actions .primary-button { min-width: 0; }
.gift-card-dialog[data-step="payment"] .gift-card-steps { display: none; }
.gift-card-price { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 21px; padding: 19px 0 16px; border-top: 1px solid var(--line); }
.gift-card-price > div { display: flex; flex-direction: column; gap: 5px; }
.gift-card-price > div:last-child { text-align: right; }
.gift-card-price span { color: var(--muted); font-size: 11px; }
.gift-card-price strong { color: var(--ink); font-size: 29px; line-height: 1; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.gift-card-price b { color: var(--ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.gift-card-disclaimer { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.gift-card-checkout { width: 100%; margin-top: 4px; }
.gift-card-dialog-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.gift-card-pay-methods { margin: 15px 0 2px; }
.gift-card-pay-methods .payment-choice { min-width: 0; }
.gift-card-pay-methods .payment-choice .selection-circle { display: grid; place-items: center; }
.gift-card-recipient { display: flex; align-items: center; gap: 12px; margin: 0; }
.gift-card-recipient > span:last-child { display: grid; gap: 4px; min-width: 0; }
.gift-card-recipient strong { font-size: 14px; }
.gift-card-recipient small { color: var(--muted); overflow-wrap: anywhere; }
.gift-card-recipient-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); flex: none; }
.gift-card-recipient-icon .icon { width: 22px; height: 22px; }
.gift-card-payment-total { margin-top: 5px; }
.gift-card-payment-total strong { font-size: 25px; }
.gift-card-payment .legal-notice { margin: 12px 0 0; }
.gift-payment-progress { margin-top: 20px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--blue-soft); }
.gift-payment-progress h3 { margin: 0 0 7px; font-size: 17px; }
.gift-payment-progress p { margin: 0 0 15px; color: var(--muted); line-height: 1.6; font-size: 13px; }
.gift-card-payment .error-text[hidden] { display: none; }
[data-theme="dark"] .gift-card-choice.is-available { border-color: #267caa; background: linear-gradient(150deg, var(--surface) 15%, var(--blue-soft)); }
[data-theme="dark"] .gift-card-choice.is-unavailable { background: var(--surface-soft); }
@media (max-width: 600px) {
  .new-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-card-denominations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-card-choice { min-height: 102px; }
  .gift-card-head h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gift-card-choice { transition: none; }
}
