/* Saved / Orders / My Account hub — shared account-space styles */

body.account-space:not(.has-site-header) {
  margin: 0;
  background: #0b0b0b;
  color: #fff;
  font-family: sans-serif;
  padding: 60px 24px 80px;
  line-height: 1.7;
}

body.account-space.is-bag-open,
body.account-space.is-order-open {
  overflow: hidden;
}

.account-space-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.space-hero {
  max-width: 720px;
  margin-bottom: 40px;
}

.space-kicker {
  margin: 0 0 12px;
  color: var(--lf-muted, #5f5b56);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.space-title {
  margin: 0;
  font-family: var(--lf-font, Arial, Helvetica, sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
}

.space-copy {
  max-width: 560px;
  margin: 16px 0 0;
  color: #999;
  font-size: 14px;
  line-height: 1.9;
}

.space-status {
  margin: 12px 0 0;
  color: var(--lf-muted, #5f5b56);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel {
  border-top: 1px solid #222;
  padding-top: 26px;
}

.panel + .panel,
.hub-section + .panel,
.hub-section + .hub-section {
  margin-top: 36px;
}

.panel-title,
.hub-section-title {
  margin: 0 0 14px;
  font-family: var(--lf-font, Arial, Helvetica, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.panel-copy,
.empty-copy {
  color: var(--lf-muted, #5f5b56);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.hub-section {
  border-top: 1px solid #222;
  padding-top: 26px;
}

.hub-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 0;
}

.hub-preview--empty {
  color: #666;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.hub-saved-thumb {
  display: block;
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #151515;
  text-decoration: none;
}

.hub-saved-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-order-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #1c1c1c;
  padding: 12px 0 0;
  cursor: pointer;
  font-family: inherit;
}

.hub-order-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.hub-order-thumb {
  width: 56px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #151515;
  border: 1px solid #222;
  border-radius: 4px;
}

.hub-order-thumb--empty {
  display: block;
}

.hub-order-ref {
  margin: 0 0 4px;
  color: #151515;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hub-order-meta {
  margin: 0;
  color: #555;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}

.hub-view-all {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
}

.hub-view-all:hover {
  color: #999;
}

.hub-link-list {
  display: grid;
  gap: 0;
}

.hub-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #1c1c1c;
  text-decoration: none;
  color: inherit;
}

.hub-link-item:first-child {
  border-top: 0;
}

.hub-link-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
}

.hub-link-note {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

.hub-sign-out-wrap {
  margin-top: 36px;
  border-top: 1px solid #222;
  padding-top: 26px;
  text-align: center;
}

.hub-sign-out {
  margin-top: 0;
}

.saved-list,
.orders-list {
  display: grid;
  gap: 22px;
}

.saved-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
}

.saved-item img {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #151515;
  border: 1px solid #222;
  border-radius: 6px;
}

.saved-item-image-link,
.saved-item-title {
  display: block;
  color: inherit;
  text-decoration: none;
}

.saved-item-brand {
  color: var(--lf-ink, #151515);
  font-size: var(--lf-product-line-brand-size, 12px);
  font-weight: var(--lf-product-brand-weight, 700);
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 4px;
}

.saved-item-title {
  color: var(--lf-muted, #5f5b56);
  font-size: var(--lf-product-line-name-size, 11px);
  font-weight: 400;
  line-height: var(--lf-product-name-line, 1.45);
  margin: 0 0 6px;
}

.saved-item-title:hover {
  color: var(--lf-ink, #151515);
}

.saved-item-meta {
  color: var(--lf-muted, #5f5b56);
  font-size: 11px;
  margin: 0;
}

.saved-item-price {
  color: var(--lf-ink, #151515);
  font-size: var(--lf-product-line-price-size, 12px);
  font-weight: 400;
  margin: 6px 0 12px;
}

.saved-remove {
  background: none;
  border: 0;
  padding: 0;
  color: var(--lf-muted, #5f5b56);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.saved-remove:hover {
  color: #ddd;
}

.order-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #1c1c1c;
  padding: 16px 0 0;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.25s ease;
}

.order-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.order-item:hover {
  opacity: 0.82;
}

.order-item-ref {
  margin: 0 0 6px;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.order-item-meta {
  margin: 0;
  color: #555;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.order-item--card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid #e4e0da;
  padding: 12px;
  text-transform: none;
}

.order-item--card.is-open {
  border-color: #151515;
  background: rgba(21, 21, 21, 0.04);
}

.order-item--card .hub-order-thumb,
.order-item--card img.hub-order-thumb {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: #ece8e2;
}

.order-item-title {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.order-item--card .order-item-meta {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
  line-height: 1.5;
}

.hub-section--points {
  display: grid;
  gap: 10px;
}

.hub-points-balance {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.hub-points-history {
  display: grid;
  gap: 10px;
}

.points-history-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--lf-line, #e4e0da);
}

.points-history-item strong {
  font-size: 14px;
  font-weight: 500;
}

.points-history-item p,
.points-history-item span {
  margin: 0;
  font-size: 12px;
  color: var(--lf-muted, #5f5b56);
  line-height: 1.5;
}

.hub-points-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 28px 0 56px;
}

.points-page-link {
  display: inline-block;
  padding: 12px 0;
  min-height: 44px;
  font-size: 13px;
}

.hub-sign-out-wrap {
  margin-top: 36px;
  border-top: 1px solid #222;
  padding-top: 26px;
  text-align: center;
}

button.btn.hub-sign-out {
  width: auto;
  max-width: 100%;
  min-width: 160px;
  display: inline-block;
  margin-top: 0;
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: none;
}

.hub-account-email {
  margin: 0;
  font-size: 14px;
  word-break: break-all;
}

.hub-email-change {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.hub-email-change-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hub-email-change-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
}

.hub-email-change-error,
.hub-email-change-success {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.hub-email-change-error {
  color: #8a1f1f;
}

.hub-email-change-success {
  color: #1f4d2e;
}

.hub-email-change-error.is-hidden,
.hub-email-change-success.is-hidden {
  display: none;
}

.hub-email-change-submit {
  width: auto;
  justify-self: start;
  margin-top: 2px;
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 910;
}

.order-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.order-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(480px, calc(100% - 32px));
  max-height: min(88vh, 720px);
  transform: translate(-50%, -46%);
  opacity: 0;
  pointer-events: none;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  z-index: 911;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.order-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.order-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid #222;
}

.order-detail-block {
  margin-top: 22px;
}

.order-refund-card {
  margin: 10px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--lf-line, #e4e0da);
  font-size: 13px;
  line-height: 1.6;
}

.order-refund-card p {
  margin: 0 0 4px;
}
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lf-muted, #5f5b56);
}

.order-modal-title {
  margin: 0 0 6px;
  font-family: var(--lf-font, Arial, Helvetica, sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbb;
}

.order-modal-meta {
  margin: 0;
  color: #555;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-modal-body {
  padding: 22px 28px 28px;
  overflow-y: auto;
}

.order-detail-lines {
  display: grid;
  gap: 22px;
}

.order-detail-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.order-detail-line--refunded {
  opacity: 0.62;
}

.order-detail-refunded,
.order-detail-refund-meta,
.order-detail-remaining {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.order-detail-remaining {
  color: var(--lf-ink, #151515);
}

.order-detail-line--link {
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.order-detail-line--link:hover,
.order-detail-line--link:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.order-detail-line--link:hover .order-detail-title,
.order-detail-line--link:focus-visible .order-detail-title {
  color: #151515;
}

.order-detail-line img {
  width: 72px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #151515;
  border: 1px solid #222;
  border-radius: 4px;
}

.order-detail-title {
  margin: 0 0 4px;
  color: #151515;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.order-detail-meta {
  margin: 0;
  color: #555;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.order-detail-price {
  margin: 6px 0 0;
  color: #151515;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}

.order-detail-thumb-empty {
  width: 72px;
  aspect-ratio: 1;
  background: #151515;
  border: 1px solid #222;
  border-radius: 4px;
}

.order-status-card {
  margin: 0 0 22px;
  padding: 16px 16px 14px;
  border: 1px solid #d8d4cd;
  background: #fff;
}

.order-status-kicker {
  margin: 0 0 6px;
  color: #555;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-status-label {
  margin: 0 0 8px;
  color: #151515;
  font-size: 16px;
  line-height: 1.4;
}

.order-status-copy {
  margin: 0 0 6px;
  color: #444;
  font-size: 13px;
  line-height: 1.7;
}

.order-status-copy:last-child {
  margin-bottom: 0;
}

.order-status-copy--meta {
  color: #777;
  font-size: 12px;
}

.order-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.order-status-btn {
  border: 1px solid #151515;
  background: #fff;
  color: #151515;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.order-status-btn--primary {
  background: #151515;
  color: #fff;
}

.order-status-tracking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #151515;
  font-size: 13px;
}

.order-status-tracking-link {
  color: #151515;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-status-copy-btn {
  border: 0;
  border-bottom: 1px solid #151515;
  background: none;
  padding: 0;
  color: #151515;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.order-address-modal {
  position: fixed;
  inset: 0;
  z-index: 912;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
}

.order-address-modal[hidden] {
  display: none;
}

.order-address-dialog {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  background: #fff;
  color: #151515;
}

.order-address-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin: 0 0 16px;
}

.order-address-dialog-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.order-address-dialog label {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 12px;
  color: #444;
}

.order-address-dialog input {
  padding: 8px 10px;
  border: 1px solid #d8d4cd;
  font: inherit;
  color: #151515;
}

.order-address-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.order-address-error {
  margin: 8px 0 0;
  color: #8a2f2f;
  font-size: 12px;
}

.order-detail-totals {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #222;
}

.order-detail-section-title {
  margin: 24px 0 10px;
  color: #555;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.confirmation-address {
  margin: 0;
  white-space: pre-line;
  color: #151515;
  font-size: 13px;
  line-height: 1.7;
}

.confirmation-change-note {
  margin: 16px 0 0;
  color: #555;
  font-size: 12px;
  line-height: 1.7;
}

.confirmation-change-note a {
  color: #151515;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order-detail-totals .confirmation-meta-row,
.order-modal-body .confirmation-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #555;
  font-size: 12px;
  letter-spacing: 0;
}

.order-detail-totals .confirmation-meta-row span:last-child,
.order-modal-body .confirmation-meta-row span:last-child {
  color: #151515;
  letter-spacing: 0;
  font-size: 14px;
}

.coming-soon-hero {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.coming-soon-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid #333;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
}

.is-hidden {
  display: none !important;
}


/* Shopping path — light editorial (theme-shop) */
body.theme-shop.account-space {
  background: var(--lf-bg, #f4f2ee);
  color: var(--lf-ink, #151515);
  font-family: var(--lf-font, Arial, Helvetica, sans-serif);
}

body.theme-shop.account-space .panel,
body.theme-shop.account-space .hub-section {
  border-top-color: var(--lf-line, #d8d4cd);
}

body.theme-shop.account-space .hub-saved-thumb {
  border-color: var(--lf-line, #d8d4cd);
  background: var(--lf-image-bg, #f5f5f5);
}
