/* Cookie consent banner + preferences modal (see includes/consent.php).
   Self-contained: marketing pages don't load design-system.css. */
.cc-banner, .cc-modal { font-family: inherit; color: #111; }
.cc-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 2147483000;
  width: 420px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 20px;
  animation: cc-in .28s ease-out both;
}
@keyframes cc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cc-title { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.cc-text { font-size: 13px; line-height: 1.55; color: #4b5563; margin: 0 0 14px; }
.cc-text a { color: #111; font-weight: 600; text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn {
  flex: 1 1 auto; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid #111; line-height: 1.2;
}
.cc-btn--primary { background: #111; color: #fff; }
.cc-btn--outline { background: #fff; color: #111; }
.cc-btn--link { flex-basis: 100%; border: 0; background: none; color: #4b5563; text-decoration: underline; padding: 4px; font-weight: 600; }
.cc-btn:focus-visible, .cc-switch input:focus-visible + span { outline: 3px solid #51A0E4; outline-offset: 2px; }

.cc-overlay {
  position: fixed; inset: 0; z-index: 2147483001; background: rgba(17,17,17,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cc-modal {
  background: #fff; border-radius: 16px; width: 560px; max-width: 100%; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.cc-modal__head { padding: 22px 24px 0; }
.cc-modal__head h2 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.cc-modal__head p { font-size: 13px; line-height: 1.55; color: #4b5563; margin: 0; }
.cc-modal__body { padding: 8px 24px; overflow-y: auto; }
.cc-cat { padding: 14px 0; border-bottom: 1px solid #f0f1f3; }
.cc-cat:last-child { border-bottom: 0; }
.cc-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat__name { font-size: 14px; font-weight: 700; }
.cc-cat__desc { font-size: 12.5px; line-height: 1.5; color: #4b5563; margin: 4px 0 0; }
.cc-always { font-size: 12px; font-weight: 700; color: #6b7280; }
.cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.cc-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: background .15s; pointer-events: none; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; }
.cc-switch input:checked + span { background: #111; }
.cc-switch input:checked + span::after { transform: translateX(18px); }
.cc-modal__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 22px; border-top: 1px solid #f0f1f3; }

@media (max-width: 520px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; padding: 16px; }
  .cc-modal__head, .cc-modal__body, .cc-modal__foot { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cc-banner { animation: none; } }
