.cookie-banner,
.cookie-dialog {
  box-sizing: border-box;
  color: #251b32;
  background: #fff;
  border: 1px solid #bcb1c9;
  border-radius: 1rem;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 0.5rem 2rem #251b322a;
  font: 400 1rem/1.5 system-ui, sans-serif;
}

.cookie-banner {
  position: relative;
  z-index: 1;
  width: min(46rem, calc(100% - 2rem));
  margin: 1rem auto;
}

.cookie-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}

.cookie-dialog::backdrop { background: #251b3280; }
.cookie-banner h2, .cookie-dialog h2 { font-size: 1.25rem; margin: 0 0 0.35rem; }
.cookie-banner p, .cookie-dialog p { margin: 0 0 0.75rem; }
.cookie-banner a { color: #573474; text-decoration: underline; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cookie-actions button {
  flex: 1 1 10rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid #573474;
  border-radius: 0.65rem;
  background: #573474;
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.cookie-actions [data-choice="customize"],
.cookie-actions [value="close"] { background: white; color: #573474; }
.cookie-actions button:disabled { cursor: default; opacity: 0.65; }
.cookie-banner :focus-visible, .cookie-dialog :focus-visible, [data-cookie-settings]:focus-visible {
  outline: 3px solid #8254a5;
  outline-offset: 3px;
}

.cookie-dialog input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 0.35rem 0 0;
  vertical-align: middle;
  accent-color: #573474;
}
