:root {
  --account-paper: #fefaf5;
  --account-ink: #08152c;
  --account-blue: #1351aa;
  --account-orange: #ff751f;
  --account-line: rgba(8, 21, 44, 0.16);
  --account-soft-blue: rgba(19, 81, 170, 0.08);
}

.nav-account-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

.nav-account-link[aria-current="page"] {
  color: var(--account-orange) !important;
}

.account-page {
  color: var(--account-ink);
  background: var(--account-paper);
}

.account-hero {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 7vw, 120px);
  padding: clamp(70px, 9vw, 130px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--account-line);
  overflow: hidden;
}

.account-hero > div:first-child {
  max-width: 920px;
}

.account-hero h1 {
  max-width: 860px;
  margin: 24px 0 22px;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(58px, 7.2vw, 132px);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--account-blue);
}

.account-hero h1 em {
  display: block;
  color: var(--account-orange);
  font-style: normal;
}

.account-hero > div:first-child > p:last-child {
  max-width: 620px;
  margin: 0;
  font: 600 clamp(17px, 1.4vw, 22px)/1.5 "Manrope", sans-serif;
  color: #3c4961;
}

.account-hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: min(30vw, 390px);
  aspect-ratio: 1;
  justify-self: center;
}

.account-hero-mark::before,
.account-hero-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(19, 81, 170, 0.24);
}

.account-hero-mark::before {
  inset: 4%;
}

.account-hero-mark::after {
  inset: 20%;
  border-color: rgba(255, 117, 31, 0.42);
}

.account-hero-mark span {
  position: relative;
  z-index: 1;
  font-family: serif;
  font-size: clamp(92px, 12vw, 190px);
  line-height: 1;
  color: var(--account-blue);
}

.account-hero-mark i {
  position: absolute;
  width: 42%;
  height: 8px;
  right: 3%;
  bottom: 21%;
  background: var(--account-orange);
  transform: rotate(-12deg);
  transform-origin: right center;
}

.account-auth-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  min-height: 520px;
  border-bottom: 1px solid var(--account-line);
}

.account-auth-intro,
.account-auth-state {
  padding: clamp(44px, 6vw, 96px);
}

.account-auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: var(--account-blue);
}

.account-auth-intro > span {
  font: 500 14px/1 "DM Mono", monospace;
  color: rgba(255, 255, 255, 0.62);
}

.account-auth-intro h2 {
  margin: auto 0 18px;
  font: 800 clamp(38px, 4.2vw, 74px)/0.94 "Bricolage Grotesque", sans-serif;
  letter-spacing: 0;
}

.account-auth-intro p {
  max-width: 410px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font: 600 16px/1.55 "Manrope", sans-serif;
}

.account-auth-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.account-auth-state h2 {
  margin: 24px 0 10px;
  font: 800 clamp(34px, 3vw, 54px)/1 "Bricolage Grotesque", sans-serif;
  letter-spacing: 0;
}

.account-auth-state > p {
  max-width: 560px;
  margin: 0 0 32px;
  color: #536079;
  font: 500 17px/1.55 "Manrope", sans-serif;
}

.account-auth-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--account-orange);
}

.account-auth-form {
  width: min(100%, 540px);
}

.account-google-button {
  display: flex;
  align-items: center;
  width: min(100%, 420px);
  min-height: 44px;
  margin-top: 4px;
}

.account-google-button > div,
.account-google-button iframe {
  max-width: 100% !important;
}

.account-google-button.is-busy {
  min-height: 52px;
}

.account-google-button .account-loader {
  width: 32px;
  height: 32px;
}

.account-auth-form .button {
  margin-top: 8px;
}

.account-code-input {
  font: 700 26px/1 "DM Mono", monospace !important;
  letter-spacing: 0.18em !important;
}

.account-security-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #667188;
  font: 500 13px/1.4 "Manrope", sans-serif;
}

