/* Order confirmation and "My orders" pages. Builds on policy.css (header, footer, colors). */
.orders { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.orders h1 { font-family: 'Archivo Black', 'Inter', sans-serif; font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.15; margin: 0 0 0.5rem; text-transform: uppercase; color: #f4f1ea; }
.orders h2 { font-size: 1.05rem; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1px; margin: 2rem 0 0.75rem; }
.orders p { color: var(--text-muted); margin: 0 0 1rem; }
.orders a { color: var(--accent-gold); }
.hero { text-align: center; padding: 0.5rem 0 1.5rem; }
.hero .check { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(46, 213, 115, 0.14); border: 2px solid #2ed573; display: flex; align-items: center; justify-content: center; }
.hero .check svg { width: 32px; height: 32px; stroke: #2ed573; }
.hero.pending .check { background: rgba(197, 160, 89, 0.14); border-color: var(--accent-gold); }
.hero.pending .check svg { stroke: var(--accent-gold); }
.order-number { display: inline-block; margin: 0.25rem 0 0.75rem; padding: 0.35rem 0.9rem; border: 1px dashed var(--accent-gold); border-radius: 999px; color: var(--text-color); font-weight: 700; letter-spacing: 1px; }
.card { background: var(--surface-color); border: 1px solid rgba(69, 162, 158, 0.3); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.line-items { list-style: none; margin: 0; padding: 0; }
.line-item { display: flex; gap: 0.9rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.line-item:last-child { border-bottom: 0; }
.line-item img, .line-item .thumb-fallback { width: 56px; height: 78px; flex-shrink: 0; border-radius: 4px; object-fit: cover; background: #111; }
.line-item .info { flex: 1; min-width: 0; }
.line-item .name { color: var(--text-color); font-weight: 700; overflow-wrap: anywhere; }
.line-item .detail { color: var(--text-muted); font-size: 0.85rem; }
.line-item .price { color: var(--text-color); font-weight: 600; white-space: nowrap; }
.totals { margin-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 0.6rem; }
.totals div { display: flex; justify-content: space-between; color: var(--text-muted); padding: 0.15rem 0; }
.totals .grand { color: var(--text-color); font-weight: 700; font-size: 1.1rem; padding-top: 0.4rem; }
.totals .free span:last-child { color: #2ed573; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1rem 2.4rem; color: var(--text-muted); font-size: 0.95rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface-color); border: 1px solid var(--accent-gold); color: var(--accent-gold); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.steps strong { color: var(--text-color); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.5rem 0 0; }
.btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 8px; border: 1px solid var(--accent-gold); background: transparent; color: var(--accent-gold); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: rgba(197, 160, 89, 0.12); }
.orders a.btn.primary, .btn.primary { background: var(--accent-gold); color: #0b0c10; }
.btn.primary:hover { background: #d7b46c; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.notice-box { background: rgba(197, 160, 89, 0.07); border-left: 3px solid var(--accent-gold); padding: 0.8rem 1rem; margin: 0 0 1rem; color: var(--text-color); }
.notice-box.error { border-left-color: #ff4757; background: rgba(255, 71, 87, 0.08); }
.muted-small { font-size: 0.85rem; color: var(--text-muted); }
/* My orders */
.signin-box { text-align: center; padding: 1.5rem 1rem; }
.signin-box .g-wrap { display: flex; justify-content: center; margin: 1rem 0; min-height: 44px; }
.signin-box form { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.signin-box input[type=email] { padding: 0.65rem 0.8rem; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); font: inherit; min-width: 240px; }
.account-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.account-bar .who { color: var(--text-muted); overflow-wrap: anywhere; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: baseline; margin-bottom: 0.5rem; }
.order-head .num { color: var(--text-color); font-weight: 700; letter-spacing: 0.5px; }
.order-head .when { color: var(--text-muted); font-size: 0.85rem; }
.badge { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--border-color); color: var(--border-color); }
.badge.shipped { border-color: #2ed573; color: #2ed573; }
.badge.printing { border-color: var(--accent-gold); color: var(--accent-gold); }
.badge.attention, .badge.canceled { border-color: #ff4757; color: #ff6b81; }
.order-extra { margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.order-extra strong { color: var(--text-color); }
.order-extra a { margin-right: 1rem; }
@media (max-width: 520px) { .line-item .price { align-self: flex-start; } }
.header-nav { margin-top: 0.35rem; font-size: 0.85rem; }
.header-nav a { color: var(--accent-gold); text-decoration: none; }
.header-nav a:hover { text-decoration: underline; }
.badge.refunded { border-color: #7aa7ff; color: #9bbcff; }
.card.is-void .line-items, .card.is-void .totals { opacity: 0.6; }
.totals .refund span:last-child { color: #9bbcff; }
