/**
 * GiftKit storefront styles ("Ink & Foil") — optional. Submit this URL in the dev
 * portal as the CSS URL. storefront.js inlines its critical styles so the widget
 * renders even without this file; this hardens scoping against aggressive merchant
 * themes and carries the design tokens.
 *
 * Palette: ink #16130F · ivory #FBF8F1 · vault green #0E6E5C (primary) ·
 * antique gold #C9A227 (foil accent) · plum #6D2E46 (spent). Money + codes render
 * in IBM Plex Mono; display type in Fraunces. The merchant's own accentColor is
 * injected inline as --gk-accent and layers on this structural style.
 */
.giftkit-host,
.giftkit-host * {
  box-sizing: border-box;
}
.giftkit-host {
  --gk-ink: #16130f;
  --gk-paper: #fbf8f1;
  --gk-foil: #c9a227;
  --gk-emerald: #0e6e5c;
  --gk-plum: #6d2e46;
  --gk-hair: #e7e0d2;
  --gk-mut: #6b6357;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.45;
  text-align: left;
  color: var(--gk-ink);
}
.giftkit-host img {
  max-width: none;
  display: block;
}
/* The ledger through-line: every dollar amount + code in tabular slashed-zero mono. */
.giftkit-money {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums slashed-zero;
}
.giftkit-display {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
}
.giftkit-cta {
  font-family: inherit;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.giftkit-cta:hover {
  filter: brightness(1.05) saturate(1.03);
}
.giftkit-cta:active {
  transform: scale(0.99);
}
.giftkit-chip {
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
/* "Custom" chip — sits alongside the denomination chips, reveals the money input. */
.giftkit-chip--custom {
  font-family: inherit;
  font-variant-numeric: normal;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.giftkit-chip--custom svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
/* The premium money input — big $ prefix, tabular mono numerals, emerald focus ring. */
.giftkit-amount {
  margin-top: 10px;
}
.giftkit-amount-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--gk-hair, #e7e0d2);
  border-radius: 12px;
  padding: 0 14px;
  min-height: 60px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.giftkit-amount-field.is-focus {
  border-color: var(--gk-accent, #0e6e5c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gk-accent, #0e6e5c) 22%, transparent);
}
.giftkit-amount-field.is-error {
  border-color: var(--gk-plum, #6d2e46);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gk-plum, #6d2e46) 18%, transparent);
}
.giftkit-amount-cur {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 26px;
  font-weight: 600;
  color: var(--gk-mut, #6b6357);
  line-height: 1;
  padding-right: 4px;
  flex: 0 0 auto;
}
.giftkit-amount-input {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 30px;
  font-weight: 600;
  color: var(--gk-ink, #16130f);
  line-height: 1.1;
  padding: 12px 0;
  min-width: 0;
}
.giftkit-amount-input::placeholder {
  color: #c3bcae;
  font-weight: 600;
}
.giftkit-amount-input::-webkit-outer-spin-button,
.giftkit-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.giftkit-amount-hint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}
/* Compact cart redeem note + extra redeem-result lines. */
.giftkit-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gk-ink, #16130f);
  margin-bottom: 10px;
}
.giftkit-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--gk-emerald, #0e6e5c);
}
.giftkit-result-line {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 13px;
  color: var(--gk-ink, #16130f);
  margin-top: 2px;
}
/* The signature stamp reveal — scale + blur → sharp, reused wherever value first appears. */
@keyframes giftkitStamp {
  0% {
    transform: scale(1.18);
    filter: blur(3px);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
}
.giftkit-stamp {
  animation: giftkitStamp 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .giftkit-cta,
  .giftkit-chip,
  .giftkit-stamp,
  .giftkit-amount-field {
    transition: none;
    animation: none;
  }
}
