.customer-account-page {
  min-height: 100vh;
  background: #f7f1e8;
  color: #182b3a;
}

.account-main {
  display: grid;
  min-height: min(72vh, 760px);
  place-items: start center;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.account-card {
  width: min(100%, 760px);
  padding: clamp(1.3rem, 4vw, 2.6rem);
  border: 1px solid rgba(24, 43, 58, 0.1);
  border-radius: 1.4rem;
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(24, 43, 58, 0.1);
}

.account-eyebrow {
  margin: 0 0 0.55rem;
  color: #c76a43;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-card h1,
.account-card h2 {
  margin: 0;
  color: #182b3a;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

.account-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.account-card h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.account-intro {
  max-width: 58ch;
  margin: 0.85rem 0 1.6rem;
  color: #596773;
  line-height: 1.65;
}

.account-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.account-form[hidden],
.account-orders-panel[hidden] {
  display: none !important;
}

.account-form label {
  color: #182b3a;
  font-size: 0.9rem;
  font-weight: 850;
}

.account-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.account-input-row input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(24, 43, 58, 0.2);
  border-radius: 0.9rem;
  background: #fff;
  color: #182b3a;
  font: inherit;
}

.account-input-row input:focus-visible {
  border-color: #c76a43;
  outline: 3px solid rgba(199, 106, 67, 0.2);
}

.account-button {
  min-height: 3.25rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid #182b3a;
  border-radius: 999px;
  background: #182b3a;
  color: white;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.account-button:hover,
.account-button:focus-visible {
  background: #263d50;
  transform: translateY(-1px);
}

.account-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.account-code-help {
  margin: 0;
  color: #596773;
  line-height: 1.5;
}

.account-text-button {
  justify-self: start;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  color: #36576e;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.account-status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  color: #36576e;
  line-height: 1.5;
}

.account-status.is-error {
  color: #a33131;
}

.account-orders-panel {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(24, 43, 58, 0.14);
}

.account-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-signed-in-email {
  margin: 0.35rem 0 0;
  color: #596773;
  overflow-wrap: anywhere;
}

.account-orders {
  display: grid;
  gap: 0.8rem;
}

.account-order {
  padding: 1rem;
  border: 1px solid rgba(24, 43, 58, 0.12);
  border-radius: 1rem;
  background: #fff;
}

.account-order__heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.account-order__number {
  margin: 0;
  font-weight: 900;
}

.account-order__date,
.account-order__status,
.account-order__items,
.account-order__tracking {
  margin: 0.45rem 0 0;
  color: #596773;
  line-height: 1.5;
}

.account-order__total {
  flex: 0 0 auto;
  color: #182b3a;
  font-weight: 900;
}

.account-empty-orders {
  margin: 0;
  padding: 1rem;
  border-radius: 1rem;
  background: #f7f1e8;
  color: #596773;
  line-height: 1.55;
}

.account-privacy {
  margin: 1.4rem 0 0;
  color: #687681;
  font-size: 0.82rem;
  line-height: 1.55;
}

.account-privacy a {
  color: #36576e;
  font-weight: 800;
}

@media (max-width: 600px) {
  .account-main {
    min-height: 60vh;
    padding: 1.25rem 0.75rem 2rem;
  }

  .account-card {
    border-radius: 1.1rem;
  }

  .account-input-row {
    grid-template-columns: 1fr;
  }

  .account-button {
    width: 100%;
  }

  .account-order__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-button {
    transition: none;
  }
}
