:root { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2937; background: #f3f4f6; }
* { box-sizing: border-box; }
body { margin: 0; padding: 32px 20px; }
main { width: 100%; max-width: 860px; margin: auto; }
header, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
header nav { display: flex; flex-wrap: wrap; gap: 16px; }
.cart-nav { font-weight: 600; }
.cart-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #bfdbfe; background: #eff6ff; }
.cart-entry h2 { margin-bottom: 8px; }
.cart-entry p { margin: 0; color: #475569; font-size: 14px; line-height: 1.7; }
.cart-entry .button { flex-shrink: 0; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { margin: 28px 0 12px; font-size: 28px; }
h2 { margin: 0 0 16px; font-size: 18px; }
.section-heading h2 { margin: 0; }
section { margin: 24px 0; padding: 24px; background: white; border: 1px solid #e5e7eb; border-radius: 14px; }
.notice { padding: 12px 16px; background: #eff6ff; border-radius: 8px; color: #1d4ed8; font-size: 14px; }
.billing-rules, summary { line-height: 1.7; }
summary { cursor: pointer; color: #4b5563; }
.muted { color: #6b7280; font-size: 14px; line-height: 1.7; }
#order-message { min-height: 22px; color: #4b5563; overflow-wrap: anywhere; }
#order-message.error { color: #b91c1c; }
#message.error { color: #b91c1c; }
label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; }
#auth-section { max-width: 440px; margin-top: 20px; }
#auth-submit { margin-top: 20px; }
.auth-tabs { display: flex; gap: 8px; }
.auth-tabs button { flex: 1; background: #f3f4f6; color: #4b5563; }
.auth-tabs button[aria-pressed="true"] { background: #2563eb; color: white; }
button, .button { display: inline-block; border: 0; border-radius: 8px; padding: 10px 16px; background: #2563eb; color: white; font: inherit; cursor: pointer; text-align: center; }
button:hover, .button:hover { background: #1d4ed8; text-decoration: none; }
.secondary { background: #f3f4f6; color: #4b5563; }
.secondary:hover { background: #e5e7eb; }
button:disabled { cursor: default; opacity: .6; }
.order-card { padding: 16px 0; border-bottom: 1px solid #e5e7eb; overflow-wrap: anywhere; }
.order-card:last-child { border-bottom: 0; }
.order-heading { font-weight: 600; }
.order-card p { margin: 6px 0; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
a[aria-busy="true"] { opacity: .6; pointer-events: none; }
.payment-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 16px; }
.payment-panel p { flex-basis: 100%; }
.payment-qr { width: 240px; height: 240px; max-width: 100%; background: white; }
:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 480px) { body { padding: 24px 16px; } section { padding: 20px; } .cart-entry { align-items: flex-start; flex-direction: column; } header { align-items: flex-start; flex-wrap: wrap; } }
.cart-page #download-empty { display: none; }
.cart-page #cart-items { margin: 1rem 0; }
.cart-page .order-card label { display: flex; align-items: flex-start; gap: .8rem; }
.cart-page input[type="checkbox"] { width: auto; margin-top: 1rem; flex-shrink: 0; }
.cart-page .order-card a { display: inline-block; margin: .5rem 1rem .5rem 0; }
.cart-page #cart-quote { border: 1px solid #bfdbfe; padding: 1rem; margin: 1rem 0; border-radius: .6rem; }
