/* Cookie banner, settings dialog and click-to-load placeholders. Loaded by all three page shells (site, sign-in, dashboard),
   which define different design tokens, so the colours are set here. */
.fp-consent, .fp-consent-dialog, .fp-embed {
  --fp-surface: #141a2e;
  --fp-border: rgba(255, 255, 255, 0.14);
  --fp-text: #f1f3fb;
  --fp-muted: #b4bbd6;
  --fp-accent: #f34d92;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--fp-text);
  box-sizing: border-box;
}
.fp-consent *, .fp-consent-dialog *, .fp-embed * { box-sizing: border-box; }
.fp-consent a, .fp-consent-dialog a, .fp-embed a { color: var(--fp-text); text-decoration: underline; }
.fp-consent a:hover, .fp-consent-dialog a:hover, .fp-embed a:hover { color: var(--fp-accent); }

.fp-consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 9000;
  width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 18px 20px;
  background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem; line-height: 1.55;
}
.fp-consent[hidden] { display: none; }
.fp-consent-title { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.fp-consent-text { margin: 0; color: var(--fp-muted); }

/* Accept, reject and settings deliberately look the same: neither answer is nudged. */
.fp-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fp-consent-btn {
  flex: 1 1 120px; min-height: 42px; padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08); color: var(--fp-text);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 10px;
  font: inherit; font-weight: 600; cursor: pointer;
}
.fp-consent-btn:hover { background: rgba(243, 77, 146, 0.18); border-color: var(--fp-accent); }
.fp-consent-btn:focus-visible, .fp-consent-close:focus-visible, .fp-consent-option input:focus-visible {
  outline: 2px solid var(--fp-accent); outline-offset: 2px;
}

.fp-consent-dialog {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 24px;
  background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: 16px;
  font-size: 0.92rem; line-height: 1.55;
}
.fp-consent-dialog::backdrop { background: rgba(5, 8, 18, 0.7); }
.fp-consent-dialog h2 { margin: 0 32px 6px 0; color: var(--fp-text); font-size: 1.25rem; font-weight: 700; }
.fp-consent-dialog p { margin: 0; color: var(--fp-muted); }
.fp-consent-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--fp-muted); font-size: 1rem; cursor: pointer;
}
.fp-consent-close:hover { color: var(--fp-text); background: rgba(255, 255, 255, 0.08); }
.fp-consent-option {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-top: 12px; padding: 14px;
  border: 1px solid var(--fp-border); border-radius: 12px;
}
label.fp-consent-option { cursor: pointer; }
.fp-consent-option strong { display: block; margin-bottom: 2px; color: var(--fp-text); }
.fp-consent-option small { display: block; color: var(--fp-muted); font-size: 0.84rem; line-height: 1.5; }
.fp-consent-option input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--fp-accent); cursor: pointer; }
.fp-consent-always { flex: none; color: var(--fp-muted); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.fp-consent-dialog .fp-consent-note { margin-top: 14px; font-size: 0.82rem; }

/* Sits where a third-party embed will appear, at about the same height, so nothing jumps when it loads. */
.fp-embed {
  display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 300px; padding: 20px;
  background: rgba(255, 255, 255, 0.04); border: 1px dashed var(--fp-border); border-radius: 12px;
  text-align: center; font-size: 0.88rem; line-height: 1.5;
}
.fp-embed > i { color: #7f8cf5; font-size: 2rem; }
.fp-embed p { margin: 0; max-width: 42ch; color: var(--fp-muted); }
.fp-embed .fp-consent-actions { justify-content: center; width: 100%; margin-top: 0; }
.fp-embed .fp-consent-btn { flex: 0 1 auto; }

.recaptcha-notice { margin: 10px 0 14px; color: #b4bbd6; font-size: 0.75rem; line-height: 1.45; }
.recaptcha-notice a { color: inherit; text-decoration: underline; }
