.account-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fbfbfb;
  color: #1a1a1a;
  font: 400 16px/1.45 Blender, Arial, sans-serif;
  --home-ink: #1a1a1a;
  --home-accent: #1a1a1a;
}

.account-wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: clamp(25px, 4vw, 65px) clamp(42px, 6vw, 92px);
  flex: 1;
}

.account-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 26px;
}

.account-heading h1 { font-size: clamp(38px, 4vw, 54px); line-height: 1.07; }
.account-heading h1, .account-card h2, .account-card p, .account-orders > h2 { margin: 0; }
.account-heading h1, .account-card h2, .account-orders > h2 { font-weight: 500; }
.account-page a { text-underline-offset: 4px; }

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-card {
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid #dedede;
  background: #fff;
}

.account-profile h2, .account-orders > h2, .account-empty h2 { font-size: 26px; line-height: 1.15; }
.account-profile p, .account-empty p { margin-top: 8px; color: #515151; overflow-wrap: anywhere; }
.account-orders > h2 { margin-bottom: 14px; }
.account-orders article + article { margin-top: 14px; }
.account-empty { max-width: 620px; }
.account-empty p + a, .account-profile p + button { margin-top: 17px; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 17px; }

.account-primary, .account-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border: 1px solid #1a1a1a;
  border-radius: 0;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
}

.account-primary { background: #1a1a1a; color: #fff; }
.account-primary:hover { background: #373737; }
.account-secondary { background: #fff; color: #1a1a1a; }
.account-secondary:hover { background: #f2f2f2; }
.account-status { margin: 0 0 18px; padding: 12px 16px; border: 1px solid #dedede; background: #fff; }
.account-order-header, .account-order-line, .account-order-total { display: flex; justify-content: space-between; gap: 8px 16px; }
.account-order-header { flex-wrap: wrap; align-items: start; }
.account-order-header h3 { margin: 0; font-size: 21px; overflow-wrap: anywhere; }
.account-order-header time, .account-order-address { color: #515151; }
.account-order-status { background: #f0f0f0; padding: 4px 10px; }
.account-order-items { list-style: none; margin: 16px 0; padding: 0; border-block: 1px solid #e3e3e3; }
.account-order-line { padding: 8px 0; }
.account-order-line + .account-order-line { border-top: 1px solid #e3e3e3; }
.account-order-line span:last-child { white-space: nowrap; }
.account-card .account-order-address { margin: 10px 0 16px; }

@media (max-width: 680px) {
  .account-wrap { width: calc(100% - 32px); }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
}
