/*
 * Customer store chrome. Quiet Cart paper Keep from fo-ui-kit.
 * Soft-entry fruit, mist, and guest-entry chrome are retired.
 * Motion: --fb-dur-fast 160ms --fb-ease-out. Reduced motion zeros duration tokens.
 */

@import "../../../design/flavourburst-ui-kit/tokens/tokens.css";

.guest-tier-banner {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 12px 12px 14px;
  border: var(--fb-stroke-hair) solid var(--border-hairline);
  border-radius: var(--fb-radius-card);
  background: var(--bg-surface);
  color: var(--fg-default);
}

.guest-tier-kicker {
  margin: 0;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-tier-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guest-tier-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin: 0;
  padding-top: 8px;
  border-top: var(--fb-stroke-pipe) solid transparent;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}

.guest-tier-price-qty {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.guest-tier-price-fig {
  color: var(--fg-secondary);
  font-weight: 600;
}

.guest-tier-price[data-active="true"] {
  border-top-color: var(--accent-fill);
  color: var(--accent-text);
}

.guest-tier-price[data-active="true"] .guest-tier-price-fig {
  color: var(--accent-text);
}

.guest-tier-rule,
.guest-tier-next {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.guest-tier-next {
  color: var(--fg-secondary);
  font-weight: 600;
}

.guest-store {
  --paper: var(--fb-paper-0);
  --paper-deep: var(--fb-paper-0);
  --ink: var(--fb-ink-900);
  --ink-strong: var(--fb-ink-900);
  --muted: var(--fg-muted);
  --line: var(--border-hairline);
  --card: var(--bg-surface);
  --save: var(--status-ok-fg);
  --danger: var(--status-danger-fg);
  --warn-bg: var(--status-warn-bg);
  --warn-ink: var(--status-warn-fg);
  --ease: var(--fb-ease-out);
  --dur: var(--fb-dur-fast);
  min-height: 100svh;
  margin: 0;
  padding: 20px 16px 48px;
  background: var(--bg-canvas);
  color: var(--fg-default);
  font-family: var(--font-dm-sans), "DM Sans", var(--fb-font-body);
  font-size: 16px;
  line-height: 1.45;
}

.guest-store.guest-store--shop {
  padding-top: 20px;
}

html:has(.guest-store),
body:has(.guest-store) {
  background: var(--bg-canvas);
}

.guest-store * { box-sizing: border-box; }

.guest-store button,
.guest-store input,
.guest-store select,
.guest-store textarea {
  font: inherit;
  color: inherit;
}

.guest-bar,
.guest-progress,
.guest-checkout {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

.guest-store--wide .guest-bar,
.guest-store--wide .guest-progress,
.guest-store--wide .guest-checkout {
  width: min(100%, 1080px);
}

.guest-store--checkout .guest-bar,
.guest-store--checkout .guest-progress,
.guest-store--checkout .guest-checkout {
  width: min(100%, 980px);
}

.guest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.guest-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.guest-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-fill);
  color: var(--fg-on-accent);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-fill) 18%, transparent);
}

.guest-word {
  font-size: 11px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.guest-steps {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.guest-steps-label {
  color: var(--ink-strong);
  font-weight: 600;
}

.guest-steps-of { color: var(--muted); }

.guest-progress {
  height: 2px;
  margin-bottom: 20px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.guest-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width var(--dur) var(--ease);
}

.guest-product-card,
.guest-card,
.guest-item {
  background: var(--bg-surface);
  color: var(--fg-default);
  border: var(--fb-stroke-hair) solid var(--border-hairline);
  border-radius: var(--fb-radius-card);
  box-shadow: var(--shadow-card);
}

.guest-card {
  padding: 22px 18px 18px;
}

.guest-product-card:focus-within,
.guest-item:focus-within {
  border-color: var(--border-focus);
}

.guest-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-title {
  margin: 0;
  font-family: "GM Sans", var(--font-dm-sans), "DM Sans", var(--fb-font-body);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg-default);
}

/* Shop H1 only. GM Sans is not a file in this repo, so the loaded DM Sans is the face. */
.guest-title--shop {
  font-family: "GM Sans", var(--font-dm-sans), "DM Sans", var(--fb-font-body);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.guest-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.guest-head { margin-bottom: 18px; }

.guest-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-store .guest-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: var(--fb-stroke-hair) solid var(--border-hairline);
  border-radius: var(--fb-radius-pill);
  background: var(--bg-surface);
  color: var(--fg-default);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.guest-store .guest-filters button[aria-pressed="true"] {
  background: var(--accent-fill);
  color: var(--fg-on-accent);
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-fill) 28%, transparent);
}

