:root {
  --consent-bg: #0f172a;
  --consent-text: #ffffff;
  --consent-accent: #2563eb;
  --consent-muted: rgba(255, 255, 255, 0.8);
}

.consent-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 32px));
  background: var(--consent-bg);
  color: var(--consent-text);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.consent-banner.show {
  opacity: 1;
  pointer-events: auto;
}

.consent-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

.consent-text {
  display: grid;
  gap: 6px;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.consent-btn {
  background: var(--consent-accent);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.consent-btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.consent-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.consent-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.consent-modal-content {
  background: #ffffff;
  color: #0f172a;
  width: min(640px, calc(100% - 32px));
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.consent-modal-content h2 {
  margin-bottom: 8px;
}

.consent-modal-content p {
  color: #475569;
  margin-bottom: 12px;
}

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 10px;
}

.consent-option input {
  margin-top: 3px;
}

.consent-option strong {
  display: block;
  margin-bottom: 4px;
}

.consent-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .consent-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .consent-modal-actions {
    justify-content: stretch;
  }
}
