/* ── Checkout view ──────────────────────────────────────────────────── */
.fg-checkout-card {
  background: var(--fg-card);
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius);
  padding: 18px 18px 16px;
  margin-bottom: 16px;
}
.fg-checkout-card h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}
.fg-checkout-card p { margin: 0; line-height: 1.5; }
.fg-checkout-note { font-size: 13px; color: var(--fg-muted); margin-bottom: 12px !important; }

/* Calendar-grid slot picker: days as columns, times as stacked cells */
.fg-cal-scroll {
  overflow-x: auto;
  margin: 0 -18px;
  padding: 0 18px 6px;
  -webkit-overflow-scrolling: touch;
}
.fg-cal-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(110px, 1fr);
  gap: 6px;
  min-width: 100%;
}
.fg-cal-col { display: flex; flex-direction: column; gap: 4px; }
.fg-cal-header {
  text-align: center;
  font-size: 12px;
  padding: 6px 4px;
  border-radius: var(--fg-radius-xs);
  background: var(--fg-bg-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fg-cal-dow {
  font-weight: 700;
  color: var(--fg-fg);
  letter-spacing: 0.02em;
}
.fg-cal-date { color: var(--fg-muted); font-size: 11px; }
.fg-cal-cells { display: flex; flex-direction: column; gap: 4px; }
.fg-cal-cell {
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: var(--fg-radius-xs);
  background: rgba(77, 138, 46, 0.10);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color 120ms, background 120ms, transform 80ms;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(226, 78, 27, 0.2);
  user-select: none;
}
.fg-cal-cell:active:not(:disabled) { transform: scale(0.97); }
.fg-cal-cell.paid { background: rgba(122, 110, 95, 0.10); }
.fg-cal-cell:hover:not(:disabled) { border-color: var(--fg-accent); transform: translateY(-1px); }
.fg-cal-cell.active {
  border-color: var(--fg-accent);
  background: rgba(226, 78, 27, 0.12);
  color: var(--fg-accent);
}
.fg-cal-cell.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--fg-bg-2);
}
.fg-cal-time { font-variant-numeric: tabular-nums; }
.fg-cal-fee { font-size: 10px; font-weight: 600; color: var(--fg-muted); }
.fg-cal-badge {
  font-size: 9px;
  padding: 1px 6px;
  background: var(--fg-accent);
  color: var(--fg-accent-ink);
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fg-checkout-submit {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  border: none;
  background: var(--fg-accent);
  color: var(--fg-accent-ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 120ms;
}
.fg-checkout-submit:hover:not(:disabled) { background: var(--fg-accent-2); }
.fg-checkout-submit:disabled { opacity: 0.6; cursor: wait; }
.fg-checkout-twint-hint {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 10px;
}
.fg-checkout-pending,
.fg-checkout-done,
.fg-checkout-err {
  max-width: 520px;
  margin: 48px auto;
  text-align: center;
}
.fg-checkout-pending h1,
.fg-checkout-done h1,
.fg-checkout-err h1 {
  margin: 16px 0 10px;
}
.fg-checkout-pending .fg-spinner {
  margin: 0 auto 18px;
  width: 40px;
  height: 40px;
  border: 3px solid var(--fg-border);
  border-top-color: var(--fg-accent);
  border-radius: 50%;
  animation: fg-spin 800ms linear infinite;
}
@keyframes fg-spin { to { transform: rotate(360deg); } }
.fg-checkout-sticky-err {
  background: #fff4e6;
  color: #8a4a00;
  border: 1px solid #f4cf9c;
  border-radius: var(--fg-radius-xs);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.fg-checkout-sticky-err .fg-sticky-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
  margin-left: auto;
  order: 2;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .fg-checkout-sticky-err { background: #3a2b15; color: #ffcf7d; border-color: #5a4220; }
}
.fg-checkout-err pre {
  text-align: left;
  background: var(--fg-bg-2);
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  overflow: auto;
}
