.consent {
  position: fixed;
  z-index: 100;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

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

.consent__panel {
  pointer-events: auto;
  width: min(42rem, 100%);
  padding: 0.95rem 1.05rem;
  background: #fff;
  color: #111;
  border: 1px solid #111;
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.consent__copy {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-align: left;
  color: rgba(0, 0, 0, 0.78);
}

.consent__copy a {
  color: inherit;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.consent__btn {
  min-height: 2.2rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid #111;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.consent__btn--ghost {
  background: transparent;
  color: #111;
}

.consent__btn--solid {
  background: #111;
  color: #fff;
}

@media (max-width: 720px) {
  .consent__panel {
    grid-template-columns: 1fr;
  }

  .consent__actions {
    justify-content: stretch;
  }

  .consent__btn {
    flex: 1 1 auto;
  }
}

html[data-theme="dark"] .consent__panel,
html[data-theme="blue"] .consent__panel,
html[data-theme="orange"] .consent__panel,
html[data-theme="green"] .consent__panel,
html[data-theme="sunrise"] .consent__panel {
  /* Keep the notice readable against every theme film/background. */
  background: #fff;
  color: #111;
}
