/* Page styles */
h1, p {
  font-weight: 700;
  text-align: center;
  margin: 0.5rem 0;
}

img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}

/* Manage link */
.manage-link {
  display: block;
  text-align: center;
  margin: 16px 0;
  font-weight: 500;
}

/* Consent banner */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  color: #fff;
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 16px;
  box-shadow: 0 -6px 16px rgba(0,0,0,.25);
  z-index: 99999;
  display: none; /* shown via JS if needed */
}

.cc-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  align-items: center;
}

@media (min-width: 700px) {
  .cc-inner { grid-template-columns: 1fr auto; gap: 16px; }
}

.cc-text a {
  color: #a7d5ff;
  text-decoration: underline;
}

.cc-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cc-btn {
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.cc-accept { background: #3ddc84; color: #0b2a15; }
.cc-reject { background: #333; color: #fff; }
.cc-manage { background: #1e88e5; color: #fff; }

/* Preferences modal */
.cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.cc-card {
  background: #fff;
  color: #222;
  max-width: 520px;
  width: calc(100% - 32px);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cc-card h2 { margin: 0 0 8px; font-size: 18px; }
.cc-card p { margin: 8px 0; font-weight: 400; text-align: left; }

.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.cc-switch {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #ccc;
  position: relative;
  outline: none;
  cursor: pointer;
}

.cc-switch:checked { background: #3ddc84; }

.cc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s ease;
}

.cc-switch:checked::after { left: 23px; }

.cc-card .cc-actions { justify-content: flex-end; margin-top: 12px; }
