.cookie-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(calc(100% - 2rem), 41rem);
  max-height: calc(100% - 2rem);
  margin: 0 auto 1rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid #7abfff66;
  border-radius: 1rem;
  background: #0a1833;
  color: #f2f7ff;
  box-shadow: 0 1rem 4rem #0007;
}

.cookie-dialog::backdrop { background: #03081266; }

.cookie-dialog h2 { margin: 0 2rem .65rem 0; font-size: 1.25rem; }
.cookie-dialog p { margin: .65rem 0; color: #c6d8f1; line-height: 1.55; }
.cookie-dialog a { color: #a3dcff; }

.cookie-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-actions:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}

.cookie-actions button {
  flex: 1 1 12rem;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 1px solid #81cdff;
  border-radius: .5rem;
  background: #132c50;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cookie-actions button:hover { background: #1a3c64; }
.cookie-dialog :focus-visible, .cookie-link:focus-visible { outline: 2px solid #81cdff; outline-offset: 3px; }

@media (max-width: 38rem) {
  .cookie-dialog { max-height: calc(100dvh - 1rem); overflow: auto; overscroll-behavior: contain; }
}
button.cookie-link {
  padding: .35rem 0;
  border: 0;
  background: transparent;
  color: #abdafa;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
