.orders-page{background:#f4f6fa;min-height:72vh;padding:38px 24px 100px;color:#192f51}
.orders-container{max-width:1040px;margin:auto}
.orders-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.orders-heading h1{font:800 clamp(30px,5vw,42px)/1.2 Manrope,Arial,sans-serif;letter-spacing:-1px;margin:0}
.orders-heading p{color:#63738a;font-size:16px;margin:10px 0 0;line-height:1.6}
.orders-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 20px;border:1px solid #163a84;border-radius:9px;background:#163a84;color:#fff;font-size:14px;font-weight:700;line-height:1.5;cursor:pointer;text-decoration:none}
.orders-button.secondary{background:#fff;color:#163a84;border-color:#d2dceb}
.orders-button:disabled{opacity:.65;cursor:wait}
.orders-account{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#eaf0fa;border:1px solid #dce5f2;border-radius:12px;padding:18px 20px}
.orders-account p{font-size:14px;line-height:1.7;color:#435b7c;margin:0;max-width:690px;overflow-wrap:anywhere}
.orders-account a{flex:none;color:#163a84;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:4px;line-height:1.6}
#orders-status,#link-order-status{font-size:14px;line-height:1.7;color:#63738a;margin:18px 0;overflow-wrap:anywhere}
#orders-status.error,#link-order-status.error{color:#a03333}
.customer-orders{display:grid;gap:20px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.customer-order{background:#fff;border:1px solid #e0e6ee;border-radius:16px;padding:24px;min-width:0}
.customer-order-head{display:flex;justify-content:space-between;align-items:start;gap:14px;flex-wrap:wrap;border-bottom:1px solid #e8edf4;padding-bottom:17px}
.customer-order h2{font-size:17px;color:#163a84;line-height:1.5;margin:0;overflow-wrap:anywhere;letter-spacing:0}
.customer-order time{display:block;color:#63738a;font-size:14px;line-height:1.6;margin-top:5px}
.order-state{display:inline-block;background:#e9effa;color:#163a84;padding:7px 11px;border-radius:30px;font-size:14px;font-weight:700;line-height:1.5}
.order-state.delivered{color:#286449;background:#eaf4ed}.order-state.exception{color:#9f472d;background:#fff0ea}
.history-items{list-style:none;margin:0;padding:0}
.history-item{display:flex;gap:14px;margin:20px 0;min-width:0}
.history-image{width:64px;height:80px;flex:none;object-fit:cover;border-radius:8px;background:#f0f3f8}
.history-placeholder{object-fit:contain;padding:10px}
.history-item div{min-width:0}.history-item h3{font-size:16px;line-height:1.5;color:#293d5c;margin:0 0 7px;overflow-wrap:anywhere}
.history-item p{font-size:14px;line-height:1.6;color:#63738a;margin:4px 0;overflow-wrap:anywhere}
.history-item .history-item-price{color:#293d5c;font-weight:600}
.history-summary{border-top:1px solid #e8edf4;padding-top:16px;margin:0}
.history-summary div{display:flex;justify-content:space-between;gap:16px;font-size:14px;line-height:1.6;margin:0 0 10px}
.history-summary dt{color:#63738a}.history-summary dd{margin:0;text-align:right;color:#293d5c;overflow-wrap:anywhere}
.history-summary .history-total dd{font-size:20px;font-weight:800;color:#163a84}
.history-track{display:flex;margin-top:18px}
.orders-empty{background:#fff;padding:40px 24px;border:1px solid #e0e6ee;border-radius:16px;text-align:center}
.orders-empty h2{font-size:24px;margin:0 0 12px}.orders-empty p{font-size:16px;line-height:1.7;color:#63738a;max-width:500px;margin:0 auto 24px}
.orders-page [hidden]{display:none!important}
#more-orders{display:flex;margin:24px auto 0}
.earlier-orders{margin-top:30px;background:#fff;border:1px solid #e0e6ee;border-radius:12px;padding:20px}
.earlier-orders summary{font-size:16px;font-weight:700;cursor:pointer;line-height:1.6}
.earlier-orders>p{font-size:14px;color:#63738a;line-height:1.7}
#link-order-form{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:16px;align-items:end}
#link-order-form>div{min-width:0}#link-order-form label{display:block;font-size:14px;font-weight:700;margin-bottom:8px}
#link-order-form input{display:block;width:100%;min-width:0;min-height:48px;padding:12px;border:1px solid #d2dceb;border-radius:8px;background:#fafbfe;color:#192f51;font:inherit;font-size:16px}
.orders-page :is(a,button,input,summary):focus-visible{outline:2px solid #426dc0;outline-offset:4px}
@media(max-width:760px){.orders-page{padding:26px 16px 100px}.customer-orders{grid-template-columns:minmax(0,1fr)}.customer-order{padding:20px}.orders-account{align-items:start;flex-direction:column;gap:12px}#link-order-form{grid-template-columns:minmax(0,1fr)}.orders-heading{align-items:start;gap:12px}.orders-heading .orders-button{padding:10px 14px}.history-summary div{flex-wrap:wrap}.history-summary dd{margin-left:auto}}

/* My Orders footer appearance. */
body footer.my-orders-footer{background:transparent;color:#000}
body footer.my-orders-footer .footer-bottom,body footer.my-orders-footer span,body footer.my-orders-footer a{color:#000}
body footer.my-orders-footer a:focus-visible{outline-color:#000}
