.cookie-notice {
  --gutter: clamp(1rem, 4vw, 5rem);
  position: fixed;
  inset: auto 0 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
  padding: 1.25rem max(var(--gutter), env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: #333538;
  border-top: 1px solid #626367;
  border-radius: 20px 20px 0 0;
  color: #fff;
  box-shadow: 0 -4px 20px #0003;
  font: 400 .9375rem/1.45 system-ui, sans-serif;
}
.cookie-notice p { margin: 0; font: 500 .8125rem/1.5 Winston, Arial, sans-serif; }
.cookie-notice a { color: #ff9cb2; text-decoration: underline; text-underline-offset: .15em; }
.cookie-notice button {
  flex: none;
  min-height: 44px;
  padding: .65rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: #ff6b8a;
  color: #23181c;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.cookie-notice button:hover { background: #ff89a1; }
.cookie-notice :focus-visible { outline: 2px solid white; outline-offset: 3px; }

@media (max-width: 40rem) {
  .cookie-notice { flex-direction: column; align-items: stretch; gap: .75rem; padding-top: 1rem; }
}

/* На низком экране текст прокручивается, кнопка остаётся доступной. */
.cookie-notice p { max-height: 40vh; max-height: 40dvh; overflow-y: auto; }
