.cookie-banner[hidden] {
  display: none;
}
.cookie-banner {
  position: fixed;
  z-index: 30;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: 24px;
  left: auto;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  width: min(440px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid #e4e8e4;
  border-radius: 26px;
  background: #fff;
  color: #171717;
  box-shadow: 0 12px 60px rgba(0, 0, 0, .16);
  animation: cookie-appear .55s cubic-bezier(.16, 1, .3, 1);
}
.cookie-symbol {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #eef5ef;
  color: #147024;
}
.cookie-copy {
  flex: 1;
  min-width: 0;
}
.cookie-copy h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.04em;
}
.cookie-copy p {
  margin: 0;
  color: #626762;
  font-size: 12px;
  line-height: 1.65;
}
.cookie-details {
  margin-top: 12px;
  font-size: 11px;
}
.cookie-details summary {
  width: fit-content;
  cursor: pointer;
  color: #147024;
  font-weight: 700;
}
.cookie-details p {
  margin-top: 10px;
  font-size: 11px;
}
.cookie-actions {
  display: flex;
  flex: 1 0 100%;
  gap: 8px;
}
.cookie-actions button {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
  transition: background .2s ease;
}
.cookie-accept {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #147024;
  color: #fff;
}
.cookie-accept:hover {
  background: #105b1d;
}
.cookie-necessary {
  border: 1px solid #d7e1d9;
  background: #fff;
  color: #147024;
}
.cookie-necessary:hover {
  background: #eef5ef;
}
.cookie-banner button:focus-visible,
.cookie-details summary:focus-visible {
  outline: 2px solid #147024;
  outline-offset: 4px;
}
@keyframes cookie-appear {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 700px) {
  .cookie-banner {
    bottom: max(12px, env(safe-area-inset-bottom));
    right: 12px;
    width: min(440px, calc(100% - 24px));
    padding: 22px;
    flex-wrap: wrap;
    gap: 16px;
    border-radius: 22px;
  }
  .cookie-symbol {
    display: none;
  }
  .cookie-copy {
    flex-basis: 100%;
  }
  .cookie-copy h2 {
    font-size: 18px;
  }
  .cookie-actions {
    flex: 1 0 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}
