
:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #696969;
  --pink: #ff1b6d;
  --deep-pink: #c70c50;
  --yellow: #ffd149;
  --line: #efe9e4;
  --paper: #fff;
  --canvas: #fbf7f4;
  --brand: linear-gradient(135deg, var(--yellow), var(--pink) 55%, var(--deep-pink));
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Poppins, system-ui, sans-serif; font-size: 15px; }
main, .mast-inner { width: min(990px, calc(100% - 40px)); margin: auto; }
.payment-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.payment-view .mast { flex: none; box-shadow: 0 2px 10px #1a1a1a0a; z-index: 1; }
.payment-view .mast img { display: none; }
.payment-view main { flex: 1; min-height: 0; width: 100%; margin: 0; }
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mast img { width: 170px; height: auto; }
.reference { font-size: .82rem; color: var(--muted); text-align: right; }
.intro { padding: 34px 0 24px; }
.intro h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.05em; margin: 0 0 6px; line-height: 1.12; }
.intro p { max-width: 58ch; margin: 0; color: var(--muted); }
p { line-height: 1.55; }
.grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: start; gap: 22px; margin: 0 0 32px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px #0000000f; }
h2 { font-size: 1.23rem; font-weight: 800; margin: 0 0 16px; line-height: 1.25; }
.item { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0 12px; }
.item strong, .item small { display: block; }
.item small { margin-top: 5px; }
.item-price { white-space: nowrap; }
small { color: var(--muted); }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--muted); }
dd { margin: 0; color: var(--ink); font-weight: 600; white-space: nowrap; }
.grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 13px; color: var(--ink); font-weight: 700; }
.grand dd { color: var(--ink); font-size: 1.25rem; font-weight: 800; }
.pay { position: relative; overflow: hidden; }
.pay::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0 0 15px; min-width: 0; }
.choice { display: flex; align-items: center; gap: 11px; margin: 0 0 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { background: var(--canvas); border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.choice input { accent-color: var(--deep-pink); margin: 0; }
.choice strong, .choice small { display: block; }
.choice small { margin-top: 2px; }
.primary { width: 100%; border: 0; border-radius: 999px; background: var(--deep-pink); color: white; font: inherit; font-weight: 600; padding: 13px; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: default; }
.secondary { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
a { color: var(--deep-pink); }
:focus-visible { outline: 2px solid var(--deep-pink); outline-offset: 3px; }
#status:empty { display: none; }
#status { margin: 10px 0 0; color: var(--muted); }
#checkout { height: 100%; }
iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--paper); }
.checkout-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.checkout-nav .secondary { display: inline-flex; align-items: center; gap: 8px; color: var(--deep-pink); border-color: var(--line); white-space: nowrap; font-weight: 600; }
.checkout-nav .secondary:hover { border-color: var(--deep-pink); }
.checkout-nav .secondary::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
#installment-note { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: .88rem; font-weight: 700; white-space: nowrap; }
#installment-note::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--brand); }
#checkout { display: flex; flex-direction: column; }
iframe { flex: 1; min-height: 0; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  main, .mast-inner { width: calc(100% - 28px); }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .panel { padding: 18px; }
  .mast-inner { min-height: 70px; }
  .mast img { width: 132px; }
  .intro { padding: 24px 0 18px; }
  .payment-view .mast-inner { min-height: 0; padding: 9px 0; }
  .checkout-nav .secondary { padding: 8px 12px; font-size: .77rem; }
  #installment-note { padding: 8px 10px; font-size: .77rem; }
  .checkout-nav { gap: 8px; }
}

.help {margin:24px 0;color:var(--muted);font-size:.85rem;} .message {max-width:620px;margin:36px auto;} .message h1 {font-size:1.6rem;} #checkout-help {padding:8px 14px;margin:0;background:var(--paper);font-size:.8rem;text-align:center;} .payment-view #support {display:none;}
