/* Order history: readable product rows on dark account surfaces. */
.orders-main { max-width:1240px; min-height:calc(100vh - 80px); }
.orders-heading { margin:18px 0 20px; }
.orders-heading h1 { margin:0 0 6px; font-size:28px; font-weight:900; }
.orders-heading p { color:var(--text-muted); font-size:14px; line-height:1.9; margin:0; }
.orders-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px; border:1px solid var(--border-color); border-radius:14px; background:var(--bg-card); box-shadow:none; }
.orders-search { display:flex; align-items:center; gap:10px; flex:1 1 260px; min-width:0; padding:0 14px; border:1px solid var(--border-color); border-radius:12px; background:#121218; }
.orders-search svg { width:20px; height:20px; color:#ff8692; }
.orders-search input { min-width:0; width:100%; min-height:46px; border:0; outline:0; background:transparent; color:var(--text-main); font:600 14px var(--font-family); }
.orders-search:focus-within { border-color:#ff7180; }
.orders-filter-trigger { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:10px 16px; border:1px solid var(--border-color); border-radius:12px; background:#282834; color:var(--text-main); font:700 13px var(--font-family); }
.orders-filter-trigger svg { width:18px; height:18px; color:#ff8692; }
#ordersFilterCount { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--primary-red); color:white; font-size:11px; }
.orders-inline-filters { display:flex; flex-wrap:wrap; gap:14px; width:100%; padding-top:4px; }
.orders-inline-filter { display:flex; flex:1; flex-direction:column; gap:7px; min-width:150px; }
.orders-inline-filter > span { font-size:12px; font-weight:700; color:var(--text-muted); }
.orders-inline-filter select { width:100%; min-height:44px; padding:8px 12px; border:1px solid var(--border-color); border-radius:10px; background:#121218; color:var(--text-main); font:600 13px var(--font-family); cursor:pointer; }
.orders-applied { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0; font-size:13px; line-height:1.8; color:var(--text-muted); }
.orders-applied button { flex-shrink:0; min-height:44px; color:#ff8692; font:700 12px var(--font-family); }
.orders-results-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:22px; scroll-margin-top:20px; }
.orders-results-heading h2 { margin:0; font-size:15px; font-weight:800; }
#ordersResultCount { color:var(--text-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.orders-search-scope { margin:8px 0 0; color:var(--text-muted); font-size:12px; line-height:1.8; }
.orders-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; align-items:start; margin:14px 0 20px; }
.order-card { display:grid; grid-template-columns:38px minmax(0,1fr); align-items:start; align-self:start; gap:8px; min-width:0; padding:12px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-card); color:var(--text-main); }
.order-card > img { grid-column:1; grid-row:1; width:38px; height:42px; object-fit:cover; object-position:center; padding:0; border:0; border-radius:8px; background:transparent; }
.order-info { grid-column:2; grid-row:1; min-width:0; text-align:start; }
.order-card-top { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 8px; }
.order-number { font-size:12px; font-weight:700; color:var(--text-muted); }
.order-amount { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px; margin:0; color:#ff9ba7; font-size:13px; font-weight:800; font-variant-numeric:tabular-nums; }
.order-currency { font-size:10px; font-weight:600; }
.order-info h2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:4px 0 6px; color:var(--text-main); font-size:14px; font-weight:700; line-height:1.6; overflow-wrap:anywhere; }
.order-card-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.order-status-outcome { display:inline-flex; align-items:center; gap:7px; max-width:100%; min-width:0; }
.order-status-description { font-size:12px; font-weight:700; line-height:1.8; overflow-wrap:anywhere; }
.outcome-completed { color:#92dfb5; }
.outcome-refunded { color:#93c5fd; }
.order-status { display:inline-flex; align-items:center; min-height:28px; padding:3px 10px; border-radius:7px; background:#3b3020; color:#f4cc81; font-size:12px; font-weight:700; line-height:1.8; }
.status-processing { background:#202f43; color:#a6cbff; }
.status-completed { background:#1b352a; color:#92dfb5; }
.order-status.order-completed-check { justify-content:center; flex:0 0 28px; width:28px; height:28px; padding:0; border:1px solid rgba(34,197,94,.3); border-radius:50%; background:rgba(34,197,94,.12); color:#86efac; }
.order-completed-check svg, .order-refund-transfer svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.status-cancelled { background:#3b222c; color:#ff9ba7; }
.status-refunded { background:#30293d; color:#d3b8f3; }
.order-status.order-refund-transfer { justify-content:center; flex:0 0 28px; width:28px; height:28px; padding:0; border:1px solid rgba(96,165,250,.4); border-radius:50%; background:rgba(59,130,246,.14); color:#93c5fd; }
.order-wait-clock { display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px; width:28px; height:28px; border:1px solid rgba(245,158,11,.25); border-radius:50%; background:rgba(245,158,11,.12); color:#f4cc81; }
/* A small live status indicator, independent of decorative page animations. */
.account-page .order-wait-clock svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transform-origin:center; animation:order-clock-spin 1.4s linear infinite !important; animation-play-state:running!important; }
@keyframes order-clock-spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
.order-info time { color:var(--text-muted); background:transparent; font-size:11px; line-height:1.8; font-variant-numeric:tabular-nums; }
.order-review { margin-top:10px; color:#f4cc81; font-size:12px; line-height:1.8; }
.order-product-review{grid-column:1 / -1;min-width:0;border-top:1px solid var(--border-color);padding-top:12px;margin-top:2px;font-size:12px}
.order-product-review fieldset{border:0;padding:0;margin:0 0 10px;min-width:0}
.order-product-review legend{font-weight:700;margin-bottom:6px}
.order-review-stars{display:flex;gap:8px;justify-content:flex-end}
.order-review-star{position:relative;display:inline-grid;place-items:center;cursor:pointer;margin:0;width:36px;height:38px}
.order-review-star input{position:absolute;opacity:0;width:1px;height:1px}
.order-review-star span{font-size:29px;color:var(--text-muted);line-height:1}
.order-review-star.is-selected span,.order-review-sent-stars{color:#f4bc43}
.order-review-star input:focus-visible+span{outline:2px solid #ff7180;outline-offset:3px;border-radius:4px}
.order-product-review label:not(.order-review-star){display:block;margin:6px 0;color:var(--text-muted)}
.order-product-review textarea{width:100%;min-width:0;min-height:68px;resize:vertical;padding:9px 10px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-main);color:var(--text-main);font:inherit}
.order-product-review button{border:0;border-radius:9px;padding:9px 14px;background:var(--primary-red);color:white;font:700 12px var(--font-family);cursor:pointer}
.order-product-review button:disabled{opacity:.55;cursor:default}
.order-review-disclosure{font-size:10px;color:var(--text-muted);line-height:1.8}
.order-review-message{color:#ff9ba7;white-space:pre-wrap;overflow-wrap:anywhere}
.order-review-sent-stars{display:block;font-size:21px;direction:ltr;text-align:right;margin-top:4px}
.order-product-review>p{white-space:pre-wrap;overflow-wrap:anywhere}
.order-highlight { border-color:#b64a59; }
.order-delivery { grid-column:1 / -1; min-width:0; align-self:end; border-top:1px solid var(--border-color); }
.order-delivery summary { min-height:32px; align-content:center; padding:5px 0 0; color:#ff9ba7; font-size:12px; font-weight:700; cursor:pointer; }
.order-delivery summary:focus-visible { outline:2px solid #ff7180; outline-offset:3px; border-radius:4px; }
.order-codes { max-height:320px; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#6d3540 #16161e; margin:8px 0 0; padding:10px; border:1px solid var(--border-color); border-radius:10px; background:#16161e; text-align:start; }
.order-codes-header { display:flex; justify-content:space-between; align-items:center; gap:8px; padding-bottom:8px; margin-bottom:8px; border-bottom:1px solid var(--border-color); }
.order-codes-header h3 { margin:0; color:var(--text-main); font-size:13px; font-weight:800; }
.order-codes-actions { display:flex; gap:6px; }
.order-code-action { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:40px; height:40px; padding:10px; border:1px solid #3b3b47; border-radius:10px; background:#262630; color:#ff9ba7; cursor:pointer; transition:background-color .2s, transform .2s; }
.order-code-action:hover { background:#39252e; transform:translateY(-1px); }
.order-code-action:focus-visible { outline:2px solid #ff7180; outline-offset:3px; }
.order-code-action svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.order-code-row { display:flex; direction:ltr; align-items:center; justify-content:space-between; gap:10px; padding:8px 8px 8px 12px; border:1px solid #34343f; border-radius:10px; background:#101016; }
.order-code-row + .order-code-row { margin-top:10px; }
.order-code-text { min-width:0; flex:1; text-align:left; }
.order-code-text code { display:block; white-space:pre-wrap; overflow-wrap:anywhere; user-select:all; color:var(--text-main); font:600 13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace; }
.order-code-label { display:block; margin-bottom:3px; color:var(--text-muted); font-size:11px; }
.order-code-row .order-code-action { border-color:transparent; background:transparent; }
.order-code-row .order-code-action:hover { background:#30222b; }
.orders-empty { display:flex; flex-direction:column; align-items:center; padding:70px 20px 80px; text-align:center; }
.orders-empty > svg { width:54px; height:54px; margin-bottom:22px; color:#a6a6b7; stroke-width:1.2; }
.orders-empty h2 { font-size:18px; font-weight:700; }
.orders-empty p { margin-top:10px; color:var(--text-muted); font-size:14px; line-height:1.9; }
#ordersLoadStatus { margin:8px 0; color:var(--text-muted); font-size:13px; }
#ordersLoadStatus:empty { display:none; }
.orders-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px; padding:8px 0 16px; }
.orders-pagination button { min-width:88px; min-height:44px; padding:8px 14px; border:1px solid #6d3540; border-radius:10px; background:#342027; color:#ff9ba7; font:700 12px var(--font-family); cursor:pointer; }
.orders-pagination button:hover:not(:disabled) { background:#42252e; border-color:#ff7180; }
.orders-pagination button:focus-visible { outline:2px solid #ff7180; outline-offset:3px; }
.orders-pagination button:disabled { background:#1b1b23; border-color:var(--border-color); color:#858594; cursor:default; }
.orders-pagination > span { color:var(--text-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.orders-filter-sheet { position:fixed; inset:auto 0 0; margin:0 auto; width:min(520px,100%); max-height:calc(100dvh - 24px); overflow-y:auto; padding:16px 22px calc(24px + env(safe-area-inset-bottom,0px)); border:1px solid var(--border-color); border-bottom:0; border-radius:24px 24px 0 0; background:var(--bg-card); color:var(--text-main); font-family:var(--font-family); box-shadow:0 -12px 60px rgba(0,0,0,.3); }
.orders-filter-sheet[open] { animation:orders-sheet-in .32s cubic-bezier(.22,1,.36,1) both !important; }
.orders-filter-sheet[open].is-closing { animation:orders-sheet-out .22s ease both !important; pointer-events:none; }
.orders-filter-sheet::backdrop { background:rgba(0,0,0,.6); backdrop-filter:blur(5px); }
.orders-sheet-handle { display:block; width:44px; height:4px; margin:0 auto 16px; border-radius:8px; background:#5b5b6b; }
.orders-sheet-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.orders-sheet-heading h2 { font-size:18px; font-weight:800; }
.orders-sheet-heading button { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:#2a2a35; color:var(--text-main); font-size:25px; }
.orders-filter-sheet fieldset { border:0; margin:0 0 22px; padding:0; min-width:0; }
.orders-filter-sheet legend { margin-bottom:12px; color:var(--text-muted); font-size:13px; font-weight:700; }
.orders-filter-options { display:flex; flex-wrap:wrap; gap:8px; }
.orders-filter-options label { position:relative; cursor:pointer; }
.orders-filter-options input { position:absolute; width:1px; height:1px; opacity:0; }
.orders-filter-options span { display:flex; align-items:center; min-height:42px; padding:8px 12px; border:1px solid var(--border-color); border-radius:10px; background:#252530; color:var(--text-main); font-size:13px; font-weight:700; }
.orders-filter-options input:checked + span { color:#ff9ba7; border-color:#a24958; background:#342027; }
.orders-filter-options input:focus-visible + span { outline:2px solid #ff7180; outline-offset:3px; }
.orders-apply { width:100%; min-height:48px; }
html.orders-filters-open { overflow:hidden; }
@keyframes orders-sheet-in { from { opacity:0; transform:translateY(70px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes orders-sheet-out { to { opacity:0; transform:translateY(70px) scale(.97); } }
@media(max-width:1099px) { .orders-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:719px) { .orders-list { grid-template-columns:minmax(0,1fr); } }
@media(max-width:560px) {
  .orders-main { padding-top:22px; }
  .orders-heading h1 { font-size:25px; }
  .orders-toolbar { padding:12px; gap:10px; }
  .orders-search { flex:1 1 0; padding-inline:10px; }
  .orders-search input { font-size:16px; }
  .orders-filter-trigger { padding-inline:12px; }
  .orders-inline-filters { gap:10px; }
  .orders-inline-filter { min-width:0; }
  .orders-inline-filter select { font-size:12px; padding-inline:8px; }
  .orders-list { gap:10px; }
  .order-card { padding:10px; gap:8px; }
  .order-info h2 { font-size:14px; }
  .order-card-top { gap:4px 10px; }
  .order-amount { font-size:13px; }
  .order-codes { padding:10px; }
  .order-delivery summary { min-height:44px; }
  .orders-applied { align-items:flex-start; }
}
@media(prefers-reduced-motion:reduce) { .order-code-action { transition:none; } }
