/* ==========================================================================
   Account — sign in / register / reset, dashboard tabs, order detail
   ========================================================================== */
.acct { padding: calc(var(--nav-h) + clamp(48px, 6vw, 100px)) var(--gutter) clamp(80px, 10vw, 160px); min-height: 80vh; }
.acct__title { margin: clamp(12px, 2vw, 24px) 0 clamp(40px, 5vw, 80px); font-family: var(--serif); font-size: clamp(72px, 13vw, 230px); line-height: .84; letter-spacing: -.035em; }
.acct__title-i { font-style: italic; padding-left: .8em; }
.acct__forms { display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 7vw, 140px); }

.acct-form { flex: 1 1 320px; max-width: 520px; display: flex; flex-direction: column; gap: 22px; }
.acct-form--new { border-top: 1px solid var(--line); padding-top: 22px; }
.acct-form__title { font-family: var(--serif); font-size: 36px; line-height: 1; }
.acct-form__row { display: flex; justify-content: space-between; gap: 12px; }
.acct-form .field { gap: 8px; }
.btn-block--outline { background: none; color: var(--ink); border: 1px solid var(--ink); transition: background-color .35s, color .35s, letter-spacing .5s var(--ease); }
.btn-block--outline:hover { background: var(--ink); color: var(--bg); }

/* Dashboard */
.acct__meta { display: flex; justify-content: space-between; gap: 16px; }
.acct__hello { margin: clamp(12px, 2vw, 24px) 0 0; font-family: var(--serif); font-size: clamp(72px, 12vw, 210px); line-height: .86; letter-spacing: -.035em; overflow-wrap: anywhere; }
.acct__hello i { font-style: italic; }
.acct__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(32px, 4vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acct__tabs { display: flex; gap: clamp(16px, 2.4vw, 36px); overflow-x: auto; scrollbar-width: none; }
.acct__tabs::-webkit-scrollbar { display: none; }
.acct__tab { flex: none; background: none; border: 0; padding: 18px 0; font-size: 14px; color: var(--muted); cursor: pointer; background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: 0 calc(100% - 12px); background-size: 0% 1px; transition: background-size .5s var(--ease), color .3s; }
.acct__tab.is-active { color: var(--ink); background-size: 100% 1px; }
.acct__out button { padding: 18px 0; font-size: 13px; color: var(--muted); }
.acct__out button:hover { color: var(--ink); }
.acct__pane { transition: opacity .35s, transform .5s var(--ease); }
.acct__pane.is-leaving { opacity: 0; transform: translateY(8px); }
.acct__empty, .acct-saved { padding-top: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.acct__empty-title { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; }
.acct__empty-title i { font-style: italic; }

/* Orders list */
.acct-order { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px clamp(24px, 4vw, 64px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.acct-order__head { flex: 0 0 220px; display: flex; flex-direction: column; gap: 8px; }
.acct-order__no { font-family: var(--serif); font-size: 32px; line-height: 1; }
.acct-order__date { font-size: 13px; color: var(--muted); }
.acct-order__status { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 6px; }
.acct-order__status--lg { margin: 20px 0 0; font-size: 14px; }
.acct-order__dot { width: 7px; height: 7px; border-radius: 50%; background: #C7A24A; }
.status--shipped .acct-order__dot { background: #5E7FA8; }
.status--delivered .acct-order__dot { background: #4E8A5E; }
.status--cancelled .acct-order__dot { background: var(--error); }
.acct-order__items { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 12px; }
.acct-order__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-left: auto; font-size: 13px; }
.acct-order__total { font-size: 16px; }
.acct-item { display: grid; grid-template-columns: 64px auto; gap: 12px; align-items: center; padding-right: 16px; }
.acct-item__media { aspect-ratio: 4 / 5; }
.acct-item__text { display: flex; flex-direction: column; gap: 2px; }
.acct-item__name { font-size: 14px; }
.acct-item__sub { font-size: 12px; color: var(--muted); }
.acct-item--row { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* Addresses */
.acct-addr { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-top: clamp(24px, 3vw, 40px); }
.acct-addr__card { border: 1px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.6; }
.acct-addr__card .eyebrow { font-size: 10px; margin-bottom: 8px; }
.acct-addr__card--quiet { border-color: var(--line-strong); }
.acct-addr__note { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.acct-addr__note--dashed { min-height: 160px; justify-content: center; border: 1px dashed rgba(18, 19, 21, .3); }

/* Details */
.acct-details { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 120px); padding-top: clamp(24px, 3vw, 40px); }
.acct-details__col { flex: 1 1 320px; max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.acct-details__col .field { gap: 8px; }
.acct-details__col .input[readonly] { color: var(--body); }
.acct-details__link { align-self: flex-start; font-size: 13px; }
.acct-details__col .eyebrow { margin-bottom: -12px; }
.acct-pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 0; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.acct-pref__text { display: flex; flex-direction: column; gap: 3px; }
.acct-pref__desc { font-size: 12px; color: var(--muted); }
.acct-pref__switch { position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px; background: rgba(18, 19, 21, .2); transition: background-color .3s; }
.acct-pref__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); transition: transform .4s var(--ease-spring); }
.acct-pref[aria-checked="true"] .acct-pref__switch { background: var(--ink); }
.acct-pref[aria-checked="true"] .acct-pref__switch::after { transform: translateX(18px); }

/* Order detail */
.acct-detail { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 120px); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.acct-detail__lines { flex: 1.4 1 420px; min-width: 0; display: flex; flex-direction: column; }
.acct-detail__lines .co-totals { border-top: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; font-size: 14px; }
.acct-detail__lines .co-totals__row { display: flex; justify-content: space-between; gap: 16px; }
.acct-detail__lines .co-totals__total { align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.acct-detail__lines .co-totals__total .serif { font-size: 36px; line-height: 1; }
.acct-detail__side { flex: 1 1 300px; max-width: 440px; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.acct-detail__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; font-size: 13px; }

@media (max-width: 559px) {
  .acct-order__head { flex-basis: 100%; }
  .acct-order__side { flex-direction: row; align-items: baseline; margin-left: 0; width: 100%; justify-content: space-between; }
}
