/* Фикс для кнопок в баннере - предотвращение выхода за пределы */

/* Контейнер баннера */
.cookie-banner,
.banner-container,
.notification-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 15px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Контейнер для кнопок */
.banner-buttons,
.cookie-buttons,
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Кнопки в баннере */
.banner-button,
.cookie-button,
.banner-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: fit-content;
}

/* Адаптивность - на мобильных кнопки переносятся */
@media (max-width: 768px) {
  .cookie-banner,
  .banner-container,
  .notification-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-buttons,
  .cookie-buttons,
  .banner-actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .banner-button,
  .cookie-button,
  .banner-btn {
    width: 100%;
    margin-bottom: 8px;
  }

  .banner-button:last-child,
  .cookie-button:last-child,
  .banner-btn:last-child {
    margin-bottom: 0;
  }
}

/* Очень маленькие экраны - кнопки друг под другом */
@media (max-width: 480px) {
  .banner-buttons,
  .cookie-buttons,
  .banner-actions {
    gap: 8px;
  }

  .banner-button,
  .cookie-button,
  .banner-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Специфичные стили для кнопки настроек */
.settings-button,
.configure-button {
  background: transparent;
  border: 1px solid #ccc;
  color: #666;
}

.settings-button:hover,
.configure-button:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* Кнопка принять */
.accept-button,
.accept-all-button {
  background: rgb(225, 0, 46);
  color: white;
}

.accept-button:hover,
.accept-all-button:hover {
  background: rgb(225, 0, 46, 0.9);
}

/* Кнопка только необходимые */
.necessary-button,
.reject-button {
  background: #666;
  color: white;
}

.necessary-button:hover,
.reject-button:hover {
  background: #555;
}

/* Пример использования для типичного cookie баннера */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-message {
  flex: 1;
  min-width: 250px;
  color: #333;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* На маленьких экранах сообщение и кнопки друг под другом */
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-message {
    text-align: center;
    margin-bottom: 15px;
  }

  .cookie-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions button {
    width: 100%;
    margin-bottom: 8px;
  }

  .cookie-actions button:last-child {
    margin-bottom: 0;
  }
}