/* Order management uses the same quiet, readable surfaces as the shop. */
.orders-page{--order-ink:var(--text);--order-muted:var(--muted);--order-border:var(--line);--order-accent:var(--pink);background:var(--bg);color:var(--order-ink);min-height:65vh}
.orders-wrap{max-width:1180px;padding-top:28px;padding-bottom:72px}
.orders-breadcrumb{display:flex;align-items:center;gap:10px;color:var(--order-muted);font-size:13px;margin-bottom:30px}
.orders-breadcrumb a{color:var(--order-muted)}
.orders-breadcrumb a:hover{color:var(--order-accent)}
.orders-pagehead{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.orders-eyebrow{font-size:12px;font-weight:650;color:var(--order-accent);letter-spacing:.04em;margin:0 0 9px}
.orders-pagehead h1{font-size:36px;line-height:1.18;letter-spacing:-1.1px;margin:0 0 10px;color:var(--order-ink)}
.orders-pagehead p:not(.orders-eyebrow){margin:0;color:var(--order-muted);font-size:14px;line-height:1.65}
.orders-layout{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:28px;align-items:start}
.orders-main,.orders-sidebar{min-width:0}
.orders-account-note{display:flex;align-items:center;gap:14px;border:1px solid var(--pink-line);background:var(--pink-soft);border-radius:12px;padding:18px;margin-bottom:30px}
.orders-note-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;background:var(--card);border-radius:10px;color:var(--order-accent);font-size:19px;font-weight:600}
.orders-account-note b{font-size:14px;display:block;color:var(--order-ink)}
.orders-account-note p{font-size:12px;line-height:1.6;color:var(--order-muted);margin:3px 0 0}
.orders-account-note>a{font-size:12px;font-weight:650;color:var(--order-accent);white-space:nowrap;margin-left:auto;min-height:44px;display:flex;align-items:center;gap:6px}
.orders-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.orders-section-heading h2,.orders-panel h2{font-size:18px;letter-spacing:-.3px;line-height:1.3;margin:0;color:var(--order-ink)}
.orders-icon-button{border:1px solid var(--order-border);background:var(--card);border-radius:8px;min-height:44px;display:flex;align-items:center;gap:7px;padding:0 12px;color:var(--order-muted);font-size:12px;font-weight:550;cursor:pointer}
.orders-icon-button svg{width:16px;height:16px}
.orders-icon-button:disabled{opacity:.55;cursor:wait}
.orders-tools{display:flex;gap:10px}
.orders-search{display:flex;align-items:center;position:relative;flex:1;min-width:0}
.orders-search>svg{position:absolute;left:14px;width:17px;height:17px;color:var(--dim);pointer-events:none}
.orders-page .orders-search input{width:100%;min-height:46px;padding:10px 12px 10px 41px;color:var(--order-ink);background:var(--card);border:1px solid var(--order-border);border-radius:9px;font-size:13px;margin:0}
.orders-page .orders-select select{min-height:46px;border:1px solid var(--order-border);border-radius:9px;background:var(--card);color:var(--order-ink);padding:10px 30px 10px 13px;font:inherit;font-size:13px;width:145px;margin:0}
.orders-page :is(input,select,textarea,button,a):focus-visible{outline:3px solid var(--pink-line);outline-offset:3px}
.orders-result-count{color:var(--order-muted);font-size:12px;min-height:18px;margin:12px 0 20px}
.orders-group-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 12px}
.orders-group-label h3{font-size:13px;font-weight:650;margin:0;color:var(--order-ink)}
.orders-group-label span{font-size:11px;color:var(--order-muted)}
.orders-group-empty{font-size:13px;color:var(--order-muted);margin:0 0 20px;line-height:1.6}
.order-card{background:var(--card);border:1px solid var(--order-border);border-radius:12px;overflow:hidden;margin-bottom:14px;animation:order-appear .25s ease both;transition:border-color .18s,box-shadow .18s}
.order-card:hover{border-color:var(--pink-line);box-shadow:0 4px 18px #19213306}
.order-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid var(--line)}
.order-card-top>div{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.order-number{font-size:13px;font-weight:650;color:var(--order-ink);font-variant-numeric:tabular-nums}
.order-card-top time{font-size:11px;color:var(--order-muted)}
.order-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;line-height:1.3;padding:7px 9px;border-radius:6px;white-space:nowrap;background:var(--bg-2);color:var(--muted)}
.order-badge i{width:5px;height:5px;border-radius:50%;background:currentColor}
.order-badge.active{background:var(--pink-soft);color:var(--pink)}.order-badge.done{background:#e9f5ef;color:#28734e}.order-badge.attention{background:#fff1df;color:#a45e12}
.order-product{display:flex;align-items:center;gap:16px;padding:22px 20px}
.order-product-art{width:64px;height:70px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;background:var(--pink-soft);color:var(--order-accent)}
.order-product-art svg{width:40px;height:40px}
.order-product-info h3{font-size:20px;letter-spacing:-.4px;line-height:1.3;margin:0;color:var(--order-ink);font-variant-numeric:tabular-nums}
.order-product-info h3 span{font-size:15px;font-weight:550;letter-spacing:0}
.order-product-info p{color:var(--order-muted);font-size:12px;line-height:1.5;margin:3px 0 0}
.order-product-info .order-recipient{font-size:11px;margin-top:7px}.order-recipient b{font-weight:550;color:var(--order-ink);overflow-wrap:anywhere}
.order-total{margin-left:auto;text-align:right;flex-shrink:0}
.order-total span{display:block;color:var(--order-muted);font-size:10px;margin-bottom:5px}
.order-total b{font-size:16px;color:var(--order-ink);font-variant-numeric:tabular-nums}
.order-card-bottom{padding:14px 20px;background:var(--card-2);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}
.order-card-bottom>p{font-size:11px;color:var(--order-muted);line-height:1.7;margin:0;max-width:290px}
.order-card-bottom>div{display:flex;align-items:center;gap:12px;flex-shrink:0}
.orders-page .btn{min-height:44px;border-radius:8px;font-size:13px;gap:10px;letter-spacing:0;box-shadow:none;font-weight:600}
.orders-page .btn-p{background:var(--action);border:1px solid var(--action);color:#fff}
.orders-page .btn-p:hover{background:color-mix(in srgb,var(--action) 86%,black);border-color:color-mix(in srgb,var(--action) 86%,black);transform:translateY(-1px)}
.orders-page .btn-2{background:var(--card);border:1px solid var(--line-2);color:var(--order-ink)}
.orders-page .btn-2:hover{background:var(--card-2);border-color:var(--pink-line)}
.order-text-button{padding:8px 0;border:0;min-height:44px;background:transparent;color:var(--order-accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.order-text-button:hover{text-decoration:underline;text-underline-offset:3px}
.order-text-button>svg{width:14px;height:14px;flex-shrink:0}
.orders-panel{padding:23px;background:var(--card);border:1px solid var(--order-border);border-radius:12px;margin-bottom:18px}
.orders-tool-icon{display:grid;place-items:center;background:var(--pink-soft);color:var(--order-accent);width:40px;height:40px;border-radius:10px;margin-bottom:15px}
.orders-tool-icon svg{width:23px;height:23px}
.orders-panel>p{font-size:13px;color:var(--order-muted);line-height:1.7;margin:9px 0 20px}
.orders-panel label{font-size:12px;font-weight:600;color:var(--order-ink);display:block;margin-bottom:8px}
.orders-page .orders-panel input{background:var(--card);border:1px solid var(--line-2);border-radius:8px;color:var(--order-ink);min-height:46px;font-size:13px;padding:12px;width:100%;margin:0}
.orders-page .orders-panel input::placeholder{color:var(--dim)}
.orders-small{font-size:11px;color:var(--order-muted);line-height:1.65;margin:9px 0 16px}
.orders-panel form>.btn{width:100%;justify-content:space-between}
.orders-help a,.orders-saved>a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;border-top:1px solid var(--line);font-size:12px;font-weight:600;color:var(--order-accent)}
.orders-saved dl{margin:0 0 14px}.orders-saved dl>div{margin-bottom:14px}.orders-saved dt{font-size:11px;color:var(--order-muted);margin-bottom:4px}.orders-saved dd{font-size:13px;color:var(--order-ink);margin:0;overflow-wrap:anywhere}.orders-saved>.order-text-button{color:var(--order-muted);font-size:11px}
.orders-message{border:1px solid #edd8bc;border-radius:9px;background:#fff7ec;padding:13px 15px;margin-bottom:18px;color:#845722;display:flex;align-items:center;gap:15px;justify-content:space-between}.orders-message p{font-size:12px;line-height:1.65;margin:0}.orders-message button{flex-shrink:0;color:#845722}
.orders-empty{padding:45px 20px;text-align:center;border:1px solid var(--order-border);border-radius:12px;background:var(--card)}
.orders-empty-art{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:var(--pink-soft);color:var(--pink);margin:0 auto 22px}.orders-empty-art svg{width:42px;height:42px}
.orders-empty h3{font-size:20px;letter-spacing:-.35px;margin:0 0 9px}.orders-empty p{font-size:13px;line-height:1.75;color:var(--order-muted);max-width:350px;margin:0 auto 22px}.orders-empty>.btn{display:inline-flex}
.orders-loading{display:flex;align-items:center;gap:10px;color:var(--order-muted);font-size:13px;background:var(--card);border:1px solid var(--order-border);border-radius:12px;padding:30px}
.orders-lookup-result{border-top:1px solid var(--order-border);margin-top:20px;padding-top:18px}.orders-lookup-result>b{display:block;font-size:13px;margin-bottom:12px}.orders-lookup-result>p{font-size:12px;color:var(--order-muted);line-height:1.7;margin:12px 0}.orders-lookup-result>a{display:inline-flex;gap:8px;align-items:center;min-height:44px;color:var(--order-accent);font-weight:600;font-size:12px}
.orders-lookup-error{font-size:12px;line-height:1.65;color:#a34825;margin:14px 0 0}
.orders-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Individual order */
.order-detail-wrap{max-width:1050px}.order-detail-header{margin-bottom:24px}.order-detail-header h1{font-size:31px}.order-detail-header .order-badge{margin-top:11px}
.order-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.order-detail-panel{padding:26px;background:var(--card);border:1px solid var(--order-border);border-radius:12px;margin-bottom:20px}
.order-detail-panel h2{font-size:18px;color:var(--order-ink);letter-spacing:-.3px;margin:0 0 18px}.order-detail-panel>p{font-size:13px;color:var(--order-muted);line-height:1.7}.order-detail-panel .order-product{padding:0 0 23px}
.order-journey{list-style:none;padding:0;margin:0;counter-reset:step}.order-journey li{position:relative;display:flex;gap:16px;padding-bottom:25px}.order-journey li:last-child{padding-bottom:0}.order-journey li:not(:last-child):before{content:"";position:absolute;left:15px;top:30px;bottom:0;width:2px;background:var(--line)}.order-journey li.complete:not(:last-child):before{background:var(--pink-line)}
.order-step-dot{width:32px;height:32px;flex-shrink:0;border:1px solid var(--line);background:var(--bg-2);border-radius:50%;display:grid;place-items:center;color:var(--dim);font-size:12px;z-index:1}.complete .order-step-dot{color:var(--pink);background:var(--pink-soft);border-color:var(--pink-soft)}.current .order-step-dot{background:var(--action);border-color:var(--action);color:#fff;box-shadow:0 0 0 4px var(--pink-soft)}.order-step-dot svg{width:15px;height:15px}
.order-journey b{display:block;font-size:13px;font-weight:600;line-height:32px;color:var(--muted)}.order-journey .complete b,.order-journey .current b{color:var(--order-ink)}.order-journey p{margin:3px 0 0;font-size:12px;line-height:1.65;color:var(--order-muted)}
.order-refresh-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;border-top:1px solid var(--line);padding-top:12px}.order-refresh-line>span{font-size:11px;color:var(--order-muted)}
.order-details-list{margin:0}.order-details-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:18px;font-size:12px;padding:12px 0;border-bottom:1px solid var(--line)}.order-details-list>div:last-child{border-bottom:0}.order-details-list dt{color:var(--order-muted);flex-shrink:0}.order-details-list dd{margin:0;text-align:right;color:var(--order-ink);overflow-wrap:anywhere;min-width:0}.order-details-list dd a{color:var(--order-accent)}.order-details-list .order-summary-total{font-size:16px;padding-top:18px}.order-summary-total dt,.order-summary-total dd{font-weight:650;color:var(--order-ink)}
.order-detail-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.order-support-link{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--order-accent);font-size:13px;font-weight:600}.order-detail-panel .order-receipt-thumb{display:block;max-width:100%;max-height:180px;object-fit:contain;border:1px solid var(--order-border);border-radius:8px;margin:15px 0}.order-detail-panel .orders-message{display:block}.order-detail-panel .orders-message p+p{margin-top:8px}
.order-retry-form{margin-top:20px}.order-retry-form label{display:block;font-size:12px;font-weight:600;margin-bottom:9px}.order-retry-form input[type=file]{width:100%;min-height:44px;border:1px solid var(--order-border);border-radius:8px;background:var(--card);color:var(--order-ink);padding:10px;font-size:12px}.order-retry-form>.btn{margin-top:13px}.order-inline-error{font-size:12px;line-height:1.65;color:#a34825;margin:9px 0 0}
.order-rating-stars{display:flex;gap:7px;margin-bottom:15px}.order-rating-stars button{height:44px;width:44px;padding:10px;background:var(--card);border:1px solid var(--order-border);border-radius:8px;color:var(--dim);cursor:pointer}.order-rating-stars svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6}.order-rating-stars button.on{color:#aa771c;border-color:#eacb89;background:#fff8e9}.order-rating-stars button.on svg{fill:#e5b04b;stroke:#b78321}.order-rating-form label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.order-rating-form textarea{min-height:95px;width:100%;background:var(--card);border:1px solid var(--order-border);border-radius:8px;padding:12px;color:var(--order-ink);font:inherit;font-size:13px;resize:vertical;margin-bottom:12px}
.orders-page button:disabled{cursor:default;opacity:.6}.orders-page .spin{color:var(--order-accent)}
@keyframes order-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
[data-theme="dark"] .orders-page{--order-ink:var(--text);--order-muted:var(--muted);--order-border:var(--line);--order-accent:var(--pink);background:var(--bg)}
[data-theme="dark"] .orders-page :is(.order-card,.orders-panel,.orders-empty,.orders-loading,.order-detail-panel,.orders-icon-button,.orders-search input,.orders-select select,.orders-panel input,.order-retry-form input[type=file],.order-rating-form textarea,.order-rating-stars button){background:var(--card);border-color:var(--line)}
[data-theme="dark"] .orders-page .orders-account-note{background:var(--pink-soft);border-color:var(--pink-line)}
[data-theme="dark"] .orders-page :is(.orders-note-icon,.orders-tool-icon,.order-product-art,.orders-empty-art){background:var(--pink-soft)}
[data-theme="dark"] .orders-page :is(.order-card-top,.order-card-bottom,.orders-help a,.orders-saved>a,.order-refresh-line,.order-details-list>div){border-color:var(--line)}
[data-theme="dark"] .orders-page .order-card-bottom{background:var(--card-2)}
[data-theme="dark"] .orders-page .btn-2{background:var(--card-2);border-color:var(--line-2)}
[data-theme="dark"] .orders-page .btn-2:hover{background:var(--bg-2)}
[data-theme="dark"] .orders-page .btn-p{background:var(--action);border-color:var(--action)}
[data-theme="dark"] .orders-page .btn-p:hover{background:color-mix(in srgb,var(--action) 86%,black);border-color:color-mix(in srgb,var(--action) 86%,black)}
[data-theme="dark"] .orders-page .order-badge{background:var(--line);color:var(--muted)}
[data-theme="dark"] .orders-page .order-badge.active{background:var(--pink-soft);color:var(--pink)}
[data-theme="dark"] .orders-page .order-badge.done{background:#1c3b30;color:#8bddb9}
[data-theme="dark"] .orders-page .order-badge.attention{background:#443622;color:#eac48a}
[data-theme="dark"] .orders-page .orders-message{background:#332b20;border-color:#68533a;color:#e7bd7c}
[data-theme="dark"] .orders-page .orders-message button{color:#e7bd7c}
[data-theme="dark"] .orders-page :is(.orders-lookup-error,.order-inline-error){color:#ffb3a3}
[data-theme="dark"] .orders-page .order-step-dot{background:var(--card-2);border-color:var(--line-2)}
[data-theme="dark"] .orders-page .order-journey li:before{background:var(--line)}
[data-theme="dark"] .orders-page .complete .order-step-dot{background:var(--pink-soft);border-color:var(--pink-soft);color:var(--pink)}
[data-theme="dark"] .orders-page .current .order-step-dot{background:var(--action);border-color:var(--action);color:#fff;box-shadow:0 0 0 4px var(--pink-soft)}
[data-theme="dark"] .orders-page .order-rating-stars button.on{background:#443622;border-color:#856733;color:#eac48a}
@media(max-width:1000px){.orders-layout{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.orders-account-note{flex-wrap:wrap}.orders-account-note>a{margin-left:50px;min-height:30px}.order-card-bottom{align-items:flex-start;flex-direction:column;gap:10px}.order-card-bottom>p{max-width:none}.order-card-top>div{gap:5px;flex-direction:column;align-items:flex-start}.order-detail-layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}}
@media(max-width:760px){.orders-wrap{padding-top:20px;padding-bottom:48px}.orders-breadcrumb{margin-bottom:23px}.orders-pagehead{margin-bottom:24px;align-items:flex-start}.orders-pagehead h1{font-size:30px}.orders-pagehead>.btn{font-size:11px;padding:0 12px;white-space:nowrap}.orders-eyebrow{font-size:10px}.orders-pagehead p:not(.orders-eyebrow){font-size:13px;max-width:290px}.orders-layout,.order-detail-layout{grid-template-columns:1fr;gap:22px}.orders-account-note{margin-bottom:24px}.orders-account-note>a{margin-left:auto}.orders-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:16px}.orders-sidebar>.orders-panel{margin-bottom:0}.orders-sidebar>#saved{grid-column:1/-1}.orders-sidebar .orders-saved{margin-bottom:0}.order-detail-header>.btn{display:none}.order-detail-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:16px}.order-detail-sidebar .order-detail-panel{margin:0}.order-detail-panel{padding:22px}.order-detail-sidebar .order-detail-panel:first-child{grid-column:1/-1}}
@media(max-width:480px){.orders-pagehead{display:block}.orders-pagehead>.btn{margin-top:18px;font-size:12px}.orders-account-note{gap:11px;padding:15px}.orders-account-note>div{flex:1}.orders-account-note>a{margin-left:47px}.orders-tools{flex-direction:column}.orders-page .orders-select select{width:100%}.orders-result-count{margin-bottom:14px}.orders-group-label{margin-top:18px}.orders-group-label span{font-size:10px}.order-card-top{padding:15px}.order-product{padding:19px 15px;gap:11px}.order-product-art{width:48px;height:59px}.order-product-art svg{width:33px;height:33px}.order-product-info h3{font-size:19px}.order-product-info h3 span{font-size:13px}.order-product-info p{font-size:11px}.order-product-info .order-recipient{font-size:10px}.order-total b{font-size:14px}.order-total span{font-size:9px}.order-card-bottom{padding:13px 15px}.order-card-bottom>div{width:100%;justify-content:space-between}.order-card-bottom .btn{min-width:116px}.orders-sidebar,.order-detail-sidebar{display:block}.orders-sidebar>.orders-panel,.order-detail-sidebar>.order-detail-panel{margin-bottom:16px}.orders-panel{padding:21px}.orders-empty{padding:35px 18px}.orders-empty h3{font-size:18px}.orders-message{display:block}.orders-message button{margin-top:4px}.order-detail-header h1{font-size:28px}.order-detail-panel{padding:20px}.order-details-list>div{gap:13px}.order-refresh-line{align-items:flex-start}.order-refresh-line>span{padding-top:15px}}
@media(prefers-reduced-motion:reduce){.order-card{animation:none;transition:none}.orders-page .btn{transition:none}.orders-page .btn-p:hover{transform:none}}
