.tmpl-pros-cons-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.tmpl-pros-cons-header {
    display: flex;
    background-color: #f4f4f4;
}

.tmpl-pros-title, .tmpl-cons-title {
    width: 50%;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.tmpl-pros-title {
    background-color: #28a745;
    color: white;
}

.tmpl-cons-title {
    background-color: #dc3545;
    color: white;
}

.tmpl-pros-cons-content {
    display: flex;
}

.tmpl-pros-list, .tmpl-cons-list {
    width: 50%;
    padding: 15px;
}

.tmpl-pros-item, .tmpl-cons-item {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.tmpl-pros-item {
    background-color: #e6f4ea;
}

.tmpl-cons-item {
    background-color: #fde7e9;
}

.tmpl-pros-item:hover, .tmpl-cons-item:hover {
    opacity: 0.8;
}

.tmpl-pros-item i, .tmpl-pros-item svg,
.tmpl-cons-item i, .tmpl-cons-item svg {
    margin-right: 10px;
    font-size: 16px;
}

.tmpl-pros-item i, .tmpl-pros-item svg {
    color: #28a745;
}

.tmpl-cons-item i, .tmpl-cons-item svg {
    color: #dc3545;
}

/* Hover эффекты для иконок */
.tmpl-pros-item.has-hover-animation:hover i,
.tmpl-pros-item.has-hover-animation:hover svg {
    animation: bounce 0.5s ease;
}

.tmpl-cons-item.has-hover-animation:hover i,
.tmpl-cons-item.has-hover-animation:hover svg {
    animation: shake 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Стили для рейтинга элементов */
.tmpl-item-rating {
    flex-shrink: 0;
    margin-left: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: auto;
}

.tmpl-pros-rating {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.tmpl-cons-rating {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Стили для футера с рейтингом */
.tmpl-pros-cons-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #2d2d2d;
}

.tmpl-rating-summary {
    max-width: 800px;
    margin: 0 auto;
}

.tmpl-rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tmpl-rating-row:last-child {
    margin-bottom: 0;
}

.tmpl-rating-label {
    flex: 0 0 150px;
    color: #fff;
    font-weight: 500;
}

.tmpl-rating-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.tmpl-rating-fill {
    height: 100%;
    background: #28a745;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tmpl-pros-bar .tmpl-rating-fill {
    background: #28a745;
}

.tmpl-cons-bar .tmpl-rating-fill {
    background: #dc3545;
}

.tmpl-rating-value {
    flex: 0 0 60px;
    text-align: right;
    color: #fff;
    font-weight: 500;
}

.tmpl-total-rating {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.tmpl-total-rating .tmpl-rating-label {
    color: #fff;
    font-weight: 600;
}

.tmpl-total-rating .tmpl-rating-value {
    color: #fff;
    font-weight: 600;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 767px) {
    .tmpl-pros-cons-content {
        flex-direction: column;
    }

    .tmpl-pros-list, .tmpl-cons-list {
        width: 100%;
    }
    
    .tmpl-pros-title, .tmpl-cons-title {
        font-size: 18px;
        padding: 15px 20px;
    }
    
    .tmpl-pros-list, .tmpl-cons-list {
        padding: 20px;
    }
    
    .tmpl-pros-item, .tmpl-cons-item {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .tmpl-pros-item span, .tmpl-cons-item span {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .tmpl-pros-item i, .tmpl-pros-item svg,
    .tmpl-cons-item i, .tmpl-cons-item svg {
        width: 18px;
        height: 18px;
        margin-right: 12px;
    }
    
    .tmpl-pros-cons-footer {
        padding: 20px;
    }
    
    .tmpl-item-rating {
        margin-left: 10px;
        padding: 2px 6px;
        font-size: 12px;
    }
}

.tmpl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.tmpl-icon i {
    font-size: 20px;
    width: 1em;
    height: 1em;
    position: relative;
    display: block;
}

.tmpl-icon svg {
    width: 100%;
    height: 100%;
}

.tmpl-pros-icon i,
.tmpl-pros-icon svg {
    color: #28a745;
    fill: #28a745;
}

.tmpl-cons-icon i,
.tmpl-cons-icon svg {
    color: #dc3545;
    fill: #dc3545;
}

.tmpl-pros-item:hover .tmpl-icon,
.tmpl-cons-item:hover .tmpl-icon {
    transform: scale(1.2);
}
