/* FreshDrop — Google Sign-In + My orders */
.account-wrap { position: relative; }
.account-button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 10px;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.account-button:hover { background: var(--primary-soft); }
.account-button.is-in { padding: 0 14px 0 4px; }
.account-button.is-loading { width: 44px; padding: 0; justify-content: center; color: var(--muted); }
.account-button .icon { width: 20px; height: 20px; }
.g-logo { width: 20px; height: 20px; flex: none; }
.account-avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover;
  display: inline-grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink); font-weight: 800; font-size: 0.8125rem;
}
.account-avatar.lg { width: 44px; height: 44px; font-size: 1rem; }

.account-menu {
  position: fixed; z-index: 1150;
  width: 280px; padding: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: acct-pop 0.18s var(--ease-out, ease) both;
}
@keyframes acct-pop { from { opacity: 0; transform: translateY(-6px); } }
.account-menu-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.account-menu-head div { display: grid; min-width: 0; line-height: 1.3; }
.account-menu-head strong { color: var(--ink); }
.account-menu-head span { color: var(--muted); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 10px; border-radius: 10px;
  color: var(--ink); background: none; border: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none;
}
.account-menu a:hover, .account-menu button:hover { background: var(--surface); }
.account-menu .icon { width: 18px; height: 18px; color: var(--primary); }

.g-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  color: #1f1f1f; background: #fff;
  border: 1px solid #c7d0d2; border-radius: var(--r-pill);
  font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  transition: background 0.15s, box-shadow 0.15s;
}
.g-button:hover { background: #f6f9fa; box-shadow: 0 2px 8px rgb(0 0 0 / 0.08); }
.g-button-lg { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; }

.acct-form-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 20px; padding: 14px 16px;
  background: var(--primary-soft); color: var(--primary-ink);
  border-radius: 14px; font-size: 0.9375rem;
}
.acct-form-note p { flex: 1 1 220px; margin: 0; }
.acct-form-note a { color: inherit; font-weight: 700; }
.acct-form-note .account-avatar { background: var(--white); }
.acct-track .icon, .acct-track .g-logo { width: 18px; height: 18px; }

.acct-toasts { position: fixed; z-index: 1300; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.acct-toast { padding: 12px 16px; color: var(--white); background: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.9375rem; animation: acct-pop 0.2s both; }
.acct-toast.is-out { opacity: 0; transition: opacity 0.25s; }

/* ---- My orders page ---- */
.orders-wrap { padding: 8px 0 clamp(56px, 8vw, 96px); }
.my-orders { max-width: 760px; }
.orders-loading { display: flex; align-items: center; gap: 12px; padding: 40px 0; color: var(--muted); font-weight: 600; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: acct-spin 0.8s linear infinite; }
@keyframes acct-spin { to { transform: rotate(360deg); } }
.orders-signin, .orders-empty {
  display: grid; justify-items: center; gap: 10px;
  padding: clamp(32px, 6vw, 56px) 24px; text-align: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm);
}
.orders-signin p, .orders-empty p { max-width: 440px; margin: 0 0 8px; }
.orders-empty-icon { width: 56px; height: 56px; padding: 14px; color: var(--primary); background: var(--primary-soft); border-radius: 18px; }
.orders-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.orders-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.orders-who div { display: grid; line-height: 1.3; min-width: 0; }
.orders-who strong { color: var(--ink); }
.orders-who span { color: var(--muted); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; }
.orders-bar .icon { width: 16px; height: 16px; }
.orders-list { display: grid; gap: 14px; }
.order-card { padding: 18px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.order-card.is-closed { opacity: 0.8; }
.order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-card-head div { display: grid; line-height: 1.3; }
.order-ref { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: 0.01em; }
.order-date { color: var(--muted); font-size: 0.8125rem; }
.order-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.order-pill .icon { width: 14px; height: 14px; }
.order-pill.is-new { color: var(--warning); background: var(--warning-soft); }
.order-pill.is-done { color: var(--success); background: var(--success-soft); }
.order-pill.is-closed { color: var(--muted); background: var(--surface-2); }
.track-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 6px; padding: 0; list-style: none; counter-reset: s; }
.track-steps li { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; text-align: center; }
.track-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.track-steps li:first-child::before { display: none; }
.track-steps li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.track-steps li > span .icon { width: 16px; height: 16px; }
.track-steps li.is-on { color: var(--ink); }
.track-steps li.is-on > span { background: var(--success); color: var(--white); }
.track-steps li.is-on::before { background: var(--success); }
.track-steps li.is-now { color: var(--ink); }
.track-steps li.is-now > span { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.order-status-text { margin: 10px 0 0; font-size: 0.9375rem; }
.order-items { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border); list-style: none; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.order-items em { color: var(--muted); font-style: normal; }
.order-items strong, .order-total strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.order-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 600; }
.order-total strong { font-family: var(--font-display); font-size: 1.25rem; }
.order-topic { margin: 12px 0 0; color: var(--ink); font-weight: 600; }
.orders-foot { margin-top: 18px; color: var(--muted); font-size: 0.875rem; text-align: center; }

@media (max-width: 600px) {
  .account-label { display: none; }
  .account-button, .account-button.is-in { width: 44px; padding: 0; justify-content: center; }
  .order-card { padding: 16px; }
}
