.cookie-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: min(420px, calc(100vw - 48px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(155, 132, 78, 0.22);
  border-radius: 22px;
  background: rgba(250, 247, 239, 0.965);
  box-shadow: 0 20px 52px rgba(28, 45, 38, 0.18), 0 3px 12px rgba(28, 45, 38, 0.08);
  color: #173c33;
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.985);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 520ms cubic-bezier(.22,.61,.36,1),
    transform 520ms cubic-bezier(.22,.61,.36,1),
    visibility 0s linear 520ms;
}

.cookie-notice.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.cookie-notice.is-leaving {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.99);
  pointer-events: none;
}

.cookie-notice__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(176, 143, 67, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(239,230,209,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.cookie-notice__mark img {
  display: block;
  width: 22px;
  height: 32px;
  object-fit: contain;
}

.cookie-notice__content {
  min-width: 0;
}

.cookie-notice__eyebrow {
  margin: 1px 0 5px;
  color: #9d7d35;
  font: 650 10px/1.2 Onest, Inter, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cookie-notice__title {
  margin: 0;
  color: #14392f;
  font: 600 20px/1.12 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.015em;
}

.cookie-notice__text {
  margin: 8px 0 14px;
  color: #5e675f;
  font: 400 13px/1.55 Onest, Inter, system-ui, sans-serif;
}

.cookie-notice__text a {
  color: #315f50;
  text-decoration-line: underline;
  text-decoration-color: rgba(49, 95, 80, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-notice__text a:hover {
  color: #153e33;
  text-decoration-color: currentColor;
}

.cookie-notice__action {
  min-height: 42px;
  width: 100%;
  border: 1px solid #1b5a49;
  border-radius: 13px;
  background: #1c5d4c;
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(28, 93, 76, .16);
  cursor: pointer;
  font: 600 13px/1 Onest, Inter, system-ui, sans-serif;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cookie-notice__action:hover {
  background: #174d40;
  box-shadow: 0 10px 22px rgba(28, 93, 76, .2);
  transform: translateY(-1px);
}

.cookie-notice__action:active {
  transform: translateY(0);
}

.cookie-notice :focus-visible {
  outline: 3px solid rgba(181, 143, 57, .42);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie-notice {
    right: 14px;
    left: 14px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    width: auto;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 19px;
  }

  .cookie-notice__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .cookie-notice__mark img {
    width: 19px;
    height: 28px;
  }

  .cookie-notice__title {
    font-size: 19px;
  }

  .cookie-notice__text {
    margin-bottom: 12px;
    font-size: 12.5px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice,
  .cookie-notice.is-visible,
  .cookie-notice.is-leaving,
  .cookie-notice__action {
    transition: none !important;
    transform: none !important;
  }
}
