@font-face { font-family: Bureau; src: url('/assets/georgia.ttf') format('truetype'); font-display: swap; }
:root { color-scheme: light; --paper: #f5f0e5; --card: #fffdf8; --ink: #19382f; --muted: #4a6057; --rule: #bac9bf; --red: #9f3439; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
.wrap { margin-inline: auto; width: min(940px, calc(100% - 36px)); }
.bar { background: #19382f; color: #fff6db; }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; }
.bar a { color: inherit; display: inline-flex; min-height: 44px; align-items: center; font-size: .9rem; }
.bar a:last-child { font: 1.15rem/1.1 Bureau, Georgia, serif; text-decoration: none; text-align: right; }
main.wrap { padding-block: 36px 48px; }
h1, h2 { font: 400 clamp(1.75rem, 3.8vw, 2.85rem)/1.13 Bureau, Georgia, serif; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.columns { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 20px; margin-top: 21px; }
.summary, .buyer { border-radius: 12px; padding: clamp(17px, 3vw, 28px); }
.summary { background: #19382f; color: #fff7e6; }
.buyer { background: var(--card); border: 1px solid #d5dacd; box-shadow: 0 10px 24px #26382c0d; }
.product { font-weight: 650; margin: 0 0 18px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-block: 1px solid #5b7767; padding-block: 10px; }
.total strong { font: 400 1.9rem/1.1 Bureau, Georgia, serif; color: #f6d79a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary details { margin-top: 11px; }
.summary ul { padding-inline-start: 20px; margin: 3px 0 10px; font-size: .9rem; }
.summaryHint { margin: 10px 0 0; color: #e6ecdc; font-size: .91rem; }
fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
.field { display: grid; gap: 4px; font-size: .9rem; font-weight: 660; margin-bottom: 12px; }
.field input { display: block; width: 100%; min-height: 45px; border: 1px solid #8da296; border-radius: 7px; background: #fff; padding: 9px 11px; color: var(--ink); font: 1rem system-ui, sans-serif; caret-color: var(--red); }
.field input::placeholder { color: #53675e; }
.field input[readonly] { background: #edf2eb; }
.hint, footer { font-size: .86rem; color: var(--muted); }
.hint { margin: -5px 0 8px; }
summary, .textButton { cursor: pointer; min-height: 44px; padding-block: 10px; }
summary { font-size: .9rem; font-weight: 620; }
.promo { border-block: 1px solid #d5ded2; margin-block: 13px 15px; }
.promo .field { margin-bottom: 0; }
.agreements { display: grid; gap: 10px; margin-bottom: 16px; }
.agreements label { display: flex; align-items: start; gap: 8px; font-size: .88rem; cursor: pointer; }
.agreements input { flex: 0 0 auto; width: 19px; height: 19px; accent-color: #21604a; margin: 2px 0 0; }
a { color: #235a48; text-underline-offset: .2em; }
.textButton { background: transparent; border: 0; color: #235a48; text-decoration: underline; text-underline-offset: .2em; font: 600 .86rem system-ui; margin-right: 10px; padding-inline: 0; }
.code { border-block: 1px solid var(--rule); padding: 12px 0 0; margin-bottom: 14px; }
.code .field { margin-bottom: 0; }
.primary { min-height: 46px; width: 100%; background: var(--red); border: 0; border-radius: 7px; font: 650 1rem system-ui; color: white; cursor: pointer; padding: 10px; }
.primary:hover { background: #82262a; }
button:disabled { opacity: .63; cursor: default; }
.status { font-size: .9rem; margin-block: 10px; }
.status:empty { display: none; }
.error { color: #952b33; }
footer { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #d5ded2; }
:focus-visible { outline: 2px solid #aa473f; outline-offset: 3px; }
.bar a:focus-visible, .summary summary:focus-visible { outline-color: #f6d79a; }
::selection { background: #f0d7a3; color: var(--ink); }
@media (max-width: 670px) {
  .columns { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 14px; }
  .wrap { width: calc(100% - 24px); }
  main.wrap { padding-block: 20px 34px; }
}
