html { scroll-padding-bottom: calc(105px + env(safe-area-inset-bottom)); }
.orders-shell { background: #faf9fb; }
.orders-header { padding: 13px 15px 15px; background: linear-gradient(110deg, #69008d, #300b82); }
.orders-header .logo strong { color: white; }
.orders-back svg { transform: rotate(180deg); }
.orders-main { max-width: 680px; margin: auto; padding: 19px 14px 40px; }
.orders-main :is(button, a) { scroll-margin-bottom: calc(105px + env(safe-area-inset-bottom)); }
.orders-main h1 { margin: 0; color: #350050; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; letter-spacing: -.5px; }
.orders-main h2 { margin: 19px 0 8px; color: #350050; font-size: 18px; }
.orders-note, .filter-note, .action-note { color: #706976; font-size: 12px; line-height: 1.45; }
.orders-note { margin: 7px 0 16px; }
.filter-note { margin: 9px 0 13px; }
.order-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.order-filters button { min-width: 0; min-height: 39px; padding: 6px 3px; border: 1px solid #e8e1eb; border-radius: 9px; color: #392044; background: #fff; font-size: clamp(10px, 2.8vw, 13px); font-weight: 700; }
.order-filters button[aria-pressed="true"] { border-color: #7300a4; color: #fff; background: #7300a4; }
.orders-list { display: grid; gap: 10px; }
.order-card-link, .order-heading-card, .products-card, .info-card, .link-card, .order-timeline { border: 1px solid #e7e1e9; border-radius: 13px; background: #fff; box-shadow: 0 2px 6px #26002c0c; }
.order-card-link { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; }
.order-card-link > .orders-icon { flex: none; width: 20px; height: 20px; margin-left: auto; color: #3b1850; }
.order-card-text { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; }
.order-card-text strong, .order-heading-card strong { color: #281032; font-size: 14px; overflow-wrap: anywhere; }
.order-card-text > span:not(.order-status), .order-card-text small, .order-heading-card small { color: #625a67; font-size: 12px; line-height: 1.3; }
.order-image { flex: none; width: 66px; height: 66px; border-radius: 8px; background: #f8f6f9; object-fit: contain; }
.image-placeholder { display: grid; place-items: center; color: #ac9bb3; }
.orders-icon { flex: none; width: 23px; height: 23px; color: #8600a9; }
.order-status { display: inline-block; padding: 5px 9px; border-radius: 20px; color: #7100a1; background: #f1e2fa; font-size: 11px; font-weight: 700; line-height: 1.2; }
.order-status.received { color: #24783b; background: #e7f7e9; }
.orders-empty { padding: 22px 16px; border: 1px solid #ebe4ee; border-radius: 13px; background: #fff; color: #4a3e50; font-size: 14px; line-height: 1.4; }
.orders-empty p { color: #756d79; font-size: 13px; }
.orders-empty a { color: #7100a8; font-weight: 700; }
.order-heading-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px; }
.order-heading-card > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.order-heading-card .order-status { flex: none; }
.products-card { padding: 3px 12px; }
.product-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.product-row + .product-row { border-top: 1px solid #eee9ef; }
.product-row .order-image { width: 56px; height: 56px; }
.product-row > div { display: grid; min-width: 0; gap: 5px; font-size: 13px; }
.product-row strong { overflow-wrap: anywhere; }
.product-row span { color: #625a67; }
.legacy-note { color: #706976; font-size: 13px; line-height: 1.4; }
.price-summary { margin: 14px 0; }
.price-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 2px; font-size: 13px; }
.price-summary dt, .price-summary dd { margin: 0; }
.price-summary dd { text-align: right; }
.price-summary .total { margin-top: 5px; padding: 10px; border-radius: 8px; color: #4d006f; background: #f4edf9; font-size: 16px; font-weight: 800; }
.price-summary .total dd { color: #ed4e00; }
.link-card { display: flex; align-items: center; gap: 10px; margin: 9px 0; padding: 12px; }
.link-card > div { display: grid; flex: 1; min-width: 0; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.link-card > div span { color: #706976; font-size: 12px; }
.link-card button, .link-card > a { flex: none; max-width: 115px; padding: 5px 0; border: 0; color: #7100a8; background: transparent; font-size: 12px; font-weight: 700; text-align: right; }
.order-timeline { margin: 0; padding: 10px 12px; list-style: none; }
.order-timeline li { position: relative; display: flex; gap: 12px; min-height: 58px; padding: 7px 0; }
.order-timeline li:not(:last-child)::after { position: absolute; top: 31px; bottom: -7px; left: 12px; width: 2px; background: #ddd4e2; content: ''; }
.timeline-dot { z-index: 1; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 2px solid #cfc5d5; border-radius: 50%; color: #fff; background: #fff; font-size: 15px; font-weight: 700; }
.done .timeline-dot { border-color: #7900a9; background: #7900a9; }
.order-timeline li > div { display: grid; align-content: start; gap: 4px; padding-top: 2px; font-size: 13px; }
.order-timeline small { color: #77707c; font-size: 12px; }
.info-card { padding: 0 12px; }
.info-card > div { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.info-card > div + div { border-top: 1px solid #eee9ef; }
.info-card p { display: grid; flex: 1; min-width: 0; gap: 5px; margin: 0; font-size: 13px; }
.info-card p span { color: #706976; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.copy-button { padding: 5px 8px; border: 1px solid #d5ced8; border-radius: 8px; color: #888; background: #f7f6f7; font-size: 12px; }
.order-action, .secondary-action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 49px; margin-top: 15px; padding: 11px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(#ff9900, #fa5500); font-size: 14px; font-weight: 800; text-align: center; }
.order-action:disabled { opacity: .6; cursor: not-allowed; }
.secondary-action { margin-top: 8px; border: 1px solid #d6c9dd; color: #7100a8; background: #fff; }
.action-note { margin: 7px 0; text-align: center; }
@media (max-width: 340px) { .orders-main { padding-right: 10px; padding-left: 10px; } .order-card-link { gap: 8px; padding: 10px; } .order-image { width: 56px; height: 56px; } .link-card { gap: 7px; } }
