/* Approved compact order history, backed only by the loaded API records. */
.order-history { min-width: 0; padding-bottom: 16px; }
.order-history .order-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.order-history .order-history-heading h2 { margin: 0; color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.45px; }
.order-history .order-history-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24px; border-bottom: 1px solid #ffffff26; }
.order-history .order-history-filters { display: flex; align-items: stretch; gap: 25px; min-width: 0; }
.order-history .order-history-filters > button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 59px; padding: 14px 0 17px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #a7b3c3; background: transparent; font-size: 14px; font-weight: 650; cursor: pointer; transition: color .18s, border-color .18s; white-space: nowrap; }
.order-history .order-history-filters > button:hover { color: #fff; }
.order-history .order-history-filters > button[aria-pressed="true"] { color: #fff; border-bottom-color: #fff; }
.order-history .order-history-filters > button:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.order-history .order-history-search { position: relative; flex: 0 1 310px; min-width: 210px; margin: 0 0 12px; }
.order-history .order-history-search input { width: 100%; min-height: 46px; padding: 11px 38px 11px 41px; border: 1px solid #ffffff3a; border-radius: 11px; color: #f3f6fa; background: #ffffff02; font-size: 13px; font-weight: 550; appearance: none; }
.order-history .order-history-search input::placeholder { color: #a0adbe; }
.order-history .order-history-search input::-webkit-search-cancel-button { display: none; }
.order-history .order-history-search input:focus-visible { outline: 1px solid #eef2f8; outline-offset: 2px; }
.order-history .order-history-search-mark { position: absolute; top: 15px; left: 15px; width: 14px; height: 14px; border: 1.5px solid #b8c4d4; border-radius: 50%; pointer-events: none; }
.order-history .order-history-search-mark::after { position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.5px; background: #a8b4c3; transform: rotate(45deg); content: ''; }
.order-history .order-history-search > button { position: absolute; top: 6px; right: 5px; display: grid; place-items: center; width: 33px; height: 33px; padding: 0; border: 0; border-radius: 8px; color: #bdc7d4; background: transparent; font-size: 22px; cursor: pointer; }
.order-history .order-history-search > button:hover { color: #fff; background: #ffffff08; }
.order-history .order-history-limit { margin: 13px 0 0; color: #a7b3c3; font-size: 12px; line-height: 1.5; }
.order-history .order-history-columns, .order-history .order-history-row { display: grid; grid-template-columns: minmax(110px, 1fr) 90px 114px 177px 105px 16px; align-items: center; gap: 18px; }
.order-history .order-history-columns { padding: 23px 10px 13px; color: #f0f4fa; font-size: 13px; font-weight: 700; }
.order-history .order-history-columns > :nth-last-child(2) { text-align: right; }
.order-history .order-history-list { margin: 0; padding: 0; list-style: none; }
.order-history .order-history-list > li + li { border-top: 1px solid #ffffff0d; }
.order-history .order-history-row { width: 100%; min-height: 84px; padding: 17px 10px; border: 1px solid transparent; border-radius: 13px; color: #edf3fb; background: transparent; text-align: left; cursor: pointer; transition: background .18s, border-color .18s; }
.order-history .order-history-row:hover { border-color: #ffffff25; background: #ffffff04; }
.order-history .order-history-row:focus-visible { outline: 1px solid #fff; outline-offset: -1px; }
.order-history .order-history-product { display: flex; align-items: center; gap: 13px; min-width: 0; color: #f5f7fa; font-size: 14px; line-height: 1.35; }
.order-history .order-history-product > strong { font-weight: 650; }
.order-history .order-history-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 34px; border: 1px solid #ffffff32; border-radius: 8px; color: #d7e0ec; background: #ffffff03; }
.order-history .order-history-avatar > .icon { width: 18px; height: 18px; }
.order-history .order-history-number { min-width: 0; overflow-wrap: anywhere; color: #edf3fb; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-history .order-history-cell-label { display: none; }
.order-history .order-history-date { color: #edf3fb; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-history .order-history-status { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #edf3fb; font-size: 13px; font-weight: 700; line-height: 1.4; }
.order-history .order-history-status-mark { position: relative; display: block; flex: 0 0 19px; width: 19px; height: 19px; border: 1.5px solid currentColor; border-radius: 50%; color: #c8d5e7; }
.order-history .order-history-status[data-status="succeeded"] .order-history-status-mark { color: #b2df8f; }
.order-history .order-history-status[data-status="succeeded"] .order-history-status-mark::after { position: absolute; top: 5px; left: 4px; width: 7px; height: 4px; border-left: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(-45deg); content: ''; }
.order-history .order-history-status:is([data-status="pending"], [data-status="partial_success"]) .order-history-status-mark { color: #ecd078; }
.order-history .order-history-status[data-status="pending"] .order-history-status-mark::after { position: absolute; top: 3px; left: 7px; width: 4px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ''; }
.order-history .order-history-status[data-status="partial_success"] .order-history-status-mark { background: linear-gradient(90deg, #ecd07826 50%, transparent 50%); }
.order-history .order-history-status:is([data-status="failed"], [data-status="cancelled"]) .order-history-status-mark { color: #e8a5a5; }
.order-history .order-history-status:is([data-status="failed"], [data-status="cancelled"]) .order-history-status-mark::before, .order-history .order-history-status:is([data-status="failed"], [data-status="cancelled"]) .order-history-status-mark::after { position: absolute; top: 7px; left: 4px; width: 8px; height: 1.5px; border-radius: 1px; background: currentColor; transform: rotate(45deg); content: ''; }
.order-history .order-history-status:is([data-status="failed"], [data-status="cancelled"]) .order-history-status-mark::after { transform: rotate(-45deg); }
.order-history .order-history-amount { min-width: 0; overflow-wrap: anywhere; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -.3px; text-align: right; font-variant-numeric: tabular-nums; }
.order-history .order-history-open { justify-self: end; width: 16px; height: 16px; color: #7c8899; }
.order-history .order-history-row:hover .order-history-open { color: #fff; }
.order-history .order-history-empty { display: grid; justify-items: center; gap: 13px; padding: 63px 20px 45px; text-align: center; }
.order-history .order-history-empty-symbol { width: 27px; height: 27px; margin-bottom: 7px; color: #dfe7f2; }
.order-history .order-history-empty h3 { margin: 0; color: #fff; font-size: 23px; font-weight: 700; }
.order-history .order-history-empty p { max-width: 38ch; margin: 0; color: #a4b0c0; font-size: 13px; line-height: 1.6; }
.order-history .order-history-empty .button { margin-top: 9px; min-height: 44px; font-weight: 700; }
.order-history .order-history-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width: 1350px) {
  .order-history .order-history-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .order-history .order-history-search { order: -1; width: 100%; margin: 0; }
  .order-history .order-history-filters { gap: 23px; }
  .order-history .order-history-filters > button { min-height: 55px; font-size: 13px; }
  .order-history .order-history-columns, .order-history .order-history-row { gap: 13px; grid-template-columns: minmax(90px, 1fr) 80px 102px 162px 95px 16px; }
}
@media(max-width: 1150px) {
  .order-history .order-history-columns { display: none; }
  .order-history .order-history-list { margin-top: 19px; }
  .order-history .order-history-row { grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 8px 18px; min-height: 108px; padding: 17px 7px; }
  .order-history .order-history-product { grid-column: 1; grid-row: 1; }
  .order-history .order-history-amount { grid-column: 2; grid-row: 1; max-width: 210px; }
  .order-history .order-history-number { grid-column: 1; grid-row: 2; margin-left: 51px; font-size: 12px; }
  .order-history .order-history-cell-label { display: inline; }
  .order-history .order-history-date { grid-column: 1; grid-row: 3; margin-left: 51px; font-size: 12px; }
  .order-history .order-history-status { grid-column: 2; grid-row: 2 / span 2; justify-self: end; max-width: 170px; }
  .order-history .order-history-open { display: none; }
}
@media(max-width: 760px) {
  .order-history .order-history-heading h2 { font-size: 21px; }
  .order-history .order-history-toolbar { gap: 10px; margin-top: 21px; border-bottom: 0; }
  .order-history .order-history-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; gap: 0 16px; border-bottom: 1px solid #ffffff26; }
  .order-history .order-history-filters > button { grid-column: span 2; min-height: 45px; padding: 10px 0 12px; font-size: 13px; }
  .order-history .order-history-filters > button:nth-last-child(-n+2) { grid-column: span 3; }
  .order-history .order-history-product { gap: 11px; font-size: 13px; }
  .order-history .order-history-avatar { flex-basis: 34px; width: 34px; height: 31px; }
  .order-history .order-history-number, .order-history .order-history-date { margin-left: 45px; font-size: 11px; }
  .order-history .order-history-status { gap: 6px; max-width: 140px; font-size: 12px; }
  .order-history .order-history-amount { max-width: 170px; }
  .order-history .order-history-status-mark { flex-basis: 18px; width: 18px; height: 18px; }
  .order-history .order-history-empty { padding: 47px 10px 35px; }
  .order-history .order-history-empty h3 { font-size: 21px; }
}
@media(max-width: 420px) {
  .order-history .order-history-row { gap: 8px 10px; padding-inline: 1px; }
  .order-history .order-history-product { gap: 8px; font-size: 12px; }
  .order-history .order-history-number, .order-history .order-history-date { margin-left: 42px; }
  .order-history .order-history-amount { max-width: 150px; font-size: 16px; }
  .order-history .order-history-status { max-width: 125px; font-size: 11px; }
}
@media(prefers-reduced-motion: reduce) {
  .order-history .order-history-row, .order-history .order-history-filters > button { transition: none; }
}
