body[data-page="account"] {
  background: #f5f4ef;
}

.site-header .account-header-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #eee;
  text-decoration: none;
  flex: none;
}

.site-header .account-header-link[aria-current="page"] {
  color: var(--yellow, #f8d72e);
}

.site-header .account-header-link .icon {
  width: 22px;
  height: 22px;
}

.account-page {
  --account-ink: #181916;
  --account-muted: #5b5a52;
  --account-line: #e0ddd2;
  --account-accent: var(--yellow, #f8d72e);
  --account-radius: .625rem;
  min-height: 65vh;
  padding: clamp(1.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  background: #f5f4ef;
  color: var(--account-ink);
}

.account-page [hidden] {
  display: none !important;
}

.account-shell {
  display: grid;
  gap: clamp(.875rem, 2vw, 1.25rem);
  max-width: 66rem;
  margin-inline: auto;
}

.account-shell:has(.account-signin:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 57rem;
}

.account-content {
  min-width: 0;
}

.account-heading,
.account-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.account-heading {
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: var(--account-radius);
  background: var(--account-ink);
  color: #fff;
}

.account-shell:has(.account-signin:not([hidden])) .account-heading {
  align-content: center;
}

.account-intro::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: .25rem;
  margin-bottom: clamp(.75rem, 2vw, 1.15rem);
  background: var(--account-accent);
}

.account-heading h1 {
  margin: 0;
  color: inherit;
  font: 700 clamp(2.65rem, 6vw, 4.5rem)/1 var(--retail-display, Oswald, "Arial Narrow", sans-serif);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.account-intro p {
  max-width: 34ch;
  margin: .85rem 0 0;
  color: #e1dfd5;
  font-size: 1rem;
  line-height: 1.55;
}

.account-heading .account-button {
  border-color: #77776d;
  background: transparent;
  color: #fff;
}

.account-heading .account-button:hover {
  border-color: var(--account-accent);
  background: #33342c;
}

.account-heading .account-button:focus-visible {
  outline-color: var(--account-accent);
}

.account-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.875rem, 2vw, 1.25rem);
}

.account-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--account-line);
  border-radius: var(--account-radius);
}

.account-card h2 {
  margin: 0 0 1rem;
  color: var(--account-ink);
  font: 600 clamp(1.45rem, 3vw, 1.85rem)/1.15 var(--retail-display, Oswald, "Arial Narrow", sans-serif);
  letter-spacing: -.015em;
}

.account-signin {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.account-signin-form .account-primary,
.account-google-method .account-google {
  width: 100%;
}

.account-signin-form .account-primary {
  min-height: 48px;
  margin-top: 1.1rem;
  background: var(--account-accent);
  border-color: var(--account-accent);
  color: var(--account-ink);
}

.account-signin-form .account-primary:hover {
  background: #eacd31;
  border-color: #c4a918;
}

.account-auth-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
  margin-top: .3rem;
}

.account-auth-options button {
  min-height: 44px;
  padding: 0;
  color: var(--account-ink);
  font: 600 .875rem/1.25 var(--retail-body, Helvetica, Arial, sans-serif);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-align: start;
}

.account-auth-options button:hover {
  text-decoration-thickness: 2px;
}

.account-auth-options button:disabled {
  cursor: wait;
  opacity: .65;
}

.account-signin .account-password-hint {
  margin: .35rem 0 0;
  color: var(--account-muted);
  font-size: .825rem;
  font-weight: 400;
}

.account-signin .account-signin-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  color: var(--account-muted);
  font-size: .85rem;
}

.account-signin-divider::before,
.account-signin-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--account-line);
}

.account-signin .account-signin-status:not(:empty) {
  margin: .75rem 0 0;
}

.account-muted,
.account-status {
  margin: 0 0 1rem;
  color: var(--account-muted);
  line-height: 1.5;
}

.account-content > .account-status:not(:empty) {
  padding: .75rem 1rem;
  border-radius: var(--account-radius);
  background: #fff;
}

.account-card p:last-child,
.account-status:empty,
.account-form-error:empty {
  margin: 0;
}

.account-page .account-status.is-error,
.account-form-error {
  color: #9b2323;
}

