.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 1000;
  color: #f7f2e8;
  background: #101512;
  border-top: 1px solid rgba(247, 242, 232, 0.16);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.4);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(100%);
}

.cookie-banner__inner {
  width: min(100% - 32px, 1100px);
  margin-inline: auto;
  padding-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner__text {
  max-width: 72ch;
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cookie-banner__text a {
  color: #a7d36f;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.cookie-banner__button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding-inline: 17px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cookie-banner__button--primary {
  color: #06110c;
  background: #a7d36f;
}

.cookie-banner__button--primary:hover {
  background: #b9df89;
}

.cookie-banner__button--secondary {
  color: #f7f2e8;
  background: transparent;
  border-color: rgba(247, 242, 232, 0.3);
}

.cookie-banner__button--secondary:hover {
  background: rgba(247, 242, 232, 0.08);
  border-color: rgba(247, 242, 232, 0.5);
}

.cookie-banner__button:focus-visible,
.cookie-banner__text a:focus-visible {
  outline: 3px solid #f0b766;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__button {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .cookie-banner__inner {
    width: min(100% - 24px, 1100px);
    padding-block: 14px;
  }

  .cookie-banner__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition-duration: 1ms;
  }
}
