/* ===== Derks & Gudde — Cookie Consent =====
   Ported from the Brainstormers reusable consent component, restyled to the D&G aesthetic.
   Uses the site's own design tokens (--page/--text/--amber/--hair) so it auto-adapts to
   light and dark mode with no separate dark selectors. */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  display: flex; justify-content: center; padding: 16px; pointer-events: none;
}
.cc-card {
  pointer-events: auto; width: 100%; max-width: 560px;
  background: var(--page, #fff); color: var(--text, #16232E);
  border: 1px solid var(--hair, rgba(22,35,46,.12)); border-radius: 16px;
  box-shadow: 0 24px 70px -20px rgba(6,32,50,.5); padding: 24px 24px 20px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}
.cc-title { font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin: 0 0 8px; color: var(--text, #16232E); }
.cc-text { font-size: 14px; line-height: 1.6; color: var(--text-soft, #4A5A66); margin: 0 0 18px; }
.cc-text a { color: var(--amber, #F5871F); text-decoration: underline; font-weight: 600; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn {
  flex: 1 1 auto; min-width: 130px; font-family: inherit; font-size: .92rem; font-weight: 600;
  padding: 12px 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.cc-btn-primary { background: var(--amber, #F5871F); color: #fff; box-shadow: 0 10px 30px -12px rgba(245,135,31,.6); }
.cc-btn-primary:hover { background: var(--ember, #C96410); transform: translateY(-2px); }
.cc-btn-ghost { background: transparent; color: inherit; border-color: var(--hair, rgba(22,35,46,.2)); }
.cc-btn-ghost:hover { border-color: var(--amber, #F5871F); color: var(--amber, #F5871F); }
.cc-btn-text { flex: 0 0 100%; background: transparent; color: var(--text-soft, #4A5A66); border: none; font-weight: 600; padding: 6px; min-width: 0; }
.cc-btn-text:hover { color: var(--amber, #F5871F); }

/* Preferences */
.cc-prefs { margin: 6px 0 18px; border-top: 1px solid var(--hair, rgba(22,35,46,.1)); }
.cc-row { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--hair, rgba(22,35,46,.08)); }
.cc-row:last-child { border-bottom: none; }
.cc-row-info { flex: 1; }
.cc-row-title { font-weight: 700; font-size: 14px; color: var(--text, #16232E); }
.cc-row-desc { font-size: 13px; line-height: 1.5; color: var(--text-soft, #4A5A66); margin-top: 3px; }
.cc-switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; margin-top: 2px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; inset: 0; background: var(--hair, rgba(22,35,46,.22)); border-radius: 999px; transition: .25s; cursor: pointer; }
.cc-slider::before { content: ""; position: absolute; height: 19px; width: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cc-switch input:checked + .cc-slider { background: var(--amber, #F5871F); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(19px); }
.cc-switch input:disabled + .cc-slider { opacity: .5; cursor: not-allowed; }

/* Reopen floating button (bottom-left, clear of the chatbot at bottom-right) */
.cc-reopen {
  position: fixed; left: 18px; bottom: 18px; z-index: 2147482000;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-deep, #062E48); color: #fff; border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(6,32,50,.6); transition: transform .2s; font-size: 20px; line-height: 1;
}
.cc-reopen:hover { transform: scale(1.08); }

@media (max-width: 520px) { .cc-btn { min-width: 0; } }
