.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid rgba(38, 36, 33, 0.14);
  border-radius: 12px;
  background: #f7f6f2;
  box-shadow: 0 24px 60px rgba(38, 36, 33, 0.2);
  color: #262421;
  font: 15px/1.5 'Golos Text', -apple-system, 'Segoe UI', Arial, sans-serif;
  animation: cookie-banner-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.cookie-banner *,
.cookie-banner *::before,
.cookie-banner *::after {
  box-sizing: border-box;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner__title {
  margin-bottom: 4px;
  font: 600 18px/1.3 'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;
}

.cookie-banner__text {
  color: #6b665f;
}

.cookie-banner a {
  color: #5b6b72;
}

.cookie-banner__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 14px;
  cursor: pointer;
}

.cookie-banner__checkbox {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #5b6b72;
  cursor: pointer;
}

.cookie-banner__checkbox:focus-visible {
  outline: 3px solid #5b6b72;
  outline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner__button {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #5b6b72;
  border-radius: 999px;
  background: transparent;
  color: #5b6b72;
  font: 600 15px/1.2 'Golos Text', -apple-system, 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner__button:active:not(:disabled) {
  transform: scale(0.98);
}

.cookie-banner__button:hover {
  background: #e6eae9;
}

.cookie-banner__button--primary {
  background: #5b6b72;
  color: #fff;
}

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

.cookie-banner__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cookie-banner__button--primary:disabled:hover {
  background: #5b6b72;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cookie-settings-link:hover {
  color: #fff;
}

@keyframes cookie-banner-in {
  from {
    opacity: 0;
    transform: translateY(calc(100% + 16px));
  }
}

@media (max-width: 560px) {
  .cookie-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.4;
  }

  .cookie-banner__title,
  .cookie-banner__text {
    display: inline;
  }

  .cookie-banner__title {
    font-size: 15px;
  }

  .cookie-banner__title::after {
    content: '. ';
  }

  .cookie-banner__check {
    margin: 10px 0;
  }

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

  .cookie-banner__button {
    padding: 8px 6px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }

  .cookie-banner__button {
    transition: none;
  }
}
