/* Cookie consent banner + modal — plain CSS, independent of the compiled/purged
   tailwind.min.css bundle, so it always renders correctly even if that file
   is rebuilt without these class names present in scanned templates. */

.cc-hidden { display: none !important; }

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #0f172a;
  color: #cbd5e1;
  padding: 16px 20px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
#cookie-banner .cc-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
#cookie-banner p {
  flex: 1;
  min-width: 220px;
  font-size: .85rem;
  line-height: 1.5;
  margin: 0;
}
#cookie-banner p a {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
}
.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cc-btn {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.cc-btn-settings { background: transparent; color: #60a5fa; border-color: rgba(96,165,250,.4); }
.cc-btn-settings:hover { background: #1e293b; }
.cc-btn-reject { background: transparent; color: #cbd5e1; border-color: #475569; }
.cc-btn-reject:hover { background: #1e293b; }
.cc-btn-accept { background: #2563eb; color: #fff; }
.cc-btn-accept:hover { background: #1d4ed8; }

#cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 24px;
  max-height: 85vh;
  overflow-y: auto;
}
.cc-modal h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.cc-modal > p {
  font-size: .82rem;
  color: #64748b;
  margin: 0 0 16px;
}
.cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cc-category:last-of-type { border-bottom: none; }
.cc-category h4 {
  font-size: .88rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 3px;
}
.cc-category p {
  font-size: .78rem;
  color: #64748b;
  margin: 0;
}
.cc-switch {
  position: relative;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
}
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-switch .cc-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.cc-switch .cc-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.cc-switch input:checked + .cc-slider { background: #2563eb; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(16px); }
.cc-switch input:disabled + .cc-slider { background: #93c5fd; cursor: not-allowed; }

.cc-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cc-modal-actions button {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.cc-btn-save { background: #2563eb; color: #fff; }
.cc-btn-save:hover { background: #1d4ed8; }
.cc-btn-allow { background: #eff6ff; color: #1d4ed8; }
.cc-btn-allow:hover { background: #dbeafe; }
.cc-btn-close {
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: .75rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 640px) {
  #cookie-banner .cc-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cc-actions { justify-content: center; }
}

.cookie-settings-link {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  padding: 0;
}
.cookie-settings-link:hover { color: #fff; }