:root {
  color-scheme: light;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f7f8fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --brand: #f58245;
  --brand-action: #c2410c;
  --brand-dark: #9a3412;
  --brand-soft: #fff1e9;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: rgba(255, 255, 255, .97);
  --blue: #175cd3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 130, 69, .12), transparent 28rem),
    #f7f8fb;
}
a { color: inherit; }
.shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.shell-narrow { width: min(560px, calc(100% - 32px)); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ff9b61, var(--brand-action));
  box-shadow: 0 8px 18px rgba(194, 65, 12, .2);
}
.hero { padding: 64px 0 28px; }
.hero h1, .panel h1 { margin: 10px 0 10px; color: var(--text); font-size: clamp(28px, 6vw, 42px); line-height: 1.18; letter-spacing: -.035em; }
.hero p, .panel p, .help { color: var(--muted); line-height: 1.65; }
.eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  color: #b54708 !important;
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { display: grid; gap: 10px; min-height: 180px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; box-shadow: 0 8px 24px rgba(23, 32, 51, .07); transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.card:hover, .card:focus-visible { border-color: #ffb184; box-shadow: 0 12px 30px rgba(194, 65, 12, .1); transform: translateY(-2px); }
.card strong { font-size: 20px; }
.card span:last-child { color: var(--muted); line-height: 1.55; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--brand-action); background: var(--brand-soft); font-size: 21px; font-weight: 800; }
.back-link { display: inline-block; margin: 8px 0 20px; color: #475467; text-decoration: none; }
.page-nav {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 14px;
}
.page-nav > strong { font-size: 16px; text-align: center; }
.nav-back {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #344054;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(23, 32, 51, .08);
}
.nav-security {
  padding: 5px 8px;
  border-radius: 999px;
  color: #027a48;
  background: #ecfdf3;
  font-size: 10px;
  font-weight: 800;
}
.panel { padding: clamp(24px, 6vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 34px rgba(23, 32, 51, .09); }
.panel h1 { font-size: clamp(26px, 6vw, 34px); }
.checkout-overview { margin: 20px 0 14px; padding: 19px; border: 1px solid #ffd6bf; border-radius: 16px; background: linear-gradient(145deg, #fff7f2, #fff); box-shadow: 0 8px 24px rgba(194, 65, 12, .08); }
.checkout-product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-product-row > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #b54708; background: #ffeadf; font-size: 9px; font-weight: 900; }
.checkout-product { margin: 0 !important; color: #475467 !important; font-size: 13px; font-weight: 800; }
.checkout-total { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.checkout-total strong:first-child { margin-top: 15px; font-size: 21px; letter-spacing: -.025em; }
.checkout-total strong:last-child { color: var(--brand-action); font-size: 29px; letter-spacing: -.04em; white-space: nowrap; }
.summary { margin: 28px 0; border-top: 1px solid var(--line); }
.summary-compact { margin: 14px 0 0; }
.summary-compact div:last-child { padding-bottom: 0; border-bottom: 0; }
.summary div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.actions { display: grid; gap: 10px; }
.actions .primary { font-size: 17px; }
.form-grid { display: grid; gap: 16px; margin-top: 28px; }
.form-grid label, .coupon-result label { display: grid; gap: 7px; color: #475467; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid #d0d5dd; border-radius: 11px; padding: 12px 13px; color: var(--text); background: #fff; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(23, 92, 211, .14); border-color: var(--blue); }
.coupon-result { margin-top: 30px; padding-top: 24px; border-top: 1px solid #dfe8ed; }
.coupon-result h2 { margin: 0 0 8px; }
.coupon-result textarea { overflow-wrap: anywhere; resize: vertical; }
.coupon-qr { display: block; width: min(220px, 100%); height: auto; margin: 20px auto; border: 10px solid white; border-radius: 12px; }
button { min-height: 52px; border-radius: 12px; border: 0; padding: 0 18px; font: inherit; font-weight: 800; cursor: pointer; transition: transform 120ms ease, filter 120ms ease; }
button:active, .button-link:active { transform: scale(.985); }
button:disabled { cursor: wait; opacity: .55; }
.primary { color: white; background: linear-gradient(135deg, #e85d1f, var(--brand-action)); box-shadow: 0 9px 20px rgba(194, 65, 12, .22); }
.primary:hover { filter: brightness(.97); }
.secondary { color: #344054; background: #f2f4f7; }
.help { padding: 0 10px; font-size: 13px; }
.guide-list { padding-left: 22px; color: #475467; line-height: 1.75; }
.notice { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 11px 12px; border-radius: 11px; color: #475467; background: #f8fafc; font-size: 12px; line-height: 1.5; }
.notice > span:first-child { display: grid; flex: 0 0 auto; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #027a48; background: #dcfae6; font-size: 11px; font-weight: 900; }
.button-link { display: grid; min-height: 52px; place-items: center; border-radius: 12px; padding: 0 18px; font-weight: 800; text-decoration: none; }
@media (max-width: 640px) {
  .shell { width: min(620px, calc(100% - 20px)); padding-top: 12px; }
  .page-nav { margin-bottom: 10px; }
  .panel { padding: 18px; border-radius: 18px; }
  .panel h1 { margin: 8px 0 7px; font-size: 25px; }
  .panel > #checkout-message { margin: 0; line-height: 1.55; }
  .hero { padding-top: 48px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 160px; }
  .checkout-overview { margin: 14px 0 11px; padding: 16px; }
  .checkout-total { gap: 10px; }
  .checkout-total strong:first-child { font-size: 18px; }
  .checkout-total strong:last-child { font-size: 27px; }
  .summary-compact { margin-top: 10px; }
  .summary-compact div { padding-top: 10px; }
  .notice { margin-top: 11px; }
}
