.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
  padding: 16px 18px;
  color: #f7f9fc;
  background: #0b1d36;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgb(5 17 35 / 24%);
}

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

.cookie-banner__copy {
  min-width: 0;
  flex: 1;
}

.cookie-banner__copy p {
  max-width: 68ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner__copy a {
  display: inline-block;
  margin-top: 5px;
  color: #b9d1ff;
  font-size: 13px;
  line-height: 1.4;
  text-underline-offset: 3px;
}

.cookie-banner__copy a:hover,
.cookie-banner__copy a:focus-visible {
  color: #ffffff;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.cookie-button:active {
  transform: scale(0.97);
}

.cookie-button:focus-visible,
.footer-cookie-button:focus-visible {
  outline: 2px solid #8db3ff;
  outline-offset: 3px;
}

.cookie-button--primary {
  color: #ffffff;
  background: #245ee0;
}

.cookie-button--primary:hover {
  background: #1c4fbe;
}

.cookie-button--secondary {
  color: #f7f9fc;
  background: transparent;
  border-color: rgb(247 249 252 / 44%);
}

.cookie-button--secondary:hover {
  background: rgb(255 255 255 / 9%);
  border-color: rgb(247 249 252 / 70%);
}

.footer-cookie-button {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.footer-cookie-button:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 699px) {
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .cookie-banner__copy p {
    font-size: 13px;
    line-height: 1.4;
  }

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

  .cookie-button {
    width: 100%;
    padding-inline: 12px;
  }
}

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