
/* Стили для баннера cookie */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    z-index: 9999;
    display: none;
    font-family: Arial, sans-serif;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-banner.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-text a {
    color: #4da6ff;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #80c1ff;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.cookie-btn.accept {
    background: #4da6ff;
    color: white;
}

.cookie-btn.accept:hover {
    background: #3388e6;
}

.cookie-btn.reject {
    background: #666;
    color: white;
}

.cookie-btn.reject:hover {
    background: #555;
}

.cookie-btn.customize {
    background: transparent;
    color: #4da6ff;
    border: 1px solid #4da6ff;
}

.cookie-btn.customize:hover {
    background: rgba(77, 166, 255, 0.1);
}

/* Модальное окно настроек (скрыто по умолчанию) */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cookie-settings-modal.active {
    display: flex;
}

.cookie-settings-content {
    background: white;
    color: #333;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.cookie-settings-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.cookie-settings-body {
    margin-bottom: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0;
    color: #333;
}

.cookie-category-toggle {
    position: relative;
}

.cookie-category-toggle input[type="checkbox"] {
    display: none;
}

.cookie-category-toggle label {
    display: block;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.cookie-category-toggle label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-category-toggle input:checked + label {
    background: #4da6ff;
}

.cookie-category-toggle input:checked + label:after {
    transform: translateX(24px);
}

.cookie-category-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cookie-btn.save {
    background: #4da6ff;
    color: white;
}

.cookie-btn.cancel {
    background: #666;
    color: white;
}