.cookie-notice {
  position: fixed;
  z-index: 18;
  inset-inline-end: 20px;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  width: min(520px, calc(100% - 40px));
  max-height: calc(100dvh - 106px - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--line, #d9d9d5);
  background: var(--paper, #fff);
  color: var(--ink, #181818);
  box-shadow: 0 4px 24px rgb(0 0 0 / 10%);
  font: 400 16px/1.45 var(--sans, system-ui, sans-serif);
}

.cookie-notice p {
  margin: 0 0 12px;
}

.cookie-notice button {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  background: var(--accent, #ac431c);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.cookie-notice button:hover {
  text-decoration: underline;
}

.cookie-notice button:focus-visible {
  outline: 2px solid var(--ink, #181818);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .cookie-notice {
    inset-inline: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 12px 14px;
  }
}
