/**
 * Стили для баннера согласия на использование cookies
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: #fff;
    border: 1px solid #dadada;
    box-shadow: 0 4px 20px rgba(91, 90, 90, 0.25);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    border-radius: 12px;
}

#cookie-consent-banner.cookie-consent-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text p {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-consent-text p:last-child {
    margin-bottom: 0;
}

.cookie-consent-text strong {
    font-size: 15px;
    color: #212529;
    font-weight: 600;
}

.cookie-consent-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #EE3424;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: #c92d1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.cookie-btn-decline {
    background: #ffffff;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cookie-btn-decline:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.cookie-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.cookie-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Мобильная версия */
@media (max-width: 767px) {
    #cookie-consent-banner {
        bottom: 15px;
        left: 15px;
        right: 15px;
        max-width: none;
    }
    
    .cookie-consent-content {
        padding: 20px;
        gap: 14px;
    }
    
    .cookie-consent-text p {
        font-size: 12px;
    }
    
    .cookie-consent-text strong {
        font-size: 14px;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .cookie-link {
        text-align: center;
        width: 100%;
        display: block;
        margin-top: 4px;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 991px) {
    #cookie-consent-banner {
        max-width: 600px;
    }
}

/* Десктоп - размещение справа снизу */
@media (min-width: 768px) {
    #cookie-consent-banner {
        left: auto;
        right: 20px;
    }
}

/* Стили для настроек cookies */
.cookie-settings-view {
    max-height: 500px;
    overflow-y: auto;
}

.cookie-settings-list {
    margin: 0 0 16px 0;
}

.cookie-setting-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.cookie-setting-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-setting-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.cookie-setting-checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-setting-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-setting-info {
    flex: 1;
}

.cookie-setting-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.cookie-setting-desc {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

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

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

/* Мобильные стили для настроек */
@media (max-width: 767px) {
    .cookie-settings-view {
        max-height: 400px;
    }
    
    .cookie-setting-title {
        font-size: 13px;
    }
    
    .cookie-setting-desc {
        font-size: 11px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .cookie-btn-settings {
        order: 2;
    }
}
