.account-main { width: min(100% - 40px, 1080px); min-height: 54vh; }
.account-heading { margin-bottom: 24px; }
.account-heading h1, .account-receipt h1 { margin: 10px 0 0; }
.account-back { color: var(--berry); font-weight: 700; }
.account-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.account-main .checkout-card, .account-receipt .checkout-card {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgb(36 18 30 / 5%);
}
.account-main:not(.is-signed-in) .account-heading { max-width: 460px; margin: 0 auto 18px; }
.account-main .account-access {
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(20px, 5vw, 36px);
  background: #fff;
}
.account-main:not(.is-signed-in) .account-access h2 { margin: 0 0 20px; }
.account-main:not(.is-signed-in) .account-access .access-form > .button[type="submit"] { width: 100%; }
.account-main.is-signed-in .account-access {
  max-width: none;
  padding-block: 14px;
  border-top-width: 1px;
}
.account-main.is-signed-in .account-access h2 {
  margin: 0 0 5px;
  font: 700 .875rem/1.5 var(--sans);
  color: var(--muted);
}
.account-access [data-customer-user] { justify-content: space-between; }
.account-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 20px 14px;
}
.account-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-weight: 700;
}
.account-navigation a:hover { border-color: var(--line); }
.account-navigation a[aria-current] { background: var(--plum); color: #fffdfa; }
.account-main input:not([type="radio"]):not([type="checkbox"]), .account-main select { border-radius: 8px; }
.account-main input[readonly] { background: var(--paper); }
.account-empty { padding: 18px; margin-block: 0 12px; border-radius: 12px; background: var(--paper); color: var(--muted); }
.account-empty p { margin: 0 0 12px; }
.account-orders { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.account-order { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.account-order-header, .account-order-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px clamp(12px, 3vw, 20px);
}
.account-order-header { background: var(--paper); }
.account-order-header time, .account-order-footer > span, .account-order-item small { color: var(--muted); font-size: .875rem; }
.account-order-items {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  list-style: none; gap: 8px 14px; padding: 14px clamp(12px, 3vw, 20px) 0; margin: 0;
}
.account-order-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; color: inherit; }
a.account-order-item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.account-order-item img { flex: 0 0 56px; width: 56px; height: 68px; object-fit: cover; border-radius: 7px; background: var(--paper); }
.account-order-item span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.account-order-statuses {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin: 0; padding: 12px clamp(12px, 3vw, 20px);
}
.account-order-statuses > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.account-order-statuses dt, .account-order-statuses dd { margin: 0; font-size: .8rem; }
.account-order-statuses dt { color: var(--muted); }
.account-order-state { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: .8rem; font-weight: 700; background: #eeecef; color: #3f3540; }
.account-order-state--green { background: #e1f3e8; color: #175435; }
.account-order-state--amber { background: #fff0cc; color: #664600; }
.account-order-state--blue { background: #e3effb; color: #234e77; }
.account-order-state--purple { background: #f0e5f7; color: #573472; }
.account-order-state--red { background: #f9e2e1; color: #802b31; }
.account-order-footer { border-top: 1px solid var(--line); }
.account-order-footer strong { margin-left: 3px; color: var(--deep); font-size: 1rem; }
.account-wishlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.account-wishlist li { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.account-wishlist li > a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.header .account-toggle[aria-current] { background: color-mix(in srgb, var(--blush) 40%, var(--paper)); }
.account-receipt { min-height: 54vh; }
.account-receipt #page-status:empty { margin-bottom: 0; }
