.cookie-notice {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1400;
  width: min(520px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(71, 85, 105, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  color: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
  font-family: inherit;
  animation: cookie-notice-in .22s ease-out;
}

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

.cookie-notice__content {
  min-width: 0;
  font-size: .78rem;
  line-height: 1.5;
}

.cookie-notice__content p {
  margin: 0;
}

.cookie-notice__content a {
  color: #166534;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__accept {
  flex: 0 0 auto;
  min-height: 38px;
  margin: 0;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  background: #166534;
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-notice__accept:hover {
  background: #14532d;
}

.cookie-notice__accept:focus-visible {
  outline: 3px solid rgba(22, 101, 52, .25);
  outline-offset: 2px;
}

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

@media (max-width: 540px) {
  .cookie-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-notice__accept {
    width: 100%;
  }
}

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