.account-text-action,
.account-logout {
  border: 0;
  padding: 0;
  color: var(--account-blue);
  background: transparent;
  font: 700 14px/1.2 "Manrope", sans-serif;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.account-auth-form .account-text-action {
  display: block;
  margin: 20px auto 0;
}

.account-auth-state--unavailable {
  background: rgba(255, 117, 31, 0.055);
}

.account-auth-state--unavailable .button {
  align-self: flex-start;
}

.account-auth-state--loading {
  align-items: flex-start;
}

.account-loader {
  width: 44px;
  height: 44px;
  border: 3px solid var(--account-soft-blue);
  border-top-color: var(--account-blue);
  border-radius: 50%;
  animation: account-spin 0.75s linear infinite;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.account-dashboard {
  background: #fff;
}

.account-profile,
.account-orders {
  padding: clamp(52px, 6vw, 96px) clamp(24px, 5vw, 80px);
}

.account-profile {
  background: var(--account-blue);
  color: #fff;
}

.account-profile .source-eyebrow,
.account-profile .source-eyebrow span:last-child {
  color: #fff;
}

.account-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 42px;
}

.account-section-head h2 {
  margin: 18px 0 10px;
  font: 800 clamp(38px, 4.6vw, 72px)/0.98 "Bricolage Grotesque", sans-serif;
  letter-spacing: 0;
}

.account-section-head p {
  max-width: 580px;
  margin: 0;
  color: #59667d;
  font: 500 16px/1.55 "Manrope", sans-serif;
}

.account-profile .account-section-head p {
  color: rgba(255, 255, 255, 0.73);
}

.account-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #fff;
}

.account-profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
}

.account-profile-form > div:last-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-profile-form .form-label {
  color: rgba(255, 255, 255, 0.72);
}

.account-profile-form .text-input {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.account-profile-form .text-input:focus {
  border-color: #fff;
  outline-color: rgba(255, 255, 255, 0.28);
}

.account-profile-form .button {
  min-height: 58px;
  color: var(--account-blue);
  background: #fff;
}

.account-profile-form .form-error {
  color: #fff;
}

.account-orders {
  background: var(--account-paper);
}

.account-order-count {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid var(--account-blue);
  color: var(--account-blue);
  font: 700 18px/1 "DM Mono", monospace;
}

.account-order-list {
  display: grid;
  gap: 24px;
}

.account-order-card {
  border: 1px solid var(--account-line);
  border-bottom: 6px solid var(--account-orange);
  background: #fff;
}

.account-order-card > header,
.account-order-card > footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}

.account-order-card > header {
  border-bottom: 1px solid var(--account-line);
}

.account-order-card > header > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.account-order-number {
  color: var(--account-blue);
  font: 800 22px/1 "Bricolage Grotesque", sans-serif;
}

.account-order-card time {
  color: #68738a;
  font: 500 13px/1 "DM Mono", monospace;
}

.account-status {
  padding: 8px 10px;
  border: 1px solid currentColor;
  color: var(--account-blue);
  font: 700 12px/1 "DM Mono", monospace;
  text-transform: uppercase;
}

.account-status--ready,
.account-status--completed {
  color: #008f4a;
}

.account-status--cancelled {
  color: #bd2f3d;
}

.account-status--issue {
  color: #b43f00;
  background: #fff3e8;
}

.account-order-card.has-order-issue {
  border-color: #ff751f;
  box-shadow: 0 12px 34px rgba(255, 117, 31, 0.12);
}

.account-order-issue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  margin: 0 28px;
  padding: 18px;
  color: #24160d;
  border: 1px solid #ffb889;
  background: #fff3e8;
}

.account-order-issue-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: #f05d0d;
}

.account-order-issue h3 { margin: 0; font-size: 17px; }
.account-order-issue p { max-width: 720px; margin: 7px 0 9px; color: #654533; font-size: 13px; line-height: 1.5; }
.account-order-issue small { display: block; font-size: 12px; }

.account-order-issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.account-order-issue-actions a {
  display: inline-flex;
  min-height: 40px;
  padding: 0 13px;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: #1351aa;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.account-order-issue-actions a:last-child { background: #087a44; }

.account-status-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 22px 28px 4px;
}

.account-status-track span {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 9px;
  color: #8a93a4;
}

.account-status-track span::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  right: -8px;
  height: 1px;
  background: #d7dce5;
}

.account-status-track span:last-child::before {
  display: none;
}

