/* Universal consent banner — re-theme per site by overriding these variables */
:root {
  --consent-bg: #111111;
  --consent-text: #f5f5f5;
  --consent-muted: #b3b3b3;
  --consent-accent: #fdba18;
  --consent-accent-text: #ffffff;
  --consent-border: rgba(255, 255, 255, 0.15);
  --consent-radius: 10px;
  --consent-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --consent-z: 999999;
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--consent-z);
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--consent-bg);
  color: var(--consent-text);
  font-family: var(--consent-font);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.consent-banner a { color:#fdba18 !important}

.consent-banner__text {
  flex: 1 1 320px;
  min-width: 240px;
}

.consent-banner__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--consent-text);
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-btn {
  font-family: var(--consent-font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--consent-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.consent-btn:hover {
  opacity: 0.85;
}

.consent-btn--primary {
  background: var(--consent-accent);
  color: var(--consent-accent-text);
}

.consent-btn--outline {
  background: transparent;
  color: var(--consent-text);
  border-color: var(--consent-border);
}

.consent-btn--ghost {
  background: transparent;
  color: var(--consent-muted);
  border: none;
  text-decoration: underline;
  padding-left: 4px;
  padding-right: 4px;
}

/* Modal (Manage preferences) */
.consent-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--consent-z) + 1);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 20px;
}

.consent-modal {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  color: #111111;
  border-radius: var(--consent-radius);
  padding: 24px;
  font-family: var(--consent-font);
}

.consent-modal h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.consent-modal__rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eaeaea;
}

.consent-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.consent-row__text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.consent-row__text p {
  margin: 0;
  font-size: 13px;
  color: #666666;
  line-height: 1.4;
}

.consent-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cccccc;
  border-radius: 999px;
  transition: 0.2s;
}

.consent-switch__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

.consent-switch input:checked + .consent-switch__slider {
  background: var(--consent-accent);
}

.consent-switch input:checked + .consent-switch__slider::before {
  transform: translateX(18px);
}

.consent-switch input:disabled + .consent-switch__slider {
  background: #fdba18;
  cursor: not-allowed;
}

.consent-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 520px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .consent-banner__actions {
    justify-content: stretch;
  }
  .consent-btn {
    flex: 1;
  }
}
