/* CapyFOD Cookie Consent – Cookiebot-lignende UI */
#capy-cc-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
  background: #0f172a; color: #f8fafc;
  box-shadow: 0 -16px 48px rgba(15,23,42,.35);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: capyCcSlide .35s ease-out;
}
@keyframes capyCcSlide { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
#capy-cc-banner[hidden], #capy-cc-modal[hidden] { display: none !important; }
.capy-cc-inner { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1.35rem 1.4rem; }
.capy-cc-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: start; }
@media (max-width: 720px) { .capy-cc-grid { grid-template-columns: 1fr; } }
.capy-cc-title { margin: 0 0 .4rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.capy-cc-text { margin: 0 0 .65rem; font-size: .92rem; line-height: 1.5; color: #cbd5e1; }
.capy-cc-text a { color: #7dd3fc; text-decoration: underline; }
.capy-cc-text a:hover { color: #bae6fd; }
.capy-cc-actions { display: flex; flex-direction: column; gap: .45rem; min-width: 200px; }
.capy-cc-actions .capy-cc-btn { width: 100%; justify-content: center; }
.capy-cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  border: 0; border-radius: 10px; padding: .7rem 1.15rem; font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
}
.capy-cc-btn:active { transform: scale(.98); }
.capy-cc-btn-primary { background: #0d9488; color: #fff; }
.capy-cc-btn-primary:hover { background: #0f766e; box-shadow: 0 4px 14px rgba(13,148,136,.35); }
.capy-cc-btn-secondary { background: #1e293b; color: #f1f5f9; border: 1px solid #334155; }
.capy-cc-btn-secondary:hover { background: #334155; }
.capy-cc-btn-ghost { background: transparent; color: #94a3b8; border: 1px solid #334155; }
.capy-cc-btn-ghost:hover { color: #e2e8f0; border-color: #64748b; }
.capy-cc-badge {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .2rem .45rem; border-radius: 999px; background: #134e4a; color: #99f6e4;
  margin-bottom: .5rem;
}
/* Modal */
#capy-cc-modal {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(15,23,42,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.capy-cc-modal-card {
  background: #fff; color: #0f172a; border-radius: 16px; width: min(560px, 100%);
  max-height: min(90vh, 720px); overflow: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.capy-cc-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.capy-cc-modal-head h2 { margin: 0; font-size: 1.15rem; }
.capy-cc-modal-body { padding: 1rem 1.25rem 1.25rem; }
.capy-cc-cat {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: .85rem 1rem; margin-bottom: .65rem;
  background: #f8fafc;
}
.capy-cc-cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.capy-cc-cat-head strong { font-size: .95rem; display: block; }
.capy-cc-cat-head span { font-size: .82rem; color: #64748b; line-height: 1.4; display: block; margin-top: .2rem; }
.capy-cc-switch {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
}
.capy-cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.capy-cc-switch .slider {
  position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; cursor: pointer; transition: .2s;
}
.capy-cc-switch .slider:before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.capy-cc-switch input:checked + .slider { background: #0d9488; }
.capy-cc-switch input:checked + .slider:before { transform: translateX(20px); }
.capy-cc-switch input:disabled + .slider { opacity: .7; cursor: not-allowed; background: #0d9488; }
.capy-cc-modal-foot {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end;
  padding: 0 1.25rem 1.25rem;
}
.capy-cc-footer-link {
  background: none; border: 0; color: #0d9488; font-size: .8rem; cursor: pointer;
  text-decoration: underline; padding: 0; font-family: inherit;
}
.capy-cc-footer-link:hover { color: #0f766e; }
