.site-consent-dialog h2,
.site-consent-dialog h3 {
  margin: 0;
  color: var(--ink, #101318);
}

.site-consent-reopen {
  position: fixed;
  z-index: 1100;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  place-items: center;
  color: #fff;
  background: #315df4;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(112, 72, 242, 0.32);
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.site-consent-reopen:hover,
.site-consent-reopen:focus-visible {
  opacity: 0.84;
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(112, 72, 242, 0.4);
}

.site-consent-reopen:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-consent-reopen__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.site-consent-dialog {
  position: fixed;
  inset: auto auto clamp(5.5rem, 3vw + 4.5rem, 6.5rem) clamp(1rem, 3vw, 2rem);
  width: min(26rem, 100vw - 2rem);
  max-height: min(42rem, 100vh - 7rem);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  color: var(--site-text-color);
  background: linear-gradient(180deg, rgba(112, 72, 242, 0.08), transparent 34%), var(--surface, #ffffff);
  border: 1px solid rgba(112, 72, 242, 0.22);
  border-radius: 20px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.22);
}

.site-consent-dialog::backdrop {
  background: rgba(9, 15, 27, 0.46);
}

.site-consent-dialog__surface {
  padding: 0;
}

.site-consent-dialog__heading,
.site-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-consent-dialog__heading {
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid rgba(112, 72, 242, 0.14);
}

.site-consent-dialog__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-consent-dialog__heading h2 {
  font-size: 1.05rem;
  line-height: 1.12;
}

.site-consent-dialog__message {
  margin: 1rem 1rem 0.45rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-consent-dialog__message + a {
  display: inline-block;
  margin: 0 1rem 0.2rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-consent-dialog__close {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  margin-top: -0.25rem;
  padding: 0;
  place-items: center;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.site-consent-dialog__close:hover,
.site-consent-dialog__close:focus-visible {
  color: var(--site-text-color);
  background: rgba(112, 72, 242, 0.1);
}

.site-consent-category {
  margin: 0.75rem 1rem;
  padding: 0.85rem;
  background: var(--surface-alt);
  border: 1px solid rgba(112, 72, 242, 0.16);
  border-radius: 14px;
}

.site-consent-category p,
.site-consent-category small {
  display: block;
  margin: 0.25rem 0 0;
  color: #4f5f70;
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-consent-category input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.site-consent-required {
  white-space: nowrap;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
}

.site-consent-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 1rem;
  border-top: 1px solid rgba(112, 72, 242, 0.1);
}

.site-consent-dialog__actions .site-button {
  min-height: 2.75rem;
  color: #fff;
  background: #315df4;
  border-color: #315df4;
  border-radius: 999px;
  padding-inline: 0.9rem;
  transition: opacity 0.16s ease;
}

.site-consent-dialog__actions .site-button:hover,
.site-consent-dialog__actions .site-button:focus-visible {
  color: #fff;
  background: #315df4;
  border-color: #315df4;
  opacity: 0.84;
}

.site-consent-dialog__actions [data-consent-save] {
  grid-column: 1/-1;
}

:root[data-site-theme=dark] .site-consent-dialog {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(166, 139, 255, 0.14), transparent 36%), #151b23;
}

:root[data-site-theme=dark] .site-consent-category {
  border-color: rgba(226, 232, 240, 0.14);
  background: #202734;
}

:root[data-site-theme=dark] .site-consent-category p,
:root[data-site-theme=dark] .site-consent-category small {
  color: #b8c2cc;
}

:root[data-site-theme=dark] .site-consent-required {
  color: #b9a8ff;
}

@media (max-width: 640px) {
  .site-consent-reopen {
    left: 1rem;
    bottom: 1rem;
  }
  .site-consent-dialog {
    inset: auto auto 5.25rem 1rem;
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 6.25rem);
  }
}
