/* consent module styles (spec card t_9ad5c3d1 §3.1).
   Owned by the module so site stylesheets stay untouched: a site that opts out
   never loads this file, and a site that opts in does not have to patch its own
   CSS. Colours come from the site's own variables with a neutral fallback, so
   the panel follows the theme of the site it is mounted on. */

[data-consent-settings].link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.consent-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 8, 12, .72);
}

.consent-panel-body {
  width: 100%;
  max-width: 34rem;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  border-radius: 20px;
  background: var(--panel, #14161c);
  color: var(--text, #f4f6fb);
}

.consent-panel h2 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
}

.consent-panel h3 {
  margin: 1rem 0 .25rem;
  font-size: 1rem;
}

.consent-state,
.consent-note {
  font-size: .9375rem;
  line-height: 1.5;
}

.consent-note {
  color: var(--muted, rgba(244, 246, 251, .72));
}

.consent-cookies ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: .875rem;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.consent-actions .button {
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  border-radius: 999px;
  padding: .5rem 1rem;
  font: inherit;
  cursor: pointer;
}

.consent-actions .button.secondary {
  background: transparent;
  color: inherit;
}

.consent-actions .button.primary {
  background: var(--brand-2, #22d3ee);
  border-color: var(--brand-2, #22d3ee);
  color: #06131a;
}

.consent-actions .button[disabled] {
  opacity: .5;
  cursor: not-allowed;
}
