* { box-sizing: border-box }
:root { color-scheme: light; --ink: #202825; --line: #cbd1cd; --accent: #204c40 }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 "Segoe UI","Microsoft YaHei",sans-serif }
header, main { width: min(100% - 40px, 460px); margin-inline: auto }
header { display: flex; min-height: 80px; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink) }
header strong { font-size: 20px; letter-spacing: -.03em }
main { margin-block: 38px 64px }
h1 { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; margin: 0 0 30px; overflow-wrap: anywhere }
h2 { font-size: 19px; margin: 30px 0 12px }
p { color: #4e5952 }
label { display: block; margin: 16px 0 6px; font-weight: 600 }
input:not([type=checkbox]) { width: 100%; min-width: 0; border: 1px solid #8c988f; border-radius: 4px; padding: 11px; color: var(--ink); background: white; font: inherit }
input[type=checkbox] { accent-color: var(--accent) }
button { cursor:pointer; font: inherit; font-weight:600; color: white; background: var(--accent); padding:12px 16px; border:0; border-radius:4px }
button:disabled { opacity:.6; cursor:default }
header button,.secondary { background:transparent; color:var(--accent); text-decoration:underline; text-underline-offset:4px }
header button { padding-right:0; font-size:14px }
form>button { width:100%; margin-top:22px }
.money { display:flex; align-items:center; gap:10px; border-bottom:1px solid #77857e; padding:8px 0; font-variant-numeric:tabular-nums }
.money input[type=number] { border:0; padding:0; font-size:38px; font-weight:500; line-height:1.25; appearance:textfield }
.money input::-webkit-inner-spin-button { appearance:none }
.money b { color:#515e56; font-size:15px }
.money:focus-within { border-color:var(--accent); box-shadow:0 1px var(--accent) }
.money input:focus-visible { outline:0 }
output:not(:empty) { display:block; margin-top:18px; color:#85401c }
.account { padding:16px 0; border-top:1px solid var(--line); overflow-wrap:anywhere }
.account label { display:inline-block; margin-right:16px; font-weight:400 }
a { color:var(--accent) }
:focus-visible { outline:2px solid #326753; outline-offset:3px }
body.admin header,body.admin main { max-width:620px; width:min(100% - 40px,620px) }
@media(max-width:480px){ header { min-height:64px } main { margin-top:28px } }

body { background:#f3f4f1; min-height:100vh }
header,main { width:min(100% - 40px,880px) }
header { min-height:84px; border-bottom:1px solid #c6cec7 }
header strong { font:600 24px/1.2 Georgia,serif; letter-spacing:-.035em }
main { margin-top:clamp(32px,9vh,100px) }
.checkout { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); background:white; border:1px solid #cbd1cd; border-radius:8px; overflow:hidden }
.summary,.checkout form { padding:clamp(24px,4vw,42px) }
.summary { background:#e6ece6; border-right:1px solid #cbd1cd }
.summary h1 { word-break:break-word; margin:9px 0 40px; font-size:32px }
.summary small,dt { color:#54655a }
dl { display:grid;grid-template-columns:1fr auto;column-gap:15px;margin:18px 0 }
dt,dd { margin:0;padding:9px 0;border-top:1px solid #cbd1cd;font-size:14px }
dd { text-align:right;font-weight:600;overflow-wrap:anywhere }
.checkout h2 { font-size:22px;margin:0 0 28px }
.checkout label { font-size:14px }.checkout form p {font-size:14px}
.receipt { max-width:520px;margin:auto;background:white;border:1px solid #cbd1cd;padding:30px }
@media(max-width:640px){.checkout{grid-template-columns:1fr}.summary{border-right:0;border-bottom:1px solid #cbd1cd}.summary h1{margin-bottom:12px;font-size:26px;line-height:1.3}.summary dl{margin-bottom:0}main{margin-top:24px}}
@media print {body{background:white}header button,.receipt button{display:none}.receipt{border:0}}
:root{--ink:#072d59;--accent:#005ebc;--line:#cedcec}body{background:#f3f7fc;color:var(--ink)}header{border-color:#ccdbea}header strong{font:700 23px/1.25 "Segoe UI",sans-serif;color:#003087;letter-spacing:-.035em}.checkout,.receipt{border-color:#cddded}.summary{background:#e9f3fc;border-color:#cddded}.summary small,dt,.checkout form p{color:#47647e}dt,dd{border-color:#c6daec}.method-brand{font-weight:600;text-align:right}.money{border-color:#63809c}.money b{color:#445e79}.checkout form>button{background:#005ebc;border-radius:24px}.checkout form>button:enabled:hover{background:#003f88}header button{color:#005bb5}
.method-options{padding:clamp(24px,4vw,42px)}.method-options h2{margin-bottom:4px}.method-options>a{display:block;margin-bottom:18px}.method-options button{width:100%}.method-options h3{margin:18px 0 10px}.method-options { min-width: 0 }
.hosted-field {
  display: flow-root;
  min-width: 0;
  min-height: 80px;
  margin: 4px 0 12px;
}
.v6-label{display:block;margin-top:18px;font-size:14px;font-weight:500}
.v6-field{display:block;width:100%;height:52px;margin:4px 0 12px}

.payment-result {width:min(100%,540px);border-radius:12px;border:1px solid #cddded}
.payment-result h1 {margin:0 0 12px}
.payment-result p {color:#415773;line-height:1.6}
.payment-result dl {display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 16px;margin:20px 0}
.payment-result dd {overflow-wrap:anywhere}
.result-action {display:inline-block;background:#005ebc;border-radius:6px;color:white;font-weight:600;padding:12px 18px;text-decoration:none}
.result-action:hover {background:#00488d}

.payment-spinner,button[aria-busy="true"]::before{display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:payment-spin .85s linear infinite}
.payment-spinner{width:36px;height:36px;border-width:3px;color:#006fbd;margin-bottom:16px}
button[aria-busy="true"]::before{content:'';width:16px;height:16px;margin-right:9px;vertical-align:-3px}
button[aria-busy="true"]{cursor:progress}
.payment-result.success{--result-color:#147047;--result-bg:#e2f4eb}
.payment-result.failure{--result-color:#ad3035;--result-bg:#fcebed}
.payment-result:is(.success,.failure){border-color:var(--result-color)}
.payment-result:is(.success,.failure) h1{color:var(--result-color)}
.state-mark{display:grid;place-items:center;width:42px;height:42px;margin-bottom:14px;border-radius:50%;background:var(--result-bg);color:var(--result-color);font:600 28px/1 system-ui}
@keyframes payment-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.payment-spinner,button[aria-busy="true"]::before{animation:none}}

.amount-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px}.amount-choices button{width:100%;margin:0;min-height:48px;font-variant-numeric:tabular-nums}

.payment-error:not(:empty){color:#a32d36;border:1px solid #e4afb4;border-radius:6px;background:#fff3f3;padding:9px 12px;margin:10px 0;font-size:14px;line-height:1.5}.payment-error:empty{margin:0;padding:0}
.card-checkout>label{font-size:14px;font-weight:500;margin-top:18px}.card-checkout>input{height:52px}.legacy-field{height:52px;border:1px solid #8c9cb0;border-radius:4px;background:#fff;overflow:hidden}.legacy-field:focus-within{outline:2px solid #005ebc;outline-offset:2px}.legacy-field iframe{display:block;width:100%;height:100%}
.checkout .card-form{padding:0;min-width:0}.card-form label{font-weight:500}.card-form input{height:52px;border-color:#8c9cb0}.card-form input:focus-visible{outline-color:#005ebc}.card-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card-pair>div{min-width:0}.card-form>button{border-radius:4px}.card-restart{display:block;margin-top:16px;font-size:14px}.card-checkout .payment-error:not(:empty){border:1px solid #e4afb4;border-radius:6px}.card-checkout>button{margin-top:18px}.card-checkout>.payment-spinner{width:24px;height:24px;margin:20px 0 0}.card-checkout>p{font-size:14px;color:#47647e}
