/* Стили для уведомления о cookies */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 40, 65, 0.95);
    color: white;
    padding: 15px 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-notice-text {
    flex: 1;
    min-width: 300px;
}

.cookie-notice-text p {
    margin: 0;
    color: #ffffff;
}

.cookie-notice-text a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-notice-text a:hover {
    color: #ffed4e;
}

.cookie-notice-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-notice-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.cookie-notice-btn-accept {
    background: #28a745;
    color: white;
}

.cookie-notice-btn-accept:hover {
    background: #218838;
    color: white;
}

.cookie-notice-btn-decline {
    background: #dc3545;
    color: white;
}

.cookie-notice-btn-decline:hover {
    background: #c82333;
    color: white;
}

.cookie-notice-btn-settings {
    background: #6c757d;
    color: white;
}

.cookie-notice-btn-settings:hover {
    background: #5a6268;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-notice {
        padding: 12px 15px;
    }
    
    .cookie-notice-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-notice-text {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .cookie-notice-buttons {
        justify-content: center;
    }
    
    .cookie-notice-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .cookie-notice-buttons {
        flex-direction: column;
    }
    
    .cookie-notice-btn {
        width: 100%;
    }
}

/* Стили для настроек cookies */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-settings-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cookie-settings-close:hover {
    color: #333;
}

.cookie-settings h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.cookie-category h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.cookie-category p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.cookie-toggle > div {
    flex: 1;
    min-width: 0;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-left: auto;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #28a745;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-settings-buttons {
    margin-top: 20px;
    text-align: center;
}

.cookie-settings-buttons .cookie-notice-btn {
    margin: 0 5px;
}

/* Дополнительные стили для корректного отображения переключателей */
@media (max-width: 600px) {
    .cookie-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-switch {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .cookie-category {
        padding: 12px;
    }
    
    .cookie-settings-content {
        padding: 20px;
        margin: 10px;
    }
} 