/* Стили для Cookie-баннера */

/* Баннер cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
    display: none; 
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.cookie-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-accept-all {
    background: #28a745;
    color: #fff;
}

.btn-accept-all:hover {
    background: #218838;
}

.btn-settings {
    background: #6c757d;
    color: #fff;
}

.btn-settings:hover {
    background: #5a6268;
}

.btn-reject {
    background: #dc3545;
    color: #fff;
}

.btn-reject:hover {
    background: #c82333;
}

/* Модальное окно настроек */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cookie-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.cookie-close:hover {
    color: #000;
}

.cookie-option {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }

    .cookie-modal-content {
        margin: 20px;
        padding: 20px;
    }
}