css
.cookie-consent-container {
    position: fixed; /* Фиксирует баннер относительно окна браузера */
    up: 0;
    left: 0;
    width: 50%;
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);    
    z-index: 1000; /* Убедитесь, что баннер поверх других элементов */
    display: none; /* Изначально скрыт */
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-sizing: border-box; /* Чтобы padding не добавлял лишнюю ширину */
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text a {
    color: #4da6ff;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
}

.cookie-consent-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#acceptCookies {
    background-color: #4CAF50;
    color: white;
}

#rejectCookies {
    background-color: #e0e0e0;
    color: #333;
}

/* Скрываем баннер по умолчанию */
#cookieConsentContainer {
    display: none;
}

.cookie-modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* Затемненный фон */
}

.cookie-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.cookie-modal-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cookie-modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#acceptCookies {
  background-color: #4CAF50;
  color: white;
}

#rejectCookies {
  background-color: #e0e0e0;
  color: #333;
}