.cookie-dialog {
  box-sizing: border-box;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  overflow-y: auto;
  border: 1px solid var(--color4, #ce9fa2);
  border-top: 6px solid var(--color4, #ce9fa2);
  border-radius: 12px;
  background: #fff;
  color: var(--color2, #2d4051);
  box-shadow: 0 20px 70px #0004;
}

.cookie-dialog::backdrop {
  background: rgb(22 34 46 / 65%);
}

body:has(.cookie-dialog[open]) {
  overflow: hidden;
}

.cookie-dialog h2 {
  margin: 0 0 20px;
  padding: 0;
  font: 700 1.3rem/1.4 "Avenir", Arial, sans-serif;
}

.cookie-dialog h2::after {
  content: none;
}

.cookie-dialog p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.6;
  word-spacing: normal;
}

.cookie-dialog a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cookie-actions button {
  flex: 1;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--color2, #2d4051);
  border-radius: 6px;
  background: var(--color2, #2d4051);
  color: #fff;
  font: 600 1rem/1.4 "Avenir", Arial, sans-serif;
  cursor: pointer;
}

.cookie-actions button:hover {
  background: var(--color1, #f2e7e1);
  color: var(--color2, #2d4051);
}

footer .cookie-settings-link {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-transform: none;
  cursor: pointer;
}

.cookie-dialog :focus-visible,
footer .cookie-settings-link:focus-visible {
  outline: 3px solid var(--color4, #ce9fa2);
  outline-offset: 4px;
}

.cookie-dialog .cookie-consent-status {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--color1, #f2e7e1);
}

@media (max-width: 540px) {
  .cookie-dialog {
    padding: 22px;
  }

  .cookie-dialog h2 {
    font-size: 1.1rem;
  }

  .cookie-actions {
    flex-direction: column;
  }
}
