#customer-account {
  margin-bottom: 17px;
}

#customer-account:empty {
  display: none;
}

.account-back--icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border-radius: 10px;
  color: var(--ink);
}

.account-back--icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

.account-back--icon:hover {
  background: var(--tint);
}

.customer-account-card h2 {
  margin: 0 0 6px;
}

.customer-mode {
  display: inline-flex;
  gap: 4px;
  margin: 16px 0;
  padding: 4px;
  border-radius: 11px;
  background: var(--tint);
}

.customer-mode-button {
  min-height: 42px;
  min-width: 86px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
}

.customer-mode-button[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--white);
}

.customer-auth-form {
  display: grid;
  gap: 16px;
}

.customer-fields {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 12px;
}

.customer-fields--stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 380px;
}

.customer-field {
  flex: 0 1 270px;
  min-width: min(100%, 190px);
}

.customer-field input {
  display: block;
  width: 100%;
  margin-top: 5px;
}

.customer-field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.5;
}

.customer-remember label {
  display: flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.customer-remember input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: var(--accent);
}

.customer-remember .customer-field-hint {
  margin: 3px 0 0 26px;
}

.customer-auth-form>.button {
  justify-self: start;
  min-width: 112px;
}

.account-dashboard,.account-subpage {
  max-width: 680px;
}

.account-dashboard {
  display: flex;
  flex-direction: column;
  min-height: clamp(230px,48vh,410px);
}

.account-menu {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.account-menu-row {
  display: grid;
  min-height: 73px;
  grid-template-columns: auto minmax(0,1fr) auto 10px;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
}

.account-menu-row + .account-menu-row {
  border-top: 1px solid var(--line);
}

.account-menu-row:hover,.account-menu-row:focus-visible {
  background: var(--tint);
}

.account-menu-row:focus-visible {
  outline-offset: -4px;
}

.account-menu-icon {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: var(--tint);
  color: var(--accent);
}

.account-menu-icon::before,.account-menu-icon::after {
  position: absolute;
  content: '';
}

.account-menu-icon--wallet::before {
  width: 21px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.account-menu-icon--wallet::after {
  right: 9px;
  width: 8px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: var(--tint);
}

.account-menu-icon--history::before {
  width: 15px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.account-menu-icon--history::after {
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -4px currentColor,0 4px currentColor;
}

.account-menu-icon--orders::before {
  width: 19px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.account-menu-icon--orders::after {
  top: 11px;
  width: 5px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px;
  border-radius: 0 0 2px 2px;
}

.account-menu-status {
  grid-column: 3;
  color: var(--muted);
  font-size: .87rem;
}

.account-menu-chevron {
  width: 7px;
  height: 7px;
  grid-column: 4;
  border-top: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  transform: rotate(45deg);
}

.account-logout {
  padding-top: 28px;
  margin-top: auto;
}

.account-logout .account-logout-button {
  width: 100%;
  border-color: var(--line);
  background: var(--white);
  color: var(--alert);
}

.account-logout .account-logout-button:hover:not(:disabled) {
  border-color: var(--alert);
  background: var(--white);
  color: var(--alert);
}

.account-subpage h2 {
  margin-bottom: 8px;
}

.customer-message:not(:empty) {
  margin-top: 12px;
  font-size: .92rem;
}

.customer-message.is-error {
  color: var(--alert);
}

@media (min-width: 761px) {
  #my-view {
    padding-top: 36px;
  }

  #my-title {
    margin-bottom: 24px;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    letter-spacing: -.035em;
  }

  .account-workspace {
    display: grid;
    grid-template-columns: clamp(195px, 26%, 290px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 2.3vw, 28px);
  }

  .account-sidebar {
    max-width: none;
    min-height: 0;
  }

  .account-menu,
  .account-content {
    box-shadow: 0 6px 20px rgba(121, 26, 52, .04);
  }

  .account-menu {
    padding: 6px;
  }

  .account-menu-row {
    min-height: 58px;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 9px;
  }

  .account-menu-row + .account-menu-row {
    border-top-color: transparent;
  }

  .account-menu-row[aria-current="page"] {
    background: var(--tint);
    color: var(--accent);
  }

  .account-menu-icon {
    width: 35px;
    height: 35px;
    border-radius: 9px;
  }

  .account-menu-icon--wallet::after {
    right: 6px;
  }

  .account-menu-status {
    font-size: .78rem;
    white-space: nowrap;
  }

  .account-menu-icon--orders::after {
    top: 8px;
  }

  .account-logout {
    margin: 12px 0 0;
    padding: 0;
  }

  .account-logout .account-logout-button {
    width: 100%;
    font-size: .9rem;
  }

  .account-content {
    min-width: 0;
    min-height: 290px;
    padding: clamp(20px, 2.5vw, 34px);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--white);
  }

  .account-pane-title {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 1.28rem;
  }

  .account-content .account-subpage {
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .account-content #account-history {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .customer-fields {
    display: grid;
  }

  .customer-auth-form>.button {
    justify-self: stretch;
  }
}
