/* Read-only account orders, including narrow mobile screens. */
#drawer:has(.orderhistory),#drawer:has(.orderdetail){width:min(100%,820px);max-width:100vw}
.orderhistory,.orderdetail{min-width:0;color:var(--ink,#302b34)}
.orderhistory{display:grid;gap:16px}
.orderhistorycard{border:1px solid var(--line,#e5dce6);border-radius:16px;padding:20px;background:#fff;min-width:0}
.orderhistoryheading{display:flex;justify-content:space-between;align-items:start;gap:14px;flex-wrap:wrap}
.orderhistoryheading small{font-size:12px;color:var(--muted,#7d7482)}
.orderhistoryheading h3{margin:5px 0 12px;font-size:20px}
.orderhistoryheading strong{font-size:18px;overflow-wrap:anywhere}
.orderdelivery{font-size:13px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;margin:0 0 14px}
.orderhistorycard .btn{margin-top:4px}
.orderinformation{padding:20px;background:#f8f4f8;border-radius:14px;margin:20px 0 26px}
.orderinformation h3{margin:0 0 12px;font-size:16px}
.orderinformation p{white-space:pre-line;line-height:1.7;font-size:14px;overflow-wrap:anywhere;margin:0}
.orderdetail>h3{font-size:18px;margin:18px 0}
.orderitems{display:grid;gap:14px}
.orderitem{display:grid;grid-template-columns:74px minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid var(--line,#e5dce6);min-width:0}
.orderitem>img,.orderimageempty{width:74px;height:74px;object-fit:contain;border-radius:9px;background:#fff}
.orderitem h4{font-size:14px;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}
.orderitem p{font-size:12px;line-height:1.5;color:var(--muted,#7d7482);margin:0 0 10px;overflow-wrap:anywhere}
#readContent .orderitem dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 0}
#readContent .orderitem dt{font-size:11px;color:var(--muted,#7d7482);margin:0;font-weight:400}
#readContent .orderitem dd{font-size:13px;margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}
#readContent .ordertotals{background:#f8f4f8;border-radius:14px;padding:20px;margin:24px 0}
.ordertotals>div{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:7px 0}
#readContent .ordertotals dt,#readContent .ordertotals dd{margin:0;font-size:14px;overflow-wrap:anywhere}
.ordertotals>div:last-child{border-top:1px solid var(--line,#e5dce6);margin-top:10px;padding-top:16px}
#readContent .ordertotals>div:last-child dt,#readContent .ordertotals>div:last-child dd{font-size:20px;font-weight:800}
@media(max-width:520px){.orderhistorycard{padding:16px}.orderitem{grid-template-columns:52px minmax(0,1fr);gap:10px}.orderitem>img,.orderimageempty{width:52px;height:60px}.orderinformation{padding:16px}#readContent .ordertotals{padding:16px}.orderhistoryheading h3{font-size:18px}}
