.cookie-notice {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(520px, calc(100vw - 36px));
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: #171717;
  box-shadow: 0 18px 52px rgba(23, 23, 23, 0.16), 0 3px 10px rgba(23, 23, 23, 0.08);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: cookie-notice-in 220ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.cookie-notice-floating {
  position: fixed;
  right: auto;
  bottom: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  left: max(18px, env(safe-area-inset-left));
  z-index: 90;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cookie-notice,
.cookie-notice * {
  box-sizing: border-box;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice-copy {
  min-width: 0;
  padding-right: 36px;
}

.cookie-notice h2 {
  margin: 0;
  color: #171717;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cookie-notice-copy p {
  max-width: 470px;
  margin: 5px 0 0;
  color: #555d68;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-notice-actions a {
  color: #30343b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(48, 52, 59, 0.35);
  text-underline-offset: 3px;
}

.cookie-notice-actions a:hover {
  color: #171717;
  text-decoration-color: currentColor;
}

.cookie-notice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-notice-allow {
  min-height: 44px;
  padding: 9px 22px;
  border: 1px solid #171717;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cookie-notice-allow:hover {
  border-color: #333333;
  background: #333333;
  transform: translateY(-1px);
}

.cookie-notice-actions a:focus-visible,
.cookie-notice-close:focus-visible,
.cookie-notice-allow:focus-visible,
.footer-cookie-preferences:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 3px;
}

.cookie-notice-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #626b77;
  font: 400 22px/1 "Inter", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.cookie-notice-close:hover {
  background: #f1f3f5;
  color: #171717;
}

.cookie-notice-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.footer-cookie-preferences {
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555d68;
  font: inherit;
  font-size: 14px;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-cookie-preferences:hover {
  color: #171717;
}

@keyframes cookie-notice-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 561px) {
  .cookie-notice {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(1180px, calc(100vw - 36px));
  }

  .cookie-notice-copy {
    padding-right: 0;
  }

  .cookie-notice-actions {
    gap: 16px;
    padding-right: 38px;
  }

  .cookie-notice-actions a {
    text-align: center;
  }

  .cookie-notice-floating {
    grid-template-columns: minmax(0, 1fr) 132px;
    width: min(660px, calc(100vw - 36px));
  }

  .cookie-notice-floating .cookie-notice-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 36px 0 0;
  }
}

@media (max-width: 560px) {
  .cookie-notice {
    width: auto;
    margin: 12px;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .cookie-notice-floating {
    right: 12px;
    right: max(12px, env(safe-area-inset-right));
    bottom: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    left: max(12px, env(safe-area-inset-left));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0;
  }

  .cookie-notice-actions {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    animation: none;
  }

  .cookie-notice-allow,
  .cookie-notice-close,
  .footer-cookie-preferences {
    transition: none;
  }

  .cookie-notice-allow:hover {
    transform: none;
  }
}
