/* The account uses the storefront's typography, palette and motion tokens. */
.account-main { min-height: 100svh; padding: calc(var(--header-height) + 48px) 0 96px; }
.account-wrap { width: min(1160px, calc(100% - 104px)); margin: 0 auto; }
.account-main h1 { font-size: clamp(48px, 5.5vw, 78px); }
.account-main h1 em, .account-main h2 em { color: var(--burgundy); }
.account-main h2, .account-modal h2 { font-size: 38px; }
.account-main h3 { font-size: 29px; }
.account-main p { color: var(--muted); }
.account-loading { padding: 90px 0; }
.account-loading h1 { margin: 18px 0 26px; }
.account-welcome { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 8%; padding: 30px 0; }
.account-welcome-copy h1 { margin: 20px 0 24px; max-width: 8ch; }
.account-welcome-copy > p { max-width: 34ch; font-size: 17px; }
.account-sign-in { padding: clamp(30px, 4vw, 54px); background: #f5eee3; border: 1px solid rgb(38 35 32 / 10%); border-radius: 10px; position: relative; }
.account-sign-in h2 { margin-bottom: 14px; }
.account-sign-in > p { max-width: 34ch; margin-bottom: 26px; }
.account-sign-in .button { width: 100%; justify-content: space-between; }
.account-perks { list-style: none; padding: 24px 0 0; margin: 25px 0 0; border-top: 1px solid var(--line); }
.account-perks li { padding: 7px 0; display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 14px; }
.account-perks svg { width: 19px; height: 19px; }
.account-mascot { width: 105px; height: 115px; object-fit: contain; margin: 26px 0 -10px; }
.account-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.account-heading .eyebrow { margin-bottom: 16px; }
.account-heading h1 { font-size: clamp(46px, 4.8vw, 66px); }
.account-heading > div > p:last-child { margin-top: 18px; font-size: 15px; }
.account-heading > a { white-space: nowrap; }
.account-connection-note { margin: 18px 0 0 !important; }
.account-settings { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.account-setting-row { padding: 22px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.account-setting-row:last-child { padding-bottom: 0; }
.account-setting-row h3 { font: 500 15px/1.6 var(--sans); margin-bottom: 5px; }
.account-setting-row > div { min-width: 0; }
.account-setting-row p { overflow-wrap: anywhere; font-size: 14px; }
.account-setting-row > a, .account-setting-row > button { white-space: nowrap; }
.account-session-end { margin-top: 22px; }
.account-sign-out { min-height: 44px; padding: 10px 22px; border: 1px solid rgb(38 35 32 / 30%); border-radius: 5px; background: transparent; color: var(--ink); font-size: 14px; transition: background 180ms ease, border-color 180ms ease; }
.account-sign-out:hover:not(:disabled) { background: rgb(198 217 195 / 25%); border-color: var(--forest); }
.account-sign-out:disabled { cursor: not-allowed; opacity: .6; }
.account-quiet-button { transition: color 180ms ease; }
.account-quiet-button:hover { color: var(--burgundy); }
.account-tabs button, .account-quiet-button { min-height: 44px; }
.account-address-empty { padding: 10px 0; }
.account-quiet-button { padding: 8px 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.account-tabs { display: flex; gap: 34px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.account-tabs button { padding: 14px 0 18px; background: transparent; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 180ms ease, border-color 180ms ease; }
.account-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.account-panel { animation: account-enter 360ms var(--ease) both; }
.account-panel-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.account-card { background: #f5eee3; border: 1px solid rgb(38 35 32 / 11%); border-radius: 9px; padding: 28px 30px; }
.account-details-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; align-items: start; }
.account-personal { display: grid; gap: 22px; }
.account-card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.account-card-top h2 { font-size: 31px; }
.account-fields { margin: 0; display: grid; gap: 22px; }
.account-fields dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.account-fields dd { margin: 0; overflow-wrap: anywhere; }
.account-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-inline a { white-space: nowrap; }
.account-small { font-size: 12px; line-height: 1.6; margin-top: 10px; }
.account-marketing { padding: 23px 0 0; margin-top: 26px; border-top: 1px solid var(--line); }
.account-marketing label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; cursor: pointer; }
.account-marketing input, .account-form input[type="checkbox"] { accent-color: var(--forest); width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; }
.account-marketing .account-quiet-button { margin-left: 29px; }
.account-address { border-top: 1px solid var(--line); padding: 22px 0; }
.account-address:first-of-type { border-top: 0; padding-top: 0; }
.account-address:last-child { padding-bottom: 0; }
.account-address h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.6; margin-bottom: 9px; }
.account-address address { font-style: normal; color: var(--muted); font-size: 14px; line-height: 1.75; }
.account-address-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.account-badge { display: inline-flex; background: var(--sage); padding: 4px 10px; border-radius: 30px; font: 11px/1.6 var(--sans); margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.account-empty { text-align: center; padding: 45px 24px; }
.account-empty img { height: 140px; width: 145px; object-fit: contain; margin: 0 auto 20px; }
.account-empty p { margin: 14px auto 24px; max-width: 39ch; }
.account-order { display: grid; grid-template-columns: 105px 1fr auto; gap: 28px; align-items: center; margin-bottom: 16px; }
.account-order-art { width: 105px; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.account-order .eyebrow { font-size: 10px; margin-bottom: 10px; }
.account-order h3 { font-size: 28px; margin-bottom: 9px; }
.account-order p { font-size: 13px; }
.account-order-end { display: flex; align-items: flex-end; flex-direction: column; gap: 15px; }
.account-order-end strong { font-weight: 500; }
.account-order details { margin-top: 9px; font-size: 13px; }
.account-order details summary { cursor: pointer; color: var(--muted); }
.account-order ul { margin: 9px 0 0; padding-left: 18px; }
.account-order-filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 22px; }
.account-order-filters button { min-height: 44px; padding: 10px 20px; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; transition: background 200ms ease, color 200ms ease; }
.account-order-filters button:hover { color: var(--ink); background: rgb(198 216 193 / 25%); }
.account-order-filters button[aria-pressed="true"] { background: var(--sage); color: var(--ink); }
.account-purchase-type { margin: 0 0 10px; }
.account-line-plan { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 7px; }
.account-result-count { margin: 0 0 14px; }
.account-subscriptions { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; background: rgb(198 216 193 / 28%); }
.account-subscriptions .eyebrow { margin-bottom: 12px; }
.account-subscriptions h3 { margin-bottom: 12px; }
.account-subscriptions p { max-width: 48ch; font-size: 14px; }
.account-subscriptions .account-small { font-size: 12px; }
.account-subscriptions .button { flex-shrink: 0; }
.account-subscriptions .button:disabled, .account-form-actions .button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.account-history-note { margin-bottom: 26px; max-width: 70ch; }
.account-load-more { display: block; margin: 28px auto 0; }
.account-feedback { border-left: 2px solid var(--burgundy); padding: 10px 16px; margin-bottom: 24px; color: var(--ink) !important; background: rgb(238 210 189 / 25%); }
.account-preview-notice { width: min(1160px,calc(100% - 104px)); margin: -25px auto 30px; font-size: 12px; padding: 10px 14px; background: var(--sage); display: flex; justify-content: space-between; gap: 15px; border-radius: 4px; }
.account-preview-notice a { text-decoration: underline; text-underline-offset: 3px; }
.account-modal { width: min(570px,calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); overflow-y: auto; }
.account-modal::backdrop { background: rgb(38 35 32 / 36%); backdrop-filter: blur(4px); }
.account-modal[open] { animation: account-enter 280ms var(--ease) both; }
.account-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.account-modal .icon-button { background: transparent; font-size: 28px; }
.account-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 19px; }
.account-form label { display: grid; gap: 7px; font-size: 13px; }
.account-form label small { color: var(--muted); font-size: 11px; }
.account-form input:not([type="checkbox"]), .account-form select { width: 100%; border: 1px solid var(--line); background: #f9f4ed; color: var(--ink); min-height: 48px; padding: 11px 13px; border-radius: 5px; font-size: 16px; transition: border-color 180ms ease, background 180ms ease; }
.account-form input:focus, .account-form select:focus { border-color: var(--ink); background: #fffaf3; }
.account-form input:focus-visible, .account-form select:focus-visible { outline-offset: 2px; }
.account-form-row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; }
.account-form .account-check { display: flex; align-items: center; gap: 10px; }
.account-form-actions { display: flex; justify-content: flex-end; gap: 23px; align-items: center; margin-top: 28px; }
.account-form-actions .button { min-height: 47px; padding: 13px 24px; }
.account-form-error { color: var(--burgundy); margin-top: 16px; font-size: 14px; }
.account-form label .account-field-error { color: var(--burgundy); font-size: 12px; line-height: 1.5; }
.account-form input[aria-invalid="true"], .account-form select[aria-invalid="true"] { border-color: var(--burgundy); }
.account-modal p { line-height: 1.7; }
.account-order-artwork { display: grid; gap: 6px; align-content: start; }
.account-order-artwork .account-order-art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.account-order-artwork:has(img:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-order-artwork:has(img:nth-child(3)) img:last-child { grid-column: 1 / -1; width: 65%; justify-self: center; }
.account-order-modal { width: min(680px, calc(100% - 32px)); }
.account-order-detail .account-modal-header { margin-bottom: 16px; }
.account-order-detail .eyebrow { margin-bottom: 8px; }
.account-order-status { color: var(--muted); font-size: 13px; }
.account-order-status .account-badge { margin: 0 12px 8px 0; }
.account-detail-items { list-style: none; margin: 24px 0; padding: 0; }
.account-detail-items li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.account-detail-items img { width: 84px; height: 84px; object-fit: cover; border-radius: 5px; }
.account-detail-items h3 { font: 24px/1.2 var(--display); }
.account-detail-items p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.account-detail-items strong { font-size: 14px; white-space: nowrap; }
.account-order-totals { margin: 0 0 24px auto; max-width: 320px; }
.account-order-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; }
.account-order-totals dd { margin: 0; }
.account-order-totals .account-order-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-weight: 600; }
.account-order-delivery { padding: 20px; background: rgb(198 216 191 / 25%); border-radius: 6px; }
.account-order-delivery h3 { font: 26px/1.2 var(--display); margin-bottom: 12px; }
.account-order-delivery address { font-style: normal; font-size: 14px; line-height: 1.6; }
@media(max-width: 480px) {
  .account-detail-items li { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .account-detail-items img { width: 62px; height: 62px; }
  .account-detail-items strong { grid-column: 2; }
  .account-detail-items h3 { font-size: 22px; }
}
@keyframes account-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width: 760px) {
  .account-main { padding: calc(var(--header-height) + 38px) 0 64px; }
  .account-wrap, .account-preview-notice { width: calc(100% - 36px); }
  .account-welcome { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .account-welcome-copy h1 { max-width: none; font-size: 52px; }
  .account-welcome-copy > p { max-width: 36ch; }
  .account-mascot { display: none; }
  .account-sign-in { padding: 28px; }
  .account-heading { align-items: flex-start; gap: 12px; }
  .account-heading { flex-direction: column; gap: 20px; }
  .account-settings { grid-template-columns: 1fr; gap: 22px; }
  .account-tabs { gap: 20px; }
  .account-tabs button { font-size: 13px; }
  .account-card-top h2 { font-size: 29px; }
  .account-setting-row { gap: 12px; }
  .account-heading h1 { font-size: 45px; }
  .account-tabs { gap: 26px; margin-bottom: 26px; }
  .account-details-grid { grid-template-columns: 1fr; gap: 22px; }
  .account-card { padding: 23px; }
  .account-order { grid-template-columns: 70px 1fr; gap: 17px; }
  .account-order-art { width: 70px; }
  .account-order-end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
  .account-order h3 { font-size: 26px; }
  .account-order-filters { display: flex; }
  .account-order-filters button { flex: 1; padding: 10px 12px; }
  .account-subscriptions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .account-form-actions { gap: 16px; }
  .account-form-actions .button { padding: 13px 18px; }
  .account-inline { align-items: flex-start; }
  .account-modal { padding: 24px; }
  .account-form-row { gap: 12px; }
}
@media(prefers-reduced-motion:reduce) { .account-panel, .account-modal[open] { animation: none; } .account-tabs button, .account-order-filters button, .account-sign-out, .account-form input, .account-form select { transition: none; } }
.motion-paused .account-panel, .motion-paused .account-modal[open] { animation: none; }

/* Live subscription schedules, separate from completed order history. */
.account-subscription-panel .account-subscriptions { margin: 0; background: none; }
.account-subscription-list { margin-top: 28px; }
.account-subscription { display: grid; grid-template-columns: 108px minmax(0, 1fr) minmax(190px, .8fr); gap: 24px; align-items: center; border-top: 1px solid var(--line); padding: 26px 0; }
.account-subscription-panel .button { border: 1px solid var(--line); border-radius: 4px; }
.account-subscription h4 { margin: 10px 0; font-family: var(--display); font-size: 28px; font-weight: 400; }
.account-subscription ul { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.account-subscription-date .eyebrow { margin-bottom: 10px; font-size: 11px; }
.account-subscription-date .account-next-date { font-family: var(--display); font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.account-subscription-date .account-small { max-width: 29ch; }
.account-portal-note { margin-top: 22px; }
@media (max-width: 700px) {
  .account-subscription { grid-template-columns: 80px minmax(0, 1fr); gap: 18px; }
  .account-subscription-date { grid-column: 1 / -1; }
  .account-subscription-date .account-small { max-width: none; }
  .account-subscription-panel .account-subscriptions .button { width: 100%; }
}

.account-cancel-subscription { margin-top: 18px; min-height: 44px; padding: 11px 18px; font-size: 12px; }
.account-cancel-subscription:disabled { cursor: wait; opacity: .5; }
.account-cancel-products { padding-left: 20px; margin: 14px 0 22px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.button.account-confirm-cancel { background: var(--burgundy); }
.button.account-confirm-cancel:hover { background: #64343d; }
.account-delivery-history { margin-top: 32px; }
.account-delivery-history > h3 { margin-bottom: 20px; }
.account-fulfillment-date { margin: 8px 0; font-size: 13px; }
.account-final-delivery-note { color: var(--burgundy); }
@media (max-width: 480px) {
  .account-form-actions:has(.account-confirm-cancel) { flex-direction: column-reverse; align-items: stretch; gap: 16px; text-align: center; }
}
