/* Cookie-баннер consult-gp.ru — плавающая плашка внизу экрана
   Путь: /local/templates/main/css/cookie-consent.css */

.cookie-consent {
  position: fixed;
  left: 30px;
  right: 440px; /* место под кнопку и приветствие чата Битрикс24 */
  bottom: 24px;
  z-index: 999; /* выше шапки, ниже модалок и виджета Битрикс24 */
  max-width: 1290px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 40px;
  padding: 22px 64px 22px 30px;
  background: #fff;
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
          box-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
  font-family: "Open Sans", Arial, sans-serif;
  color: #333;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
  -webkit-transform: none;
          transform: none;
}

.cookie-consent__body {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

.cookie-consent__title {
  margin: 0 0 6px 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: #333;
}

.cookie-consent__text {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
  color: #555;
}

.cookie-consent__link,
.cookie-consent__link:visited {
  color: #C61954;
  text-decoration: none;
}

.cookie-consent__link:hover {
  text-decoration: underline;
}

.cookie-consent__btn {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  min-width: 140px;
  padding: 11px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: #fff;
  background: #C61954;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.cookie-consent__btn:hover {
  background: transparent;
  color: #C61954;
  border-color: #C61954;
}

.cookie-consent__btn:focus-visible,
.cookie-consent__close:focus-visible {
  outline: 2px solid #C61954;
  outline-offset: 2px;
}

/* Крестик — нарисован так же, как .close-header-catalog на сайте */
.cookie-consent__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-consent__close::before,
.cookie-consent__close::after {
  content: "";
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 1px);
  width: 14px;
  height: 2px;
  background: #999;
  -webkit-transition: background 0.3s ease-in-out;
  transition: background 0.3s ease-in-out;
}

.cookie-consent__close::before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.cookie-consent__close::after {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.cookie-consent__close:hover::before,
.cookie-consent__close:hover::after {
  background: #C61954;
}

/* На средних экранах сужаем зазор под чат, но так, чтобы приветствие не наезжало */
@media (max-width: 1100px) {
  .cookie-consent {
    right: 30px;
    bottom: 110px; /* поднимаем над окном приветствия чата */
  }
}

@media (max-width: 767px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 90px; /* над кнопкой чата */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    gap: 14px;
    padding: 18px 16px 16px;
  }

  .cookie-consent__title {
    padding-right: 24px;
  }

  .cookie-consent__text {
    font-size: 12px;
    line-height: 17px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    -webkit-transition: none;
    transition: none;
  }
}
