/* Harmonised consent banner styling for Taran theme */
:root {
  --consent-overlay-bg: rgba(15, 23, 42, 0.45);
  --consent-card-bg: #0f172a;
  --consent-card-accent: #1e2a3f;
  --consent-text: #e5e7eb;
  --consent-muted: #cbd5e1;
  --consent-border: rgba(255, 255, 255, 0.12);
  --consent-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--consent-overlay-bg);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

@media (max-width: 720px) {
  .consent-overlay {
    padding: 12px;
  }
}

.consent-card {
  width: min(1200px, 100%);
  margin: 0 auto;
  background: linear-gradient(145deg, var(--consent-card-bg), #0b1325);
  color: var(--consent-text);
  border: 1px solid var(--consent-border);
  border-radius: 16px;
  box-shadow: var(--consent-shadow);
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .consent-card {
    /* Keep actions BELOW the links/text (single row at the bottom) */
    grid-template-columns: 1fr;
    align-items: start;
    padding: 20px 24px;
  }
}

.consent-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #fff;
}

.consent-body {
  margin: 0;
  color: var(--consent-muted);
  line-height: 1.5;
}

.consent-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  color: var(--consent-muted);
  font-weight: 600;
}

.consent-links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-links span {
  opacity: 0.6;
}

.consent-card details {
  margin-top: 0;
}

.consent-card summary {
  cursor: pointer;
  color: #fff;
  font-weight: 650;
  list-style: none;
}

.consent-card summary::-webkit-details-marker {
  display: none;
}

.consent-options {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  /* Avoid full-width stretching of option rows */
  justify-items: start;
}

.consent-settings-panel .consent-options {
  margin-top: 0;
}

.consent-option {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--consent-muted);
}

.consent-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.consent-actions .btn {
  min-height: 42px;
  border-radius: 999px;
  padding-inline: 14px;
}

.consent-actions .consent-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--consent-border);
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.consent-actions .consent-action:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.consent-actions .consent-action:focus-visible {
  outline: 2px solid color-mix(in srgb, #1d4ed8 65%, #fff);
  outline-offset: 2px;
}

.consent-actions .consent-action:active {
  transform: translateY(0);
}

.consent-settings {
  position: relative;
  margin-top: 0;
}

.consent-settings > summary {
  list-style: none;
}

.consent-settings > summary::-webkit-details-marker {
  display: none;
}

.consent-settings-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  min-width: 280px;
  max-width: min(420px, 92vw);
  background: var(--consent-card-accent);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--consent-border);
  box-shadow: var(--consent-shadow);
  z-index: 2;
}

@media (max-width: 720px) {
  .consent-settings-panel {
    right: auto;
    left: 0;
  }
}


