.customer-tracking-section{margin:24px 0;padding-top:18px;border-top:1px solid var(--line)}
.customer-tracking-section h3{font-size:1.05rem;margin:0 0 14px}
.customer-tracking-entry{min-width:0;padding:16px;margin:12px 0;background:var(--cream);border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.customer-tracking-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.customer-tracking-heading h4{font-size:.95rem;margin:0}
.customer-tracking-entry p,.customer-tracking-email-note{font-size:.8rem;color:var(--ink-soft);line-height:1.6}
.customer-return-products,.customer-tracking-dates,.customer-return-progress{list-style:none;padding:0;margin:14px 0}
.customer-return-products li{display:flex;flex-direction:column;gap:4px;margin:12px 0;font-size:.85rem}
.customer-return-products span{font-size:.8rem;color:var(--ink-soft)}
.customer-return-progress{display:flex;flex-wrap:wrap;gap:8px}
.customer-return-progress li{font-size:.7rem;padding:6px 9px;border:1px solid var(--line);border-radius:20px;color:var(--ink-soft);background:#fff}
.customer-return-progress li.complete,.customer-return-progress li.current{color:var(--cedar);border-color:var(--cedar)}
.customer-return-progress li.current{font-weight:700;background:#fff0e5}
.customer-tracking-dates li{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line);font-size:.8rem}
.customer-tracking-dates time{color:var(--ink-soft)}
.customer-refund-amounts{margin:14px 0;font-size:.85rem}
.customer-refund-amounts>div{display:flex;justify-content:space-between;gap:14px}
.customer-refund-amounts dd{margin:0;font-weight:600}
.customer-order-refresh{padding:10px 14px;border:1px solid var(--cedar);border-radius:6px;background:#fff;color:var(--cedar);font:inherit;font-size:.8rem;cursor:pointer}
.customer-order-refresh:disabled{opacity:.6;cursor:wait}
.account-order,
.account-address {
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.account-order-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.account-order-heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-order-heading > div:last-child { align-items: flex-end; }
.account-order-heading strong,
.account-order-heading small,
.account-order-heading span,
.account-order-message { overflow-wrap: anywhere; }
.account-order-heading small,
.account-order-heading span { color: var(--ink-soft); }
.account-order-heading b { color: var(--cedar); font-size: 1.1rem; }

.account-order-status {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eee9e0;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: normal;
}

.account-order-status.status-confirmed,
.account-order-status.status-processing,
.account-order-status.status-ready,
.account-order-status.status-dispatched { background: #fff0e5; color: #8a5432; }
.account-order-status.status-delivered { background: #e4efe2; color: #315d2e; }
.account-order-status.status-cancelled,
.account-order-status.status-refunded,
.account-order-status.status-partially_refunded { background: #f5e3e1; color: #8c3029; }
.account-order-message { margin: 15px 0; color: var(--ink-soft); }

.account-order-progress {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 20px 0 16px;
}

.account-order-progress span {
  min-width: 0;
  position: relative;
  padding: 20px 2px 0;
  color: #8b877f;
  font-size: .65rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.account-order-progress span::before { content: ""; position: absolute; top: 6px; left: 0; width: 100%; height: 2px; background: #d7d2c9; }
.account-order-progress i { position: absolute; z-index: 1; top: 1px; left: calc(50% - 6px); width: 12px; height: 12px; border: 2px solid #d7d2c9; border-radius: 50%; background: #fff; }
.account-order-progress span.complete::before,
.account-order-progress span.current::before { background: var(--cedar); }
.account-order-progress span.complete i,
.account-order-progress span.current i { border-color: var(--cedar); background: var(--cedar); }
.account-order-progress span.current { color: var(--cedar); font-weight: 800; }

.account-order details { min-width: 0; max-width: 100%; margin-top: 12px; }
.account-order summary { cursor: pointer; font-weight: 700; color: var(--cedar); overflow-wrap: anywhere; }
.account-order details > p { max-width: 100%; padding: 12px; background: var(--cream); overflow-wrap: anywhere; }
.account-order-items { display: grid; gap: 10px; margin-top: 12px; }
.account-order-item { min-width: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; background: var(--cream); }
.account-order-item img,
.account-order-item-placeholder { width: 74px; height: 64px; object-fit: cover; background: #e5e0d7; }
.account-order-item > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.account-order-item strong,
.account-order-item span { overflow-wrap: anywhere; }
.account-order-item span { color: var(--ink-soft); font-size: .82rem; }
.account-order-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-order-pagination button { border: 1px solid var(--cedar); background: transparent; color: var(--cedar); padding: 9px 13px; font-weight: 700; cursor: pointer; }
.account-order-pagination button:disabled { border-color: var(--line); color: #99958d; cursor: not-allowed; }
.account-order-pagination span { color: var(--ink-soft); font-size: .78rem; text-align: center; }
.account-address { position: relative; }
.account-address p { color: var(--ink-soft); overflow-wrap: anywhere; }
.account-address button { position: absolute; right: 0; top: 18px; border: 0; background: none; color: #9b3029; text-decoration: underline; cursor: pointer; }

@media (max-width: 620px) {
  .account-order-heading { flex-direction: column; gap: 12px; }
  .account-order-heading > div:last-child { align-items: flex-start; }
  .account-order-progress { overflow: visible; }
  .account-order-progress span { font-size: .58rem; }
  .account-order-pagination { align-items: stretch; flex-wrap: wrap; }
  .account-order-pagination button { flex: 1 1 110px; }
  .account-order-pagination span { order: -1; width: 100%; }
  .account-address button { position: static; margin-top: 8px; }
}
