/* Баннер согласия на cookies.
   Назначение: сообщает об использовании cookies и даёт принять или отклонить.
   Цвета берутся из общих переменных лендинга. */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 60;
  width: min(720px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

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

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--navy) 16%, transparent);
  pointer-events: auto;
}

.cookie-banner__text {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: color-mix(in srgb, var(--navy) 55%, #9aafc6);
}

.cookie-banner__link {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  text-decoration: none;
}

.cookie-banner__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.cookie-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-banner__button--accept {
  border: 0;
  background: var(--accent-color);
  color: #fff;
}

.cookie-banner__button--accept:hover {
  background: color-mix(in srgb, var(--accent-color) 82%, #030c23);
}

.cookie-banner__button--reject {
  border: 1px solid var(--accent-color);
  background: #fff;
  color: var(--accent-color);
}

.cookie-banner__button--reject:hover {
  background: color-mix(in srgb, var(--accent-color) 8%, #fff);
}

.cookie-banner__button:focus-visible,
.cookie-banner__link:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .cookie-banner {
    bottom: 10px;
  }

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

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__button {
    flex: 1;
  }
}