.account-button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .6rem 1rem;
  border: 1px solid #c9c6bb;
  border-radius: .375rem;
  background: #fff;
  color: var(--account-ink);
  font: 600 .925rem/1.25 var(--retail-body, Helvetica, Arial, sans-serif);
  text-decoration: none;
  cursor: pointer;
}

.account-button:hover {
  background: #f6f5f2;
  border-color: #858376;
}

.account-page :is(a, button, input, select):focus-visible {
  outline: 2px solid #876c00;
  outline-offset: 3px;
}

.account-button:disabled {
  cursor: wait;
  opacity: .65;
}

.account-google {
  gap: 10px;
  padding-inline: 12px;
  border-color: #747775;
  border-radius: 4px;
  color: #1f1f1f;
  font: 500 14px/20px "Google Sans", Arial, sans-serif;
}

.account-google img {
  width: 18px;
  height: 18px;
}

.account-primary {
  background: var(--account-ink);
  border-color: var(--account-ink);
  color: #fff;
}

.account-primary:hover {
  background: #373737;
  color: #fff;
}

.account-card address,
.account-profile-details {
  margin: 0 0 1rem;
  line-height: 1.5;
  font-style: normal;
  overflow-wrap: anywhere;
}

.account-profile-details {
  display: grid;
  gap: .6rem;
}

.account-profile-details dt {
  color: var(--account-muted);
  font-size: .8rem;
}

.account-profile-details dd {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}

.account-card fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.account-full,
.account-order-card {
  grid-column: 1 / -1;
}

.account-fields label {
  display: grid;
  min-width: 0;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
}

.account-fields input,
.account-fields select {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: .6rem .75rem;
  background: #fff;
  color: var(--account-ink);
  border: 1px solid #a9a69a;
  border-radius: .375rem;
  font: inherit;
  font-size: 1rem;
}

.account-address-line {
  position: relative;
  min-width: 0;
}

.account-address-feedback {
  margin: .35rem 0 0;
  color: var(--account-muted);
  font-size: .8rem;
}

.account-address-feedback:empty { margin: 0; }

.account-address-suggestions {
  position: absolute;
  z-index: 2;
  inset: calc(100% + .25rem) 0 auto;
  max-height: min(16rem, 40dvh);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 1px solid var(--account-line);
  border-radius: .375rem;
  background: #fff;
  box-shadow: 0 .25rem .75rem #18191626;
  list-style: none;
}

.account-address-suggestions li {
  display: grid;
  min-height: 48px;
  align-content: center;
  gap: .1rem;
  padding: .6rem .75rem;
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.account-address-suggestions li strong { font-weight: 600; }

.account-address-suggestions li span {
  color: var(--account-muted);
  font-size: .8rem;
}

.account-address-suggestions li + li {
  border-top: 1px solid var(--account-line);
}

.account-address-suggestions li:is(:hover, [aria-selected="true"]) {
  background: #fff4c1;
}

.account-form-actions {
  justify-content: start;
  margin-top: 1rem;
}

.account-form-error {
  margin: .75rem 0 0;
  line-height: 1.45;
}

.account-orders {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-orders li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.25rem);
  padding: .85rem 0;
  border-top: 1px solid var(--account-line);
  overflow-wrap: anywhere;
}

.account-orders li:last-child {
  padding-bottom: 0;
}

.account-orders time,
.account-orders span {
  display: block;
  margin-top: .2rem;
  color: var(--account-muted);
  font-size: .825rem;
  line-height: 1.4;
}

.account-order-payment {
  text-align: end;
}

.account-order-card .account-muted {
  padding: 1rem;
  border: 1px solid var(--account-line);
  border-radius: .375rem;
  background: #f8f7f3;
}

@media (min-width: 1200px) {
  .retail-header-inner:has(.account-header-link) {
    grid-template-columns: 180px minmax(240px, 620px) minmax(max-content, 1fr);
  }
}

@media (width < 1200px) {
  .retail-header-inner:has(.account-header-link) {
    grid-template-columns: minmax(54px, 1fr) auto minmax(132px, 1fr);
  }
}

@media (max-width: 360px) {
  .retail-header-inner:has(.account-header-link) {
    grid-template-columns: minmax(54px, 1fr) auto minmax(120px, 1fr);
  }
}

@media (max-width: 700px) {
  .account-shell:has(.account-signin:not([hidden])),
  .account-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .account-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-orders li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-orders li .account-button {
    grid-column: 1 / -1;
  }
}
