/* ============================================================
   LUMÉA — customer account additions
   Theme.css and pages.css already carry the design system and the
   account page classes. This file only adds what those files do
   not cover: the account page rhythm, the order tabs, the order
   detail grid, address actions and the form states of the area.
   Every colour comes from the palette tokens.
   ============================================================ */

/* ---------- page rhythm ---------- */
.account-page{padding:clamp(2.2rem,5vw,3.2rem) 0 clamp(3rem,7vw,5.5rem)}
.account-greeting .lede{margin-top:.8rem}
.account-greeting h1{font-size:clamp(1.9rem,3.6vw,2.6rem)}
.account-actions{margin-top:1.4rem}
.acc-body > .crumbs{margin-bottom:1.4rem}

/* ---------- auth card (pages.css styles .logo and the intro only) ---------- */
.auth-card h1{font-size:clamp(1.65rem,3.4vw,2.15rem);line-height:1.15;margin-bottom:.7rem}
.auth-links{
  display:flex;justify-content:space-between;align-items:center;gap:.8rem 1.2rem;
  flex-wrap:wrap;margin:0 0 1.5rem;
}
.auth-links .checkbox{font-size:.8rem;margin:0}
.auth-links a{font-size:.76rem;color:var(--gold-deep);border-bottom:1px solid transparent;padding-bottom:1px}
.auth-links a:hover{border-color:var(--gold-deep)}
.auth-actions{display:grid;gap:.7rem}
.auth-card .auth-terms{text-align:left;font-size:.78rem;color:var(--ink-mute);margin:.1rem 0 1.4rem}
.auth-card .form-note{font-size:.78rem;color:var(--ink-mute);margin-bottom:0}

/* ---------- order tabs ----------
   app.js drops the .chip class from every tab on the first click, so the
   tab owns its look instead of depending on .chip. */
.order-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.8rem}
.order-tabs button{
  padding:.5rem 1rem;border:1px solid var(--line);background:var(--white);
  font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft);
  transition:background var(--tr),border-color var(--tr),color var(--tr);
}
.order-tabs button:hover{border-color:var(--ink);color:var(--ink)}
.order-tabs button.active,
.order-tabs button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}

/* ---------- order table ---------- */
.order-id{color:var(--gold-deep);border-bottom:1px solid transparent}
.order-id:hover{border-color:var(--gold-deep)}
.order-cell-action{text-align:right;white-space:nowrap}
.order-filter-empty{border:0;border-top:1px solid var(--line);background:transparent;padding:2.6rem 1rem}

/* ---------- order detail ---------- */
.order-detail{
  display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);
  gap:2.4rem;align-items:start;margin-bottom:2.6rem;
}
.order-detail-main{min-width:0}
.order-detail .sb-head{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  margin-bottom:1.4rem;
}
.order-detail h2{font-size:1.5rem}
.order-aside{display:grid;gap:1.2rem;min-width:0}
.order-aside .form-card h2{font-size:1.2rem;margin-bottom:.9rem}
.order-totals{margin-top:.4rem;padding-top:.6rem}
.order-address{font-style:normal;font-size:.9rem;line-height:1.8;color:var(--ink-soft)}
.order-actions{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center}
.order-actions form{display:flex;margin:0}

/* ---------- address actions ----------
   The edit and delete links are rendered by the platform link filters, so
   they arrive as anchors: give them the look .addr-actions buttons have. */
.addr-actions a{
  font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-soft);border-bottom:1px solid transparent;padding-bottom:1px;
}
.addr-actions a:hover{color:var(--gold-deep);border-color:var(--gold-deep)}
.addr-actions .addr-delete a:hover{color:var(--danger);border-color:var(--danger)}
.addr-grid .empty{grid-column:1/-1}

/* ---------- address form ---------- */
.address-form .form-actions{display:flex;flex-wrap:wrap;gap:1.2rem;align-items:center;margin-top:1.6rem}
.form-cancel{
  font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-mute);border-bottom:1px solid transparent;padding-bottom:2px;
}
.form-cancel:hover{color:var(--ink);border-color:var(--ink)}

/* ---------- edit-address frame ---------- */
.address-edit-frame{margin:0;padding:1rem;background:var(--bg)}
.address-edit{max-width:640px;margin:0 auto}

/* ---------- visible keyboard focus ---------- */
.auth-card a:focus-visible,
.auth-card button:focus-visible,
.auth-card .input:focus-visible,
.account-page a:focus-visible,
.account-page button:focus-visible,
.account-page .input:focus-visible,
.address-edit a:focus-visible,
.address-edit button:focus-visible,
.address-edit .input:focus-visible{outline:2px solid var(--gold-deep);outline-offset:2px}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .account-page .acc-side{position:static}
  .order-detail{grid-template-columns:1fr;gap:1.8rem}
}
@media (max-width:600px){
  .account-page{padding-top:1.2rem}
  .auth-links{gap:.6rem}
  .order-tabs{gap:.4rem}
  .order-tabs button{padding:.45rem .7rem;font-size:.6rem;letter-spacing:.12em}
  .order-cell-action .btn{width:100%}
}
