/* ===== КОНТЕЙНЕР ВИДЖЕТА ===== */
.wl7-comments-widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999999;
    max-width: 360px;
    width: 100%;
    display: block;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {
    .wl7-comments-widget-container {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 60px;
        max-width: 95%;
        width: 100%;
    }
}

/* ===== ОСНОВНОЙ ВИДЖЕТ ===== */
.wl7-comments-widget {
    background: #ffffff;
    border-radius: 24px;
    -webkit-box-shadow: 5px 5px 60px rgba(36, 40, 43, 0.51);
    box-shadow: 5px 5px 60px rgba(36, 40, 43, 0.51);	
    overflow: hidden;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.wl7-comments-widget-inner {
    position: relative;
    padding: 0;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* ===== КНОПКА ЗАКРЫТИЯ ===== */
.wl7-comments-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: background 0.2s;
    padding: 0;
}

.wl7-comments-close-button:hover {
    background: rgba(0,0,0,0.12);
}

.wl7-comments-close-button svg {
    width: 14px;
    height: 14px;
    fill: #1a1a1a;
    display: block;
}

/* ===== СЛАЙДЕР ===== */
.wl7-comments-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: auto;
}

.wl7-comments-swiper-wrapper {
    display: flex;
    transition: transform 0.4s ease-out;
    will-change: transform;
    height: auto;
    align-items: stretch;
}

.wl7-comments-swiper-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
}

/* ===== КАРТОЧКА ОТЗЫВА ===== */
.wl7-comments-card {
    padding: 20px 16px 0px 20px;
    display: flex;
    gap: 12px;
    background: #ffffff;
    height: auto;
}

@media (max-width: 480px) {
    .wl7-comments-card {
        padding: 16px 12px 12px 16px;
        gap: 8px;
    }
    
    .wl7-comments-card-inner {
        gap: 8px;
    }
    
    .wl7-comments-card-image {
        flex: 0 0 100px;
        min-height: 150px;
    }
    
    .wl7-comments-author-info {
        min-height: 150px;
    }
}

.wl7-comments-card-inner {
    display: flex;
    width: 100%;
    gap: 12px;
    height: auto;
}

.wl7-comments-card-image {
    flex: 0 0 120px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f7;
    height: auto;
    min-height: 180px;
    align-self: stretch;
}

.wl7-comments-card-image-inner {
    height: 100%;
    width: 100%;
}

.wl7-comments-card-image-inner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wl7-comments-author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 180px;
}

.wl7-comments-meta-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.wl7-comments-date,
.wl7-comments-author,
.wl7-comments-product-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f7;
    color: #666666;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 11px;
    line-height: 1.3;
    width: fit-content;
    max-width: 100%;
}

.wl7-comments-meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}

.wl7-comments-product-title a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s;
    white-space: normal !important; /* РАЗРЕШАЕМ ПЕРЕНОС */
    word-break: break-word !important; /* РАЗРЕШАЕМ ПЕРЕНОС СЛОВ */
    overflow: visible !important; /* НЕ ОБРЕЗАЕМ */
    text-overflow: clip !important; /* НЕ СТАВИМ МНОГОТОЧИЕ */
    max-width: none !important; /* УБИРАЕМ ОГРАНИЧЕНИЕ ШИРИНЫ */
    display: inline; /* ОБЫЧНЫЙ ТЕКСТ */
}

.wl7-comments-product-title a:hover {
    color: #0d0d0d;
}

.wl7-comments-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
	min-height: 98px;
}

.wl7-comments-text {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    word-wrap: break-word;
    flex: 1;
    font-style: italic;
    padding-left: 8px;
    border-left: 2px solid #cbff5c;
    white-space: normal;
    overflow: visible;
	height: 100%;
    max-height: none;
}

.wl7-comments-button-container {
    width: 100%;
    flex-shrink: 0;
}

.wl7-comments-button {
    display: block;
    background: #cbff5c;
    color: #222;
    border: none;
    border-radius: 40px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
    text-decoration: none;
}

.wl7-comments-button:hover {
    background: #bcf04a;
}

/* ===== НАВИГАЦИЯ ===== */
.wl7-comments-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    height: auto;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .wl7-comments-carousel-controls {
        padding: 10px 16px 12px;
    }
    
    .wl7-comments-arrow {
        width: 28px;
        height: 28px;
    }
    
    .wl7-comments-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .wl7-comments-thumbnail {
        width: 5px;
        height: 5px;
    }
    
    .wl7-comments-thumbnail.active {
        width: 20px;
    }
}

.wl7-comments-thumbnails {
    display: flex;
    gap: 6px;
    align-items: center;
}

.wl7-comments-thumbnail {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #777;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.wl7-comments-thumbnail.active {
    width: 24px;
    background: transparent;
    border: 0.2px solid #222;
}

.wl7-comments-thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    animation: wl7-comments-progress 5s linear forwards;
    transform-origin: left;
}

@keyframes wl7-comments-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.wl7-comments-arrows {
    display: flex;
    gap: 8px;
}

.wl7-comments-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.wl7-comments-arrow:hover {
    background: #e5e5e5;
}

.wl7-comments-arrow svg {
    width: 18px;
    height: 18px;
    fill: #1a1a1a;
}
/* ===== КАРТОЧКА БЕЗ ИЗОБРАЖЕНИЯ ===== */
.wl7-comments-card-no-image {
    padding: 20px 16px 0px 20px;
}

.wl7-comments-card-inner-no-image {
    gap: 0;
}

.wl7-comments-author-info-full {
    width: 100%;
    min-width: 100%;
}

/* Для мобильных */
@media (max-width: 480px) {
    .wl7-comments-card-no-image {
        padding: 16px 12px 12px 16px;
    }
}