/* ==========================================================================
   Order confirmed, track order, sign in, my account
   Same card language as product page and checkout.
   ========================================================================== */

.narrow { max-width: 760px; padding-block: var(--sp-7) var(--sp-8); display: grid; gap: var(--sp-5); }
.narrow > header { display: grid; gap: var(--sp-2); }
.narrow > header .eyebrow { margin-bottom: 0; }

.card {
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 640px) { .card { padding: var(--sp-6); } }
.card h2 { font-size: var(--fs-xl); }

/* ---------- Order confirmed ---------- */
.confirm-hero { display: grid; justify-items: center; text-align: center; gap: var(--sp-3); padding-block: var(--sp-4) var(--sp-2); }
.confirm-hero .eyebrow { margin-bottom: 0; }
.confirm-hero .lead { margin-inline: auto; }
.confirm-hero__check {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--black);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--lime) 30%, transparent);
  font-size: 32px; font-weight: 800;
  animation: pop-in 600ms var(--ease) both;
}
@keyframes pop-in { from { transform: scale(0.4); opacity: 0; } }
.confirm-wa { background: #eefaf2; box-shadow: inset 0 0 0 1px #bfe6cc; }
.confirm-wa .h3 { font-size: var(--fs-xl); }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }

.mini-items { display: grid; gap: var(--sp-3); }
.mini-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); font-weight: 600; }
.mini-items img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.mini-items small { color: var(--ink-muted); }
.mini-items--plain li { grid-template-columns: 1fr auto; }

/* ---------- Track order ---------- */
.track-form { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .track-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.track-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }
.track-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); font-size: var(--fs-sm); }
.track-meta div { padding: var(--sp-3); border-radius: var(--radius); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.track-meta small { display: block; color: var(--ink-muted); font-size: var(--fs-xs); font-weight: 500; }
.form-msg { font-size: var(--fs-sm); color: var(--err-ink); }
.form-msg:empty { display: none; }

/* ---------- Sign in ---------- */
.auth { max-width: 460px; }
.auth > header { justify-items: center; text-align: center; }
.auth .card { gap: var(--sp-4); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.auth-divider { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink-faint); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-ok { padding: var(--sp-4); border-radius: var(--radius); background: color-mix(in srgb, var(--lime) 22%, var(--bg-elev)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lime) 70%, var(--ink) 10%); font-size: var(--fs-sm); }
.auth-ok a { color: var(--accent-text); font-weight: 700; word-break: break-all; }
#google-btn { min-height: 44px; display: flex; justify-content: center; }

/* ---------- My account ---------- */
.acct-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: var(--sp-3); }
.acct-head .eyebrow { margin-bottom: var(--sp-2); }
.acct-orders { display: grid; gap: var(--sp-3); }
.acct-order {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.acct-order__top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); }
.acct-order__top strong { font-size: var(--fs-md); }
.acct-order__top .status-badge { margin-left: auto; }
.acct-order ul { font-size: var(--fs-sm); color: var(--ink-muted); display: grid; gap: 2px; }
.acct-order__progress summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); }
.acct-order__progress summary:hover { color: var(--ink); }
.acct-order__progress[open] summary { margin-bottom: var(--sp-4); }
.acct-order__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); flex-wrap: wrap; padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.acct-order__foot .price { font-size: var(--fs-lg); }
.acct-empty { text-align: center; color: var(--ink-muted); padding: var(--sp-6) 0; display: grid; gap: var(--sp-3); justify-items: center; }