.guest-form,
.guest-shop {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.guest-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.guest-field input,
.guest-field select,
.guest-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9d3c8;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 450;
}

.guest-field textarea {
  min-height: 96px;
  resize: vertical;
}

.guest-field input::placeholder,
.guest-field textarea::placeholder { color: #918e90; }

.guest-phone {
  display: flex;
  align-items: center;
  position: relative;
}

.guest-phone b {
  position: absolute;
  left: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.guest-phone input { padding-left: 52px; }

.guest-note,
.guest-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.45;
}

.guest-price {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 650;
}

.guest-store .guest-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--accent-fill);
  color: var(--fg-on-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-fill) 22%, transparent);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.guest-store .guest-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.guest-store .guest-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.guest-store .guest-btn:disabled {
  opacity: 1;
  background: var(--fb-paper-1);
  color: var(--fb-ink-500);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.guest-store .guest-btn:disabled::after {
  content: none;
}

.guest-store .guest-btn--primary,
.guest-store .guest-btn--coral {
  background: var(--accent-fill);
  color: var(--fg-on-accent);
}

.guest-store .guest-btn--primary {
  width: 100%;
}

.guest-store .guest-btn--ghost {
  width: auto;
  background: var(--bg-surface);
  color: var(--fg-default);
  border: var(--fb-stroke-hair) solid var(--border-strong);
  box-shadow: none;
}

.guest-store .guest-btn--ghost:hover:not(:disabled) {
  background: var(--fb-paper-0);
}

.guest-store .guest-btn--ghost:disabled {
  background: var(--fb-paper-1);
  color: var(--fb-ink-300);
  border-color: var(--border-hairline);
}

.guest-actions .guest-btn:not(.guest-btn--ghost)::after {
  content: " \2192";
}

.guest-btn:focus-visible,
.guest-store input:focus-visible,
.guest-store select:focus-visible,
.guest-store textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guest-actions .guest-btn--primary { flex: 1; }
.guest-actions .guest-btn--ghost { flex: 0 0 auto; }

.guest-error,
.guest-warn,
.guest-state {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.guest-state-glyph {
  flex: 0 0 auto;
  width: 1.25em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.guest-state {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.guest-error {
  background: #fbeeed;
  color: var(--danger);
  border: 1px solid #f0d0cc;
}

.guest-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid #ead9b4;
}

.guest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.guest-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.guest-product-card,
.guest-item {
  background-image: none;
}

.guest-thumb,
.guest-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-sunken);
  background-image: none;
  overflow: hidden;
}

.guest-thumb img,
.guest-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.guest-photo img {
  padding: 12px;
}

.guest-thumb--fallback {
  display: grid;
  align-content: end;
  gap: 4px;
  min-height: 140px;
  padding: 14px;
  background-color: var(--bg-sunken);
  background-image: none;
  color: var(--fg-default);
  font-family: var(--fb-font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.guest-thumb--fallback .guest-thumb-model {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fb-ink-500);
}

.guest-thumb--fallback .guest-thumb-name {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--fg-default);
  letter-spacing: -0.02em;
}

.guest-line-photo.guest-thumb--fallback {
  min-height: 0;
  aspect-ratio: auto;
  padding: 8px;
  font-size: 12px;
}

.guest-line-photo.guest-thumb--fallback .guest-thumb-name {
  font-size: 12px;
}

.guest-item-copy {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.guest-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.guest-item-copy strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.guest-price {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
}

.guest-price-now {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.guest-price small {
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 11px;
}

.guest-price-was {
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: line-through;
}

.guest-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-store .guest-tiers button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 36px;
  padding: 8px 12px;
  border: var(--fb-stroke-hair) solid var(--border-hairline);
  border-radius: var(--fb-radius-pill);
  background: var(--bg-surface);
  color: var(--fg-default);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.guest-store .guest-tiers button[aria-pressed="true"] {
  background: var(--accent-fill);
  color: var(--fg-on-accent);
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-fill) 28%, transparent);
}

.guest-best-value {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--fb-radius-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.guest-chip[data-best-value="true"] .guest-best-value,
.guest-tiers button[aria-pressed="true"][data-best-value="true"] .guest-best-value {
  background: color-mix(in srgb, var(--fb-white) 28%, transparent);
  color: var(--fg-on-accent);
}

.guest-savings-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  padding: 4px 10px;
  border-radius: var(--fb-radius-pill);
  background: var(--status-ok-bg);
  color: var(--status-ok-fg);
  font-size: 12px;
  font-weight: 650;
}

.guest-tiers button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.guest-save {
  margin: 0;
  color: var(--save);
  font-size: 14px;
  font-weight: 650;
}

.guest-money,
.guest-total,
.guest-token,
.guest-due,
.guest-tiers button span:last-child {
  font-variant-numeric: tabular-nums;
}

.guest-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.guest-due {
  margin: 0;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.guest-dock,
.guest-basket-bar,
.guest-sticky-basket {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: min(100%, 1080px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--fb-paper-0) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: var(--fb-stroke-hair) solid var(--border-hairline);
  box-shadow: var(--shadow-float);
}

.guest-store {
  --guest-basket-bar: 64px;
}

.guest-store--wide,
.guest-store.guest-store--shop {
  padding-bottom: calc(var(--guest-basket-bar) + env(safe-area-inset-bottom, 0px) + 20px);
}

.guest-dock .guest-btn,
.guest-basket-bar .guest-btn,
.guest-sticky-basket .guest-btn {
  flex-shrink: 0;
}

.guest-dock .guest-btn--primary { width: auto; min-width: 140px; }

.guest-composer {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.guest-reply {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
}

.guest-reply p { margin: 0; }

.guest-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.guest-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.guest-line:last-child { border-bottom: 0; }

.guest-line-photo,
.guest-line-photo.guest-thumb {
  width: 72px;
  height: 72px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--fb-radius-cell);
  background-color: var(--bg-sunken);
  background-image: none;
}

.guest-line strong { display: block; font-size: 15px; font-weight: 650; }

.guest-line .guest-btn { margin-top: 8px; min-height: 40px; }

.guest-line-total { font-size: 15px; }

.guest-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.guest-choice--drop { grid-template-columns: 1fr; }

.guest-chip {
  display: grid;
  gap: 4px;
  text-align: left;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.guest-store .guest-chip[aria-pressed="true"] {
  background: var(--accent-fill);
  color: var(--fg-on-accent);
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-fill) 28%, transparent);
}

.guest-store .guest-chip[aria-pressed="true"] .guest-meta {
  color: var(--fg-on-accent);
}

.guest-calm {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--fb-radius-input);
  background: var(--bg-sunken);
  border: var(--fb-stroke-hair) solid var(--border-hairline);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.45;
}

