.consent-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 1rem 1rem;
  box-sizing: border-box;
}

.consent-root[hidden] {
  display: none !important;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.consent-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.25rem 1.35rem 1.15rem;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  font-family: var(--font, system-ui, sans-serif);
  color: var(--text, #1a1a1a);
}

.consent-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.consent-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, #6b7280);
}

.consent-legal {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.consent-legal a {
  color: var(--accent, #009493);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.consent-actions .consent-btn {
  min-width: 8.5rem;
}

body.consent-locked {
  overflow: hidden;
}

html[data-theme="dark"] .consent-modal {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
