.account-section {
    padding: 48px 0;
}

.account-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    background: #fff;
    margin-bottom: 1.5rem;
}

.account-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.order-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.order-card-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.order-items-table th {
    font-size: 0.85rem;
    font-weight: 600;
}

.account-danger {
    border-color: #f5c2c7;
    background: #fff5f5;
}

/* order status colours + details/download buttons */
.order-status { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #e9ecef; color: #495057; }
.order-status--pending { background: #fff3cd; color: #8a6100; }
.order-status--paid { background: #d1e7dd; color: #0f5132; }
.order-status--shipped { background: #cfe2ff; color: #084298; }
.order-status--cancelled { background: #f8d7da; color: #842029; }
.order-actions { display: inline-flex; gap: .4rem; flex-basis: 100%; }
.order-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border: 1px solid #d9d0bc; border-radius: 999px; background: #fff; color: #00346e; font-size: .8rem; cursor: pointer; transition: background .2s ease, color .2s ease; }
.order-btn:hover, .order-btn:focus-visible, .order-btn.is-open { background: #00346e; color: #fff; border-color: #00346e; }
.order-body[hidden] { display: none; }

/* ---------- receipt printer modal ---------- */
body.rcpt-open { overflow: hidden; }
.rcpt-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; background: radial-gradient(circle at 50% 20%, rgba(244, 246, 250, .97), rgba(220, 226, 236, .97)); animation: rcpt-fade .3s ease; }
@keyframes rcpt-fade { from { opacity: 0; } to { opacity: 1; } }
.rcpt-stage { width: 340px; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.rcpt-printer { position: relative; z-index: 3; width: 100%; height: 46px; border-radius: 14px; background: linear-gradient(#fff, #eef1f6); box-shadow: 0 10px 24px -8px rgba(40, 55, 90, .35), inset 0 -3px 0 rgba(0, 0, 0, .05); }
.rcpt-slot { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 7px; border-radius: 4px; background: #00346e; }
.rcpt-led { position: absolute; top: 12px; inset-inline-end: 16px; width: 8px; height: 8px; border-radius: 50%; background: #9aa3b2; transition: background .2s ease, box-shadow .2s ease; }
.rcpt-printer.is-busy .rcpt-led { background: #518601; box-shadow: 0 0 8px #518601; animation: rcpt-blink .35s steps(2) infinite; }
.rcpt-printer.is-busy { animation: rcpt-shake .12s linear infinite; }
@keyframes rcpt-blink { 50% { opacity: .25; } }
@keyframes rcpt-shake { 0% { transform: translateY(0); } 50% { transform: translateY(.6px); } 100% { transform: translateY(0); } }

.rcpt-window { width: 292px; max-width: 92%; margin-top: -14px; padding-bottom: 20px; overflow: hidden; position: relative; z-index: 2; }
.rcpt-paper { position: relative; width: 100%; padding: 22px 18px 26px; background: #ffffff; color: #00346e; font-family: "Courier New", "Cairo", monospace; font-size: 12.5px; line-height: 1.6; box-shadow: 0 8px 22px -10px rgba(0, 40, 90, .4); transform: translateY(-105%); }
.rcpt-paper.is-printing { animation: rcpt-print 3s steps(46, end) forwards; }
@keyframes rcpt-print { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.rcpt-paper.is-torn { animation: rcpt-tear .9s cubic-bezier(.5, 0, .75, 0) forwards; transform-origin: 100% 100%; }
@keyframes rcpt-tear { 0% { transform: translateY(0) rotate(0); opacity: 1; } 35% { transform: translateY(6px) rotate(-3deg); } 100% { transform: translateY(60vh) rotate(8deg); opacity: 0; } }
.rcpt-paper.is-static { transform: none; animation: none; box-shadow: none; }
.rcpt-capture { position: fixed; left: -9999px; top: 0; width: 292px; }
.rcpt-brand { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.rcpt-sub { text-align: center; font-size: 11px; color: #5a6b82; letter-spacing: .2em; text-transform: uppercase; }
.rcpt-title { text-align: center; font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.rcpt-dash { margin: 8px 0; border-top: 1.5px dashed #d9d0bc; height: 0; }
.rcpt-row { display: flex; justify-content: space-between; gap: 10px; }
.rcpt-row span:last-child { font-weight: 700; text-align: end; }
.rcpt-addr { color: #00346e; font-size: 11.5px; margin-top: 2px; }
.rcpt-head { font-size: 10.5px; letter-spacing: .08em; color: #5a6b82; text-transform: uppercase; }
.rcpt-item { display: flex; gap: 8px; align-items: baseline; margin: 3px 0; }
.rcpt-qty { flex: none; font-weight: 700; }
.rcpt-name { flex: 1; min-width: 0; }
.rcpt-amt { flex: none; font-weight: 700; }
.rcpt-total { font-size: 15px; }
.rcpt-thanks { text-align: center; margin: 6px 0 8px; }
.rcpt-bar { display: flex; justify-content: center; }
.rcpt-code { text-align: center; font-size: 10.5px; letter-spacing: .25em; color: #5a6b82; margin-top: 2px; }
.rcpt-zig { position: absolute; left: 0; bottom: -9px; display: block; width: 100%; height: 10px; }
.rcpt-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; padding: 8px 10px; border-radius: 999px; background: #fff; box-shadow: 0 10px 26px -10px rgba(40, 55, 90, .4); position: relative; z-index: 4; }
.rcpt-btn { padding: 8px 16px; border: 0; border-radius: 999px; background: #eef1f6; color: #00346e; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease, transform .15s ease; }
.rcpt-btn:hover { background: #dde3ee; }
.rcpt-btn:active { transform: scale(.96); }
.rcpt-btn--primary { background: #00346e; color: #fff; }
.rcpt-btn--primary:hover { background: #3b4252; }
.rcpt-btn:disabled { opacity: .6; cursor: progress; }
