/* cookie-consent.css */
.cc-banner,
.cc-modal {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.cc-banner {
  position: fixed;
  z-index: 99999;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cc-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.cc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-btn {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
}
.cc-accept {
  background: #16a34a;
  color: #fff;
}
.cc-reject {
  background: #dc2626;
  color: #fff;
}
.cc-prefs {
  background: #374151;
  color: #fff;
}
.cc-link {
  color: #93c5fd;
  text-decoration: underline;
}

.cc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
}
.cc-modal {
  position: fixed;
  z-index: 99999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 90vw);
  background: #fff;
  color: #111827;
  border-radius: 14px;
  overflow: hidden;
}
.cc-modal header {
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-modal h3 {
  margin: 0;
  font-size: 18px;
}
.cc-modal .cc-body {
  padding: 14px;
  max-height: 60vh;
  overflow: auto;
}
.cc-row {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.cc-row h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.cc-desc {
  color: #6b7280;
  font-size: 13px;
  margin: 4px 0 0;
}
.cc-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.cc-switch input {
  width: 42px;
  height: 22px;
  appearance: none;
  background: #e5e7eb;
  border-radius: 999px;
  position: relative;
  outline: none;
  cursor: pointer;
}
.cc-switch input:checked {
  background: #16a34a;
}
.cc-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.cc-switch input:checked::after {
  transform: translateX(20px);
}
.cc-row[data-locked="1"] .cc-switch input {
  opacity: 0.6;
  cursor: not-allowed;
}
.cc-row[data-locked="1"] .cc-badge {
  background: #0ea5e9;
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
}

.cc-modal footer {
  padding: 12px 14px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.cc-secondary {
  background: #111827;
  color: #fff;
}
.cc-tertiary {
  background: #e5e7eb;
  color: #111827;
}

@media (max-width: 480px) {
  .cc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
}