.account-status-track i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c8ced9;
  box-shadow: 0 0 0 1px #c8ced9;
}

.account-status-track small {
  font: 600 11px/1.25 "Manrope", sans-serif;
  white-space: nowrap;
}

.account-status-track .is-done {
  color: var(--account-blue);
}

.account-status-track .is-done::before,
.account-status-track .is-done i {
  background: var(--account-blue);
}

.account-status-track .is-done i {
  box-shadow: 0 0 0 1px var(--account-blue);
}

.account-status-track .is-current i {
  box-shadow: 0 0 0 4px rgba(19, 81, 170, 0.16);
}

.account-order-cancelled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 28px 0;
  color: #bd2f3d;
  font: 700 13px/1 "Manrope", sans-serif;
}

.account-order-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 48px;
  padding: 28px;
}

.account-order-body h3 {
  margin: 0 0 14px;
  font: 700 13px/1 "DM Mono", monospace;
  text-transform: uppercase;
}

.account-order-body ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-order-body li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #48556d;
  font: 500 14px/1.45 "Manrope", sans-serif;
}

.account-order-body li b {
  flex: 0 0 auto;
  color: var(--account-ink);
}

.account-order-body dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.account-order-body dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(8, 21, 44, 0.1);
}

.account-order-body dt,
.account-order-body dd {
  margin: 0;
  font: 600 13px/1.35 "Manrope", sans-serif;
}

.account-order-body dt {
  color: #6f798d;
}

.account-order-body dd {
  text-align: right;
}

.account-order-card > footer {
  border-top: 1px solid var(--account-line);
}

.account-order-card > footer > strong {
  font: 800 28px/1 "Bricolage Grotesque", sans-serif;
}

.account-empty {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding: 46px;
  border: 1px solid var(--account-line);
  background: #fff;
}

.account-empty p {
  max-width: 520px;
  margin: 0;
  color: #59667d;
  font: 500 16px/1.55 "Manrope", sans-serif;
}

.success-dialog .account-text-action {
  margin-top: 18px;
}

.success-dialog > .button {
  margin-top: 24px;
}

.checkout-submit-row .button[aria-busy="true"] svg {
  animation: account-spin 0.75s linear infinite;
}

.checkout-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 22px 0 4px;
  color: #536079;
  font: 500 13px/1.5 "Manrope", sans-serif;
  cursor: pointer;
}

.checkout-consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--account-blue);
}

@media (max-width: 1100px) {
  .account-profile-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-profile-form > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .account-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .account-hero h1 {
    font-size: clamp(48px, 14vw, 76px);
  }

  .account-hero-mark {
    width: min(70vw, 310px);
    margin: -8px auto -80px;
    opacity: 0.16;
  }

  .account-auth-band {
    grid-template-columns: 1fr;
  }

  .account-auth-intro {
    min-height: 250px;
  }

  .account-auth-state {
    min-height: 430px;
  }

  .account-profile-form,
  .account-order-body {
    grid-template-columns: 1fr;
  }

  .account-section-head {
    flex-direction: column;
  }

  .account-order-body {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .account-hero,
  .account-auth-intro,
  .account-auth-state,
  .account-profile,
  .account-orders {
    padding-left: 20px;
    padding-right: 20px;
  }

  .account-hero h1 {
    font-size: clamp(44px, 16vw, 68px);
  }

  .account-order-card > header,
  .account-order-card > footer,
  .account-order-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .account-order-card > header,
  .account-order-card > footer,
  .account-order-card > header > div {
    align-items: flex-start;
  }

  .account-order-card > header > div,
  .account-order-card > footer {
    flex-direction: column;
  }

  .account-order-card > footer .source-button {
    width: 100%;
  }

  .account-order-issue {
    grid-template-columns: 1fr;
    margin: 0 18px;
    padding: 15px;
  }

  .account-order-issue-actions a { width: 100%; justify-content: center; }

  .account-status-track {
    overflow-x: auto;
    grid-template-columns: repeat(5, 108px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .account-order-body li {
    align-items: flex-start;
  }

  .account-profile-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-loader,
  .checkout-submit-row .button[aria-busy="true"] svg {
    animation: none;
  }
}
