.consent-dialog {
  width: calc(100% - 2rem);
  max-width: 42rem;
  max-height: min(90vh, 46rem);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: #24323d;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 28%);
}

.consent-dialog::backdrop { background: rgb(12 29 42 / 62%); }
.consent-dialog__inner { padding: clamp(1.25rem, 4vw, 2rem); }
.consent-dialog__eyebrow { margin: 0 0 .5rem; color: #527185; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.consent-dialog h2 { margin: 0 0 .75rem; color: #16384a; font-size: clamp(1.4rem, 4vw, 1.8rem); }
.consent-dialog p { line-height: 1.55; }
.consent-dialog__details { margin: .75rem 0 1.25rem; }
.consent-dialog__details a { color: #145e82; text-decoration: underline; }
.consent-dialog__preferences { border-top: 1px solid #d7e0e5; margin: 1rem 0; }
.consent-dialog__category { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #d7e0e5; }
.consent-dialog__category p { margin: .25rem 0 0; color: #52616a; font-size: .92rem; }
.consent-dialog__category input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: #155c7d; }
.consent-dialog__always { color: #52616a; font-size: .86rem; white-space: nowrap; }
.consent-dialog__actions, .consent-dialog__settings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; }
.consent-button { min-height: 2.8rem; padding: .7rem 1rem; border: 1px solid #155c7d; border-radius: .55rem; font: inherit; font-weight: 700; cursor: pointer; }
.consent-button--primary { background: #155c7d; color: #fff; }
.consent-button--secondary { background: #fff; color: #155c7d; }
.consent-button:focus-visible, .consent-dialog a:focus-visible, .consent-dialog input:focus-visible { outline: 3px solid #e6a52f; outline-offset: 3px; }
.consent-button:hover { filter: brightness(.94); }

@media (max-width: 520px) {
  .consent-dialog { width: calc(100% - 1rem); max-height: 94vh; border-radius: .8rem; }
  .consent-dialog__actions, .consent-dialog__settings-actions { display: grid; grid-template-columns: 1fr; }
  .consent-button { width: 100%; }
}
