/* features.customerAccounts + features.contactForm (plan hh2-shop-accounts-20261021, leg L3): /account/ and the /contact/ form. Loaded only on those two pages. */
.account-section { padding-bottom: 72px; }
.account-loading { margin: 0; padding: 28px 0; color: var(--muted); font-weight: 600; }
.account-notice { margin-bottom: 20px; }

/* ---------- signed-out views: side panel + card ---------- */
.account-grid { display: grid; gap: 24px; align-items: start; }
.account-side { padding: 28px; border-radius: var(--r-photo); background: var(--green-deep); color: var(--white); }
.account-side .eyebrow { margin: 0 0 12px; color: var(--mint-text); }
.account-side-title { margin: 0 0 16px; font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.15; }
.account-points { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.account-points li { position: relative; padding-left: 18px; line-height: 1.5; }
.account-points li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 10px; height: 2px; border-radius: 1px; background: var(--pink); }
.account-side .field-help { color: var(--mint-text); }
.account-side .text-link { color: var(--white); text-decoration-color: var(--pink); }
.account-card, .contact-form-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-photo); background: var(--card); }
.account-card h2, .contact-form-card h2 { margin: 0 0 6px; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.15; }

/* ---------- forms (shared with /contact/) ---------- */
.account-form { display: grid; gap: 6px; }
.account-form label { display: block; margin: 12px 0 6px; font-size: 16px; font-weight: 600; }
.account-form label.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 6px; font-size: 16px; }
.account-form label.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.account-form .field-help { margin: 2px 0 0; }
.account-form .button { justify-self: start; margin-top: 14px; }
.account-form select, .contact-form-card select {
  width: 100%; min-height: 48px; padding: 11px 40px 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background-color: var(--ground); color: var(--ink);
  font-family: inherit; font-size: 16px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green-deep) 50%), linear-gradient(135deg, var(--green-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.account-form select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.account-links { margin: 4px 0 0; font-size: 16px; }
.account-links a, .account-switch a, .account-form a { font-weight: 600; }
.account-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 16px; }
.account-or::before, .account-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.account-switch { margin: 18px 0 0; font-size: 16px; }
.account-sent { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.button.light { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.button.light:hover { background: var(--tint); border-color: var(--accent); color: var(--ink); }
.google-btn { width: 100%; gap: 10px; }
.stage-error[hidden], .account-status[hidden] { display: none; }
.account-status { margin: 12px 0 0; color: var(--green-text); font-weight: 600; font-size: 16px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- signed in ---------- */
.account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-who { margin: 0; color: var(--muted); }
.account-who strong { color: var(--ink); overflow-wrap: anywhere; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-bottom: 3px solid transparent; font-weight: 600; color: var(--muted); text-decoration: none; }
.account-tabs a:hover { color: var(--ink); }
.account-tabs a[aria-current="page"] { border-bottom-color: var(--green-deep); color: var(--ink); }
.account-panel { max-width: 860px; }
.account-panel h2 { margin: 0 0 8px; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.15; }
.account-panel .row, .reorder-notice .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reorder-notice { margin-bottom: 20px; }
.reorder-notice ul { margin: 8px 0 14px; padding-left: 20px; }

/* ---------- My orders ---------- */
.orders-list { display: grid; gap: 16px; margin-bottom: 20px; }
.order-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-photo); background: var(--card); }
.order-item .between { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.order-item .order-id { display: block; font-family: var(--display); font-size: 22px; }
.order-item .small { margin: 2px 0 0; font-size: 16px; }
.muted { color: var(--muted); }
.order-item .status { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--green-deep); font-size: 16px; font-weight: 700; }
/* T31 (hh2-design-pass): paid reads mint; owed (placed / awaiting payment) reads outlined, so paid vs owed shows at a glance. */
.order-item .status[data-status="paid"] { background: var(--mint); }
.order-item .status[data-status="placed"], .order-item .status[data-status="pending"] { background: var(--card); border: 1px solid var(--line-strong); color: var(--green-text); }
.order-meals { margin: 16px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.order-meals li { display: flex; align-items: center; gap: 12px; }
.order-meals img { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; flex: none; }
.order-meta { display: grid; gap: 6px; margin-bottom: 16px; font-size: 16px; }
.order-meta p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.order-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.orders-empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--r-photo); background: var(--tint); margin-bottom: 20px; }
.orders-empty .button { margin-top: 8px; }

/* ---------- My details ---------- */
.account-details { max-width: 640px; }
.account-notes { margin: 22px 0 8px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.account-notes legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font-weight: 700; }
/* ui-fix D3 U6: the floated legend sat under the help paragraph's box (24px overlap); clear the first line below it */
.account-notes legend + * { clear: both; }
.account-notes .pill { display: inline-flex; margin: 8px 0 0; }
.account-notes .text-button { margin-top: 12px; justify-self: start; }
.account-danger { max-width: 560px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.account-danger h2 { font-size: 22px; }
.text-button.danger { border-color: #a22934; color: #a22934; }
.text-button.danger:hover { background: #a22934; color: var(--white); }
.button.danger { background: #a22934; border-color: #a22934; }
.button.danger:hover { background: #7e1e27; border-color: #7e1e27; }
.delete-confirm { margin-top: 16px; padding: 18px; border: 1px solid #a22934; border-radius: var(--radius); background: #fff6f6; }
.delete-confirm p { margin: 0 0 14px; }

/* ---------- /contact/ form ---------- */
.contact-form-section { padding-top: 0; border-top: 0; }
.contact-form-card { max-width: 720px; }
/* D1 T35 / impeccable I3: an inline error needs a visible anchor (full red ring + tint, no side stripe), not red text alone. */
.contact-form-card .stage-error { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #a22934; border-left-width: 1px; background: #fff6f6; border-radius: var(--radius); }
.contact-success { padding: 8px 0; }
.contact-success:focus { outline: none; }
.contact-success h2 { color: var(--green-deep); }

@media (min-width: 900px) {
  .account-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; }
  .account-side { padding: 40px; }
  .account-card, .contact-form-card { padding: 40px; }
  .account-side-title { font-size: 38px; }
}
@media (max-width: 480px) {
  .account-card, .contact-form-card, .account-side { padding: 22px 18px; }
  .order-item { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .button.light, .account-tabs a { transition: none; } }