.guest-section {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
  display: grid;
  gap: 12px;
}

.guest-section legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
}

.guest-address-grid {
  display: grid;
  gap: 12px;
}

.guest-pay-layout {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.guest-pay-layout .guest-form { margin-top: 0; }

.guest-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.guest-suggest {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.guest-suggest button {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}

.guest-suggest li:last-child button { border-bottom: 0; }

.guest-payid {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.guest-token {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-all;
}

.guest-bank {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
}

.guest-bank div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.guest-bank dt {
  color: var(--muted);
  font-size: 13px;
}

.guest-bank dd {
  margin: 0;
  font-weight: 650;
}

.guest-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.guest-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.guest-upload {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed #cfc8bc;
  background: var(--paper);
  font-size: 14px;
  font-weight: 650;
}

.guest-upload input {
  font-weight: 450;
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 639px) {
  .guest-line { grid-template-columns: 64px minmax(0, 1fr); }
  .guest-line-total { grid-column: 1 / -1; justify-self: end; }
}

@media (min-width: 640px) {
  .guest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .guest-store { padding: 28px 24px 56px; }
  .guest-store.guest-store--wide,
  .guest-store.guest-store--shop {
    padding-bottom: calc(var(--guest-basket-bar, 64px) + env(safe-area-inset-bottom, 0px) + 24px);
  }
  .guest-store.guest-store--shop { padding-top: 28px; }
  .guest-title { font-size: 56px; }
  .guest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guest-address-grid { grid-template-columns: 1.4fr 0.7fr 0.8fr; }
  .guest-pay-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .guest-summary { order: 2; position: sticky; top: 16px; }
  .guest-choice--drop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .guest-title { font-size: 24px; }
  .guest-choice { grid-template-columns: 1fr; }
  .guest-steps-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .guest-store *,
  .guest-store *::before,
  .guest-store *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.guest-item {
  animation: guest-rise 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.guest-item:nth-child(2) { animation-delay: 35ms; }
.guest-item:nth-child(3) { animation-delay: 70ms; }
.guest-item:nth-child(4) { animation-delay: 105ms; }
.guest-thumb img,
.guest-photo img {
  animation: guest-image-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.guest-dock,
.guest-basket-bar,
.guest-sticky-basket {
  animation: guest-dock-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes guest-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes guest-image-in {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes guest-dock-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .guest-item,
  .guest-thumb img,
  .guest-photo img,
  .guest-dock,
  .guest-basket-bar,
  .guest-sticky-basket {
    animation: none !important;
  }
}

/* Wave 1: chip rail, basket clearance, selected add state. */
.guest-item {
  scroll-margin-bottom: calc(var(--guest-basket-bar, 64px) + env(safe-area-inset-bottom, 0px) + 12px);
}
.guest-store .guest-filters button,
.guest-store .guest-tiers button {
  min-height: 44px;
}
.guest-store .guest-tiers button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--fg-default);
  border-color: var(--accent-fill);
  box-shadow: inset 0 0 0 2px var(--accent-fill);
}
.guest-added {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.guest-store .guest-tiers button[aria-pressed="true"] .guest-best-value {
  background: var(--bg-surface);
  color: var(--accent-text);
}
.guest-dock .guest-btn,
.guest-basket-bar .guest-btn,
.guest-sticky-basket .guest-btn {
  min-height: 44px;
  padding: 8px 16px;
}
.guest-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--guest-basket-bar, 64px) + env(safe-area-inset-bottom, 0px) + 8px);
  z-index: 21;
  width: min(100% - 32px, 420px);
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: var(--fb-radius-pill);
  background: var(--bg-inverse);
  color: var(--fg-on-inverse);
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 719px) {
  .guest-tier-price-qty { font-size: 26px; }
  .guest-tier-price { font-size: 13px; }
  .guest-title { font-size: 30px; }
  .guest-title--compact { font-size: 26px; line-height: 1.2; }
  .guest-store--shop .guest-head { margin-bottom: 8px; }
  .guest-store--shop .guest-shop { margin-top: 8px; }
  .guest-store--shop .guest-lead { margin-top: 4px; }
  .guest-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(90deg, black 0, black calc(100% - 28px), transparent);
  }
  .guest-store .guest-filters button {
    flex: none;
    scroll-snap-align: start;
  }
}
@media (min-width: 720px) {
  .guest-title--compact { font-size: 36px; line-height: 1.15; }
}
