/* Account and checkout continue the storefront's white paper and mint passes. */
.account-header .account-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  min-height: 88px;
  padding-block: 16px;
}

.account-nav, .recovery-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
  font-weight: 600;
}

.account-nav a, .recovery-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.account-nav a:hover, .recovery-nav a:hover,
.account-nav a[aria-current="page"] {
  color: var(--brand, #155b66);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.account-main { padding-block: 48px 80px; }
.account-content { max-width: 960px; --receipt-line: #bdcec8; --receipt-mint: #d5e9df; }
.account-content h1 {
  margin: 0 0 16px;
  font-family: "Golos Text", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.account-content p { line-height: 1.6; }
.account-content > p { max-width: 64ch; color: var(--muted, #526b73); }
.account-content a:not(.primary-button) { text-underline-offset: 4px; }
.account-content > p a, .account-content form a, .account-text-link { text-decoration: underline; }
.account-content > h2 { margin-block: 32px 16px; font-size: 24px; }
.account-heading {
  margin-block-end: 18px;
  padding: 32px;
  border-radius: 18px 36px 18px 18px;
  background: var(--receipt-mint);
}
.account-heading > p:last-child { margin: 0; color: var(--muted, #526b73); max-width: 54ch; }
.account-heading .account-eyebrow {
  margin: 0 0 12px;
  color: var(--brand, #155b66);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.account-profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 22px 28px;
  border: 1px solid var(--line, #c9d7db);
  border-radius: 14px;
  background: var(--paper, #fff);
}

.account-profile > div { min-width: 0; }
.account-profile span { display: block; margin-block-end: 4px; color: var(--muted, #526b73); font-size: 13px; }
.account-profile strong { display: block; overflow-wrap: anywhere; font-size: 16px; font-weight: 600; }
.account-settings { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.account-settings a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; }
.account-settings a:hover { color: var(--brand, #155b66); }
.account-messages { margin: 0 0 24px; padding: 16px 20px; list-style: none; background: #e5efeb; border: 1px solid #c1d5c9; border-radius: 10px; }
.account-messages li + li { margin-block-start: 8px; }

.account-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.account-content select, .account-content textarea,
.checkout input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.checkout select, .checkout textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 16px;
  padding: 12px 14px;
  border: 1px solid #a6bcb5;
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink, #12363f);
  font: 400 16px/1.5 "Golos Text", sans-serif;
}

.account-content textarea, .checkout textarea { min-height: 112px; resize: vertical; }
.account-content input[type="checkbox"], .account-content input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  accent-color: var(--brand, #155b66);
}

.account-content label, .checkout label { color: var(--ink, #12363f); font-size: 15px; font-weight: 600; }
.account-content form { max-width: 620px; }
.account-content > form {
  margin-block: 28px;
  padding: 28px;
  border: 1px solid var(--line, #c9d7db);
  border-radius: 16px;
  background: #fff;
}
.account-content > form > p:first-child { margin-block-start: 0; }
.account-content > form > :last-child { margin-block-end: 0; }
.account-content form > p { margin-block: 16px; }
.account-content form ul { padding-inline-start: 20px; color: var(--muted, #526b73); font-size: 14px; line-height: 1.55; }
.account-content .errorlist, .account-content .field-error { color: #9a3425; }
.account-content [aria-invalid="true"], .checkout [aria-invalid="true"] { border-color: #9a3425; }
.account-content button, .checkout button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink, #12363f);
  border-radius: 8px;
  background: var(--ink, #12363f);
  color: #fff;
  font: 600 15px/1.4 "Golos Text", sans-serif;
  text-align: center;
  cursor: pointer;
}

.account-content button:hover, .checkout button:hover { background: var(--brand, #155b66); }
.account-content > form button[type="submit"],
.checkout-customer-fields > button[type="submit"] {
  border-color: #ef987b;
  background: #ef987b;
  color: var(--ink, #12363f);
}
.account-content > form button[type="submit"]:hover,
.checkout-customer-fields > button[type="submit"]:hover { background: #f3aa91; border-color: #f3aa91; }
.account-content button[aria-disabled="true"], .checkout button[aria-disabled="true"] { opacity: .72; cursor: progress; }
button:disabled { cursor: not-allowed; opacity: .6; }
.account-content :focus-visible, .checkout :focus-visible { outline: 3px solid var(--brand, #155b66); outline-offset: 3px; }
.account-content :is(h2,h3):focus { outline-offset: 6px; }

.orders-section { margin-block-start: 40px; }
.orders-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-block-end: 18px; }
.orders-heading h2 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.orders-heading > span { margin-inline-start: auto; color: var(--muted, #526b73); font-size: 13px; }
.orders-list { display: grid; justify-items: start; gap: 36px; }
.order-row { width: 100%; max-width: 680px; min-width: 0; }
.order-receipt {
  position: relative;
  padding: 26px 30px 28px;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  background-color: var(--receipt-paper, #fffefb);
  background-image: linear-gradient(rgb(255 254 251 / 55%), rgb(255 254 251 / 55%)), var(--paper-grain, url("paper-grain.dfa10edb9e5a.svg"));
  background-size: auto, 144px 144px;
  box-shadow: 0 0 0 1px rgb(18 54 63 / 8%), 0 6px 18px rgb(18 54 63 / 4%);
  font-variant-numeric: tabular-nums;
}
.order-receipt::after {
  content: '';
  position: absolute;
  inset: auto -1px -7px;
  height: 8px;
  background: var(--receipt-paper, #fffefb);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0H12V2L6 8L0 2Z' fill='white'/%3E%3C/svg%3E") 0 0 / 12px 8px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0H12V2L6 8L0 2Z' fill='white'/%3E%3C/svg%3E") 0 0 / 12px 8px repeat-x;
  pointer-events: none;
}
.order-receipt-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-block-end: 24px; color: var(--muted, #526b73); font-size: 12px; }
.order-receipt-brand { color: var(--ink, #12363f); font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -.04em; }
.order-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.order-heading h3 { margin: 0 0 7px; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.order-date { color: var(--muted, #526b73); font-size: 13px; line-height: 1.5; }
.order-state { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 10px; border-radius: 4px; background: var(--soft, #e6f0f0); font-size: 13px; line-height: 1.5; font-weight: 600; }
.order-state::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; align-self: center; border-radius: 50%; background: currentColor; }
.order-state[data-state="delivered"] { background: #dfede4; color: #245c42; }
.order-state[data-state="awaiting_payment"], .order-state[data-state="needs_reconciliation"] { background: #fbe5dc; color: #804331; }
.order-lines { display: grid; gap: 22px; list-style: none; margin: 22px 0; padding: 22px 0 0; border-top: 1px dashed var(--receipt-rule, var(--receipt-line)); }
.order-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 5px 20px; min-width: 0; }
.order-lines .order-line-title { grid-column: 1 / -1; font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.order-lines span { font-size: 13px; line-height: 1.5; }
.order-line-quantity, .order-line-progress { color: var(--muted, #526b73); }
.order-lines .order-line-amount { text-align: end; font-weight: 600; white-space: nowrap; }
.order-line-progress { grid-column: 1 / -1; margin-block-start: 2px; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding-block-start: 22px; border-top: 1px dashed var(--receipt-rule, var(--receipt-line)); }
.order-total > span { font-size: 15px; font-weight: 600; }
.order-total strong { font-size: clamp(28px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.order-actions { padding: 28px 16px 0; }
.order-delivery { margin-block: 18px; padding: 18px; border-radius: 10px; background: #edf4ef; }
.order-delivery h4 { margin: 0 0 12px; font-size: 15px; }
.order-delivery pre { margin: 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; border: 1px solid #b9cec3; border-radius: 6px; background: #fff; font-size: 15px; line-height: 1.6; user-select: all; }
.order-delivery pre + pre { margin-block-start: 10px; }
.order-delivery[hidden], .orders-more[hidden] { display: none; }
.order-support { margin-block-start: 12px; }
.order-support[open] { margin-block-start: 18px; }
.order-support summary { width: fit-content; max-width: 100%; min-height: 44px; padding-block: 11px; color: var(--brand, #155b66); font-size: 14px; font-weight: 600; cursor: pointer; }
.order-support summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.order-support summary::marker { color: var(--brand, #155b66); }
.order-refund { margin-block-start: 10px; padding: 22px; border: 1px solid #d5e2dc; border-radius: 12px; background: #f2f7f3; }
.order-refund textarea { margin-block-end: 8px; }
.order-refund .field-hint { margin: 0 0 16px; }
.order-refund .field-error { margin: 0 0 16px; font-size: 14px; }
.order-message, .order-error { padding: 12px 14px; border-radius: 8px; margin: 16px 0 0; font-size: 14px; }
.order-message { background: #e5efeb; }
.order-error { color: #9a3425; background: #fff0eb; }
.order-message:empty, .order-error:empty, .field-error:empty { display: none; }
.orders-more { margin-block-start: 24px; }
.account-state { padding: 44px 28px; border: 1px solid #d3dfd9; border-radius: 18px; background: #fff; text-align: center; }
.account-state h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.account-state p { max-width: 48ch; margin: 0 auto 24px; color: var(--muted, #526b73); }
.account-state .account-text-link { display: block; margin-block-start: 20px; }
.account-message { max-width: 720px; margin-inline: auto; padding-block: 56px; }
.account-message h1 { font-size: clamp(30px, 4vw, 42px); }
.account-footer { border-top: 1px solid var(--line, #c9d7db); }
.account-footer > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px; font-size: 13px; color: var(--muted, #526b73); }
.account-footer a { text-decoration: underline; text-underline-offset: 4px; }

.checkout { --receipt-line: #bdcec8; margin-block: 32px 0; padding: 32px; border: 1px solid #c3dbce; border-radius: 18px; background: #e0eee5; }
.checkout-heading, .checkout > h2 { margin: 0 0 16px; }
.checkout h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; }
.checkout p { max-width: 65ch; line-height: 1.6; }
.checkout-heading p, .checkout > p { color: var(--muted, #526b73); font-size: 15px; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 24px; }
.checkout-fields > div { min-width: 0; }
.checkout-fields select { margin-block-end: 8px; }
.field-hint { margin: 6px 0 16px; color: var(--muted, #526b73); font-size: 13px; line-height: 1.5; }
.checkout-status { margin-block: 18px 0; padding: 16px 18px; border: 1px dashed #afc9bb; border-radius: 10px; background: #f5faf6; font-size: 14px; line-height: 1.5; }
.checkout-feedback { margin-block-start: 18px; }
.checkout-status:empty, .checkout-feedback:empty, .checkout-actions:empty { display: none; }
.checkout-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-block: 18px; }
.checkout-actions a { text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.checkout-quote { margin-block-start: 28px; padding: 28px; border: 1px solid #d3dfd9; border-radius: 16px; background: #fff; }
.checkout-quote:empty { display: none; }
.checkout-quote[hidden] { display: none; }
.checkout-quote h3 { margin: 0 0 22px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.checkout-lines { display: grid; gap: 16px; padding: 20px 0 0; margin: 0 0 22px; border-top: 1px dashed var(--receipt-line); list-style: none; }
.checkout-lines li { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 15px; line-height: 1.5; }
.checkout-lines li > span { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.checkout-lines strong { font-variant-numeric: tabular-nums; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; padding-block-start: 20px; border-top: 1px dashed var(--receipt-line); }
.checkout-total > span { color: var(--muted, #526b73); font-size: 14px; }
.checkout-total strong { font-size: clamp(30px, 3.3vw, 38px); line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.checkout-customer-fields { max-width: 620px; margin-block-start: 24px; }
.checkout-customer-fields button { margin-block-start: 8px; }
.catalog-error { padding-block: 56px; }
.catalog-error h1 { max-width: 18ch; }
.catalog-error > p { max-width: 55ch; color: var(--muted, #526b73); line-height: 1.6; }
.catalog-error > a, .catalog-error > button { margin-block-start: 20px; }

@media (max-width: 600px) {
  .account-header .account-header-inner { gap: 12px; padding-block: 16px 10px; }
  .account-nav { width: 100%; gap: 4px 24px; border-top: 1px solid var(--line, #c9d7db); padding-block-start: 6px; }
  .account-nav a { min-height: 42px; font-size: 14px; }
  .account-main { padding-block: 32px 56px; }
  .account-heading { margin-block-end: 16px; padding: 24px 20px; border-start-end-radius: 30px; }
  .account-profile { padding: 18px; gap: 12px; }
  .account-settings { gap: 0 18px; }
  .orders-section { margin-block-start: 32px; }
  .orders-heading h2 { font-size: 23px; }
  .orders-heading > span { margin-inline-start: 0; }
  .order-receipt { padding: 22px 20px 25px; }
  .order-receipt-label { margin-block-end: 22px; }
  .order-heading h3 { font-size: 22px; }
  .order-lines { gap: 17px; padding-block-start: 18px; }
  .order-lines li { column-gap: 10px; }
  .order-line-quantity { max-width: 22ch; }
  .order-total { gap: 8px 14px; }
  .order-actions { padding: 26px 4px 0; }
  .order-refund { padding: 16px; }
  .account-state { padding: 32px 20px; }
  .account-state h3 { font-size: 22px; }
  .account-footer > div { flex-direction: column; gap: 12px; }
  .account-content > form { padding: 22px 18px; }
  .checkout { padding: 22px 18px; }
  .checkout-quote { padding: 22px 18px; margin-inline: -6px; }
  .checkout-fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .checkout h2 { font-size: 24px; }
  .checkout-lines li > span { flex-basis: 100%; }
  .recovery-nav { gap: 8px 20px; }
}

@media (forced-colors: active) {
  .account-content :focus-visible, .checkout :focus-visible { outline-color: Highlight; }
  .order-state { border: 1px solid currentColor; }
}
