/* 크레딧 충전 결제창(public/js/checkout.js). 홈과 채팅 화면이 함께 쓴다. */
.nox-checkout { --ck-bg: #17171d; --ck-panel: #202028; --ck-line: rgba(255, 255, 255, .1); --ck-ink: #fff; --ck-copy: rgba(255, 255, 255, .72); --ck-muted: rgba(255, 255, 255, .5); --ck-accent: #f0443d; --ck-gold: #f5c35b; position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; font-family: var(--nox-font-sans, "Pretendard Variable", Pretendard, system-ui, sans-serif); }
.nox-checkout[hidden] { display: none; }
.nox-checkout-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 9, .62); opacity: 0; transition: opacity .2s ease; }
.nox-checkout.is-open .nox-checkout-backdrop { opacity: 1; }
.nox-checkout-sheet { position: relative; display: flex; flex-direction: column; width: min(100%, 520px); max-height: min(92vh, 760px); border: 1px solid var(--ck-line); border-bottom: 0; border-radius: 22px 22px 0 0; background: var(--ck-bg); color: var(--ck-ink); box-shadow: 0 -24px 60px rgba(0, 0, 0, .45); transform: translateY(24px); transition: transform .24s ease; }
.nox-checkout.is-open .nox-checkout-sheet { transform: none; }
.nox-checkout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 8px; }
.nox-checkout-head strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.nox-checkout-test { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(245, 195, 91, .14); color: var(--ck-gold); font-size: 11.5px; font-weight: 700; }
.nox-checkout-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--ck-copy); cursor: pointer; }
.nox-checkout-close i { font-size: 18px; }
.nox-checkout-body { overflow-y: auto; padding: 8px 24px 16px; overscroll-behavior: contain; }
.nox-checkout-label { margin: 16px 0 10px; color: var(--ck-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.nox-checkout-packages { display: grid; gap: 8px; }
.nox-checkout-packages button { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "amount price"; align-items: center; gap: 2px 12px; width: 100%; padding: 14px 18px; border: 1px solid var(--ck-line); border-radius: 14px; background: var(--ck-panel); color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.nox-checkout-packages span { grid-area: name; color: var(--ck-muted); font-size: 12px; }
.nox-checkout-packages b { grid-area: amount; font-size: 16px; font-weight: 800; }
.nox-checkout-packages em { grid-area: price; color: var(--ck-gold); font-size: 16px; font-style: normal; font-weight: 800; }
.nox-checkout-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nox-checkout-methods button { min-height: 48px; padding: 10px 8px; border: 1px solid var(--ck-line); border-radius: 12px; background: var(--ck-panel); color: var(--ck-copy); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.nox-checkout-packages button.is-selected, .nox-checkout-methods button.is-selected { border-color: var(--ck-accent); background: rgba(240, 68, 61, .1); color: var(--ck-ink); }
.nox-checkout-packages button:focus-visible, .nox-checkout-methods button:focus-visible, .nox-checkout-pay:focus-visible, .nox-checkout-close:focus-visible { outline: 2px solid var(--ck-accent); outline-offset: 2px; }
.nox-checkout-packages button:disabled, .nox-checkout-methods button:disabled { cursor: default; opacity: .6; }
.nox-checkout-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--ck-copy); font-size: 13px; line-height: 1.6; }
.nox-checkout-status[data-tone="error"] { background: rgba(240, 68, 61, .12); color: #ffb3ad; }
.nox-checkout-status[data-tone="success"] { background: rgba(84, 214, 140, .12); color: #9ef0b8; }
.nox-checkout-foot { padding: 14px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ck-line); }
.nox-checkout-terms { margin: 0 0 12px; color: var(--ck-muted); font-size: 11.5px; line-height: 1.6; }
.nox-checkout-terms a { color: var(--ck-copy); text-decoration: underline; }
.nox-checkout-pay { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--ck-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.nox-checkout-pay:disabled { background: #3a3a44; color: rgba(255, 255, 255, .55); cursor: default; }
body.nox-checkout-open { overflow: hidden; }
.nox-checkout-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 2147483001; max-width: min(90vw, 420px); margin: 0; padding: 12px 18px; border-radius: 12px; background: rgba(23, 23, 29, .96); color: #fff; font: 600 13.5px/1.5 var(--nox-font-sans, "Pretendard Variable", Pretendard, system-ui, sans-serif); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.nox-checkout-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 721px) {
  .nox-checkout { align-items: center; }
  .nox-checkout-sheet { border-bottom: 1px solid var(--ck-line); border-radius: 22px; }
}
@media (max-width: 360px) {
  .nox-checkout-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .nox-checkout-backdrop, .nox-checkout-sheet, .nox-checkout-toast { transition: none; }
}
