/* Short checkout (1.23.0): phone + code, name and address, straight to the gateway. Mobile first. */
@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --ink: #2a2119; --muted: #7b6d5f; --line: #e6dccd; --paper: #fbf8f3; --card: #fff; --brown: #1b140f; --gold: #b58745; --ok: #2f7d5b; --bad: #b23a2e; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Vazirmatn, Tahoma, sans-serif; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.8; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--brown); color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.brand b { font: 700 22px/1 Georgia, serif; letter-spacing: .14em; }
.back { color: #e7c98f; font-size: 14px; text-decoration: none; }
.wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 16px; }
.cart-box, .step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.cart-box h2 { margin: 0 0 8px; font-size: 16px; }
.cart-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cart-box li { display: flex; align-items: center; gap: 10px; }
.cart-box li img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #f1ebe2; }
.cart-box li span { flex: 1; min-width: 0; font-size: 14px; }
.cart-box li b { font-size: 14px; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.total strong { font-size: 20px; }
.note, .muted { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.step h1 { margin: 0; font-size: 22px; }
.step-no { margin: 0; color: var(--gold); font-weight: 700; font-size: 13px; }
form { display: grid; gap: 12px; margin-top: 14px; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
input, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }
input:focus, select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
#mobile, #code { direction: ltr; text-align: center; font-size: 20px; letter-spacing: .08em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.short { max-width: 50%; }
.primary { display: block; width: 100%; padding: 14px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #d6a961, #a87a3a); color: var(--brown); font-weight: 900; font-size: 17px; text-align: center; text-decoration: none; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: default; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; display: block; text-align: center; margin-top: 10px; }
.terms { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.terms a { color: var(--gold); }
.message { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--ok); }
.message.error { color: var(--bad); }
.result { text-align: center; }
.result .icon { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #fff; background: var(--ok); }
.result.failed .icon { background: var(--bad); }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 16px 0; padding: 14px; border-radius: 12px; background: #f6f1e9; text-align: right; }
.result dt { color: var(--muted); font-size: 14px; }
/* Each value keeps its own direction: codes read left-to-right, «۱٬۲۹۰٬۰۰۰ تومان» right-to-left. */
.result dd { margin: 0; font-weight: 800; unicode-bidi: plaintext; text-align: left; white-space: nowrap; font-size: 15px; }
.result .button { margin-top: 6px; }
@media (max-width: 380px) { .row { grid-template-columns: 1fr; } .short { max-width: none; } }
