/* cookie-notice.css */

.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  max-width: 700px;
  width: calc(100% - 40px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 2147483647 !important; /* Максимальное значение z-index */
  transition: transform 0.4s ease-in-out;
  display: none;
}

.cookie-notice.show {
  display: block;
  transform: translateX(-50%) translateY(0);
}

.cookie-notice__content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.cookie-notice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.cookie-notice__link {
  color: #0066cc;
  text-decoration: underline;
}

.cookie-notice__link:hover {
  color: #0052a3;
}

.cookie-notice__button {
  background: #f95b07;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: center;
}

.cookie-notice__button:hover {
  background: #e04f06;
}

@media (max-width: 768px) {
  .cookie-notice {
    bottom: 80px; /* Подняли выше на мобилке */
    left: 50%;
    right: auto;
    max-width: none;
    width: calc(100% - 20px);
    padding: 15px;
    z-index: 2147483647 !important;
  }
  
  .cookie-notice__text {
    font-size: 13px;
  }
  
  .cookie-notice__button {
    width: 100%;
  }
}
