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

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: clamp(14px, 3vw, 36px);
  bottom: clamp(14px, 3vw, 30px);
  left: clamp(14px, 3vw, 36px);
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid #0876bc;
  border-radius: 14px;
  background: rgba(35, 35, 37, 0.98);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
}

.cookie-banner__inner {
  display: flex;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.cookie-banner__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.cookie-banner__text {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.cookie-banner__link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}

.cookie-banner__link:hover {
  text-decoration-color: #fff;
}

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

.cookie-banner__button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font: 500 13px/1.2 Montserrat, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.cookie-banner__button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.cookie-banner__button--primary {
  border-color: #0876bc;
  background: #0876bc;
}

.cookie-banner__button--primary:hover {
  border-color: #0a8bd9;
  background: #0a8bd9;
}

.cookie-banner__button:focus-visible,
.cookie-banner__link:focus-visible {
  border-radius: 4px;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media screen and (max-width: 700px) {
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .cookie-banner__inner {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__button {
    flex: 1 1 0;
  }
}

@media screen and (max-width: 380px) {
  .cookie-banner__actions {
    flex-direction: column-reverse;
  }

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