:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #183129; background: #f5f7f7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 36px 18px; }
button, textarea { font: inherit; }
button, a { cursor: pointer; }
:is(button, a, textarea):focus-visible { outline: 3px solid #087d35; outline-offset: 3px; }
.receipt { width: min(100%, 540px); margin: 0 auto; background: #fff; border: 1px solid #d7e2dc; border-radius: 24px; box-shadow: 0 16px 45px #1831290b; overflow: hidden; }
.topline { display: flex; align-items: center; gap: 10px; padding: 18px 26px; border-bottom: 1px solid #d7e2dc; font-size: 15px; font-weight: 750; }
.bolt { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #ffce2d; font-size: 21px; line-height: 1; }
.test-tag { margin-left: auto; padding: 5px 9px; border-radius: 6px; background: #fff5c9; font-size: 12px; }
.heading { padding: 28px 28px 0; }
h1 { margin: 0; font-size: clamp(25px, 5vw, 31px); line-height: 1.16; letter-spacing: -.035em; }
.heading p { max-width: 46ch; margin: 13px 0 0; color: #5b6c64; line-height: 1.55; font-size: 15px; }
.payment { margin: 25px 28px 28px; padding: 22px; border: 1px solid #d7e2dc; border-radius: 18px; text-align: center; }
.amount { display: flex; justify-content: center; align-items: baseline; gap: 7px; color: #009b43; }
.amount strong { font-size: 52px; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.amount span { font-size: 20px; font-weight: 700; }
.amount-note { margin: 9px auto 23px; max-width: 39ch; color: #5b6c64; font-size: 14px; line-height: 1.5; }
.primary { width: 100%; min-height: 55px; border: 0; border-radius: 14px; background: #00c853; color: #08371b; font-size: 16px; font-weight: 800; }
.primary:hover { background: #08d660; }
.primary:disabled { opacity: .58; cursor: wait; }
.error { min-height: 1.3em; margin: 11px 0 0; color: #b42318; font-size: 14px; }
.invoice-panel { margin-top: 17px; padding-top: 19px; border-top: 1px dashed #bacdc2; }
.invoice-panel[hidden] { display: none; }
.status-row { display: flex; justify-content: space-between; gap: 12px; color: #8a5b00; font-size: 14px; font-weight: 750; }
.status-row.paid { color: #00873b; }
.qr { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 1; margin: 18px auto; border: 1px solid #e5ece7; border-radius: 14px; }
label { display: block; margin: 12px 0 7px; text-align: left; font-size: 13px; font-weight: 700; }
textarea { width: 100%; padding: 11px; resize: vertical; overflow-wrap: anywhere; border: 1px solid #d7e2dc; border-radius: 10px; background: #f8faf9; color: #2f473a; font-size: 12px; line-height: 1.45; }
.actions { display: flex; gap: 10px; margin-top: 11px; }
.actions > * { display: grid; place-items: center; flex: 1; min-height: 43px; padding: 8px; border: 1px solid #9fcdb0; border-radius: 10px; background: #f0fbf4; color: #087537; text-decoration: none; font-size: 13px; font-weight: 750; }
footer { padding: 17px 28px 21px; border-top: 1px solid #d7e2dc; color: #6a786f; font-size: 12px; line-height: 1.5; }
@media (max-width: 540px) { body { padding: 0; background: #fff; } .receipt { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; } .heading { padding: 25px 20px 0; } .payment { margin: 23px 20px; padding: 17px; } .topline, footer { padding-left: 20px; padding-right: 20px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
