.account {
  max-width: 1120px;
  padding-block: 36px 72px;
}

.account h1 {
  font-size: clamp(28px,4vw,42px);
  line-height: 1.2;
  margin: 12px 0 20px;
}

.account h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 8px 0 16px;
}

.account p {
  line-height: 1.65;
}

.account a {
  color: inherit;
  text-underline-offset: 4px;
}

.account-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #dedfe1;
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.account-nav form {
  margin-left: auto;
}

.account-link {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.account-card {
  border: 1px solid #dedfe1;
  border-radius: 12px;
  padding: 28px;
  background: #fff;
  margin-bottom: 20px;
}

.account-auth {
  max-width: 580px;
  margin-inline: auto;
}

.account-eyebrow {
  font-size: 13px;
  letter-spacing: .06em;
  color: #666;
  overflow-wrap: anywhere;
}

.account-heading {
  margin-bottom: 28px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.account-form label {
  font-weight: 600;
}

.account-form input {
  border: 1px solid #aeb2b9;
  border-radius: 5px;
  min-height: 48px;
  padding: 12px;
  font: inherit;
  background: #fff;
  color: #111;
}

.account-form .btn {
  margin-top: 8px;
  min-height: 48px;
  align-self: flex-start;
}

.account-muted {
  color: #626873;
  font-size: 14px;
}

.account-error {
  color: #a61c1c;
}

.account-otp {
  --otp-cell: clamp(2rem, 7.5vw, 2.75rem);
  --otp-gap: var(--sp-2);
  --otp-step: calc(var(--otp-cell) + var(--otp-gap));
  position: relative;
  width: calc(6 * var(--otp-cell) + 5 * var(--otp-gap));
  height: var(--h-lg);
  overflow: hidden;
  border-radius: var(--r-ctl);
}

.account-otp-cells {
  display: grid;
  grid-template-columns: repeat(6, var(--otp-cell));
  gap: var(--otp-gap);
  height: 100%;
}

.account-otp-cell {
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-ctl);
}

.account-otp:focus-within .account-otp-cell {
  border-color: var(--c-accent);
}

.account-otp .account-otp-cell.is-active {
  box-shadow: inset 0 0 0 2px var(--c-accent);
}

.account-otp.is-error .account-otp-cell {
  border-color: var(--c-err);
  background: var(--c-err-soft);
}

.account-form .account-otp-input {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% + var(--otp-step) - 1ch);
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 calc((var(--otp-cell) - 1ch) / 2);
  font: 700 var(--fs-price)/1 ui-monospace, "Courier New", monospace;
  letter-spacing: calc(var(--otp-step) - 1ch);
  background: transparent;
  caret-color: var(--c-accent);
}

.account-form .account-otp-input:focus-visible {
  outline: 0;
}

.account-otp-hint {
  margin: 0;
}

.account-notice {
  background: #f0f5ed;
  border-left: 3px solid #49763b;
  padding: 16px;
}

.account-order-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.account-order-total {
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.account-order-total a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 12px;
}

.account-pagination {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.account-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.account-revoke {
  margin-top: 32px;
}

.account :focus-visible {
  outline: 3px solid #c36e18;
  outline-offset: 4px;
}

@media(max-width:650px) {
  .account {
    padding-top: 24px;
  }
  .account-card {
    padding: 20px;
  }
  .account-order-row {
    display: block;
  }
  .account-order-total {
    margin-top: 20px;
  }
  .account-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-nav {
    gap: 18px;
  }
  .account-nav form {
    margin-left: 0;
  }
  .account-card li {
    margin-bottom: 12px;
  }
}
