/* Cookie consent banner */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  color: #1f2937;
  background: #fff;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; /* shown by JS */
  box-shadow: 0 -6px 16px rgba(0,0,0,0.12);
  border-top: 3px solid #28a745;
}
#cookie-banner .cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
#cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #1f2937;
}
#cookie-banner a {
  color: #28a745;
  text-decoration: underline;
}
#cookie-banner a:hover {
  text-decoration: none;
  color: #2e7d32;
}
#cookie-banner button#cookie-accept {
  margin-left: 0;
  margin-top: 8px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .04s ease, opacity .2s ease;
}
#cookie-banner button#cookie-accept:hover {
  background: #2e7d32;
}
#cookie-banner button#cookie-accept:active {
  transform: translateY(1px);
}
#cookie-banner button#cookie-accept:focus {
  outline: 2px solid #b7f7c8;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  #cookie-banner .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  #cookie-banner button#cookie-accept {
    width: 100%;
    margin-left: 0;
  }
}

/* Десктоп: кнопка справа, с учётом правого виджета чата */
@media (min-width: 768px) {
  #cookie-banner .cookie-content {
    flex-direction: row;
    align-items: center;
  }
  #cookie-banner button#cookie-accept {
    margin-top: 0;
    margin-left: auto;
  }
}
/* Добавляем правый отступ, чтобы не перекрываться с блоком "Отправьте нам сообщение" */
@media (min-width: 992px) {
  #cookie-banner {
    padding-right: 260px;
  }
}
@media (min-width: 1200px) {
  #cookie-banner {
    padding-right: 380px;
  }
}


