/* Letu Reviews Styles */
.letu-reviews-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.letu-reviews-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.letu-reviews-summary {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.letu-reviews-rating {
    flex: 1;
}

.letu-rating-average {
    text-align: center;
}

.letu-rating-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--wf-main-color);
    line-height: 1;
}

.letu-stars {
    display: flex;
    gap: 2px;
    margin: 10px 0;
}

.letu-stars--large {
    justify-content: center;
}

.letu-stars--selectable {
    cursor: pointer;
}

.letu-star {
    color: #ddd;
    font-size: 24px;
    transition: color 0.2s;
}

.letu-stars--large .letu-star {
    font-size: 24px;
}

.letu-star--active {
    color: var(--wf-main-color);
}

.letu-stars--selectable input[type="radio"] {
    display: none;
}

.letu-stars--selectable label.letu-star {
    cursor: pointer;
    font-size: 24px;
}

.letu-stars--selectable input[type="radio"]:checked ~ label.letu-star {
    color: #ddd;
}

.letu-stars--selectable label.letu-star:hover,
.letu-stars--selectable label.letu-star:hover ~ label.letu-star {
    color: var(--wf-main-color);
}

.letu-reviews-count {
    font-size: 14px;
    color: #666;
}

.letu-reviews-distribution {
    flex: 2;
}

.letu-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.letu-rating-label {
    min-width: 70px;
    font-size: 14px;
    color: #666;
}

.letu-bar-container {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.letu-bar {
    height: 100%;
    background: var(--wf-main-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.letu-rating-count {
    min-width: 30px;
    font-size: 14px;
    color: #666;
    text-align: right;
}

/* Review Form */
.letu-review-form {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.letu-review-form h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.letu-form-rating {
    margin-bottom: 20px;
}

.letu-form-rating label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.letu-form-comment {
    margin-bottom: 20px;
}

.letu-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.letu-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

.letu-form-images {
    margin-bottom: 20px;
}
/* Контейнер для загрузки изображений */
.letu-form-images {
    margin-bottom: 20px;
}

.letu-form-images label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Контейнер для кнопки и превью */
.letu-image-upload {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Кнопка загрузки */
.letu-upload-button {
    display: inline-flex;
    padding: 12px 20px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    align-items: center;
    justify-content: center;
}

.letu-upload-button:hover {
    border-color: var(--wf-main-color);
    background: #fff8f5;
}

.letu-upload-button span {
    white-space: nowrap;
}

/* Контейнер для превью изображений */
.letu-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .letu-form-images label {
        font-size: 14px;
    }
    
    .letu-upload-button {
        width: 100%;
        padding: 10px 16px;
    }
    
    .letu-upload-button span {
        white-space: normal;
        text-align: center;
    }
}

/* Дополнительно: если текст все равно переносится, можно сделать так */
.letu-form-images label br {
    display: none;
}

.letu-form-images label {
    word-break: break-word;
    hyphens: auto;
}
.letu-form-images label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.letu-image-upload input[type="file"] {
    display: none;
}

.letu-upload-button {
    display: inline-block;
    padding: 12px 20px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.letu-submit-button {
    padding: 12px 30px;
    background: var(--wf-main-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.letu-submit-button:hover {
    background: #e55d00;
}

/* Reviews List */
.letu-reviews-list h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.letu-reviews {
    list-style: none;
    padding: 0;
    margin: 0;
}

.letu-review {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.letu-review:last-child {
    border-bottom: none;
}

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

.letu-review-author {
    font-weight: 600;
    color: #333;
}

.letu-verified-buyer {
    font-size: 12px;
    color: #28a745;
    margin-left: 8px;
}

.letu-review-date {
    font-size: 14px;
    color: #666;
}

.letu-review-rating {
    margin-bottom: 10px;
}

.letu-review-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.letu-review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.letu-review-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.letu-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.letu-review-image:hover img {
    transform: scale(1.05);
}

.letu-review-login {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 40px;
}

.letu-review-login a {
    color: var(--wf-main-color);
    text-decoration: none;
}

.letu-review-login a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .letu-reviews-summary {
        flex-direction: column;
        gap: 30px;
    }
    
    .letu-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.letu-reviews-list ol.letu-reviews {
    list-style: none;
    padding: 0;
    margin: 0;
}

.letu-review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.letu-review-item:last-child {
    border-bottom: none;
}

.letu-review-content {
    margin: 15px 0;
    line-height: 1.6;
    color: #333;
}

.letu-review-content p {
    margin: 0 0 10px 0;
}

.letu-review-content p:last-child {
    margin-bottom: 0;
}

/* Раскрывающаяся форма отзыва */
.letu-review-toggle {
    margin-bottom: 30px;
}

.letu-toggle-button {
display: inline-block;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--wf-main-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    user-select: none;
}

.letu-toggle-button:hover {
border-color: var(--wf-main-color);
    background: var(--wf-main-color);
    color: white;
}

.letu-toggle-button .letu-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.expanded {
border-color: var(--wf-main-color);
    background: var(--wf-main-color);
    color: white;
}

.letu-review-form {
    height: 0;
    overflow: hidden;
    margin-bottom: 0;
    padding: 0 20px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.4s ease;
    opacity: 0;
}

.letu-review-form.expanded {
    height: auto;
    margin-bottom: 40px;
    padding: 20px;
    opacity: 1;
}

/* Сообщение об ошибке оценки */
.letu-rating-error {
    color: #ff4757;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.letu-rating-error.show {
    display: block;
}

/* Исправленные стили для звездного рейтинга */
.letu-stars--selectable {
    cursor: pointer;
    display: flex;
    gap: 2px;
}

.letu-stars--selectable input[type="radio"] {
    display: none;
}

.letu-star {
    font-size: 24px;
    color: #ddd;
    transition: color 0.2s ease;
    cursor: pointer;
    position: relative;
}

/* Пустая звезда */
.letu-star::before {
    content: "☆";
}

/* Заполненная звезда при активности */
.letu-star--active::before {
    content: "★";
    color: var(--wf-main-color);
}

/* Подсветка при наведении на контейнер - УБРАНО */
/* .letu-stars--selectable:hover .letu-star::before {
    content: "★";
    color: var(--wf-main-color);
} */

/* Подсветка при наведении на конкретную звезду */
.letu-stars--selectable label:hover .letu-star::before {
    content: "★";
    color: var(--wf-main-color);
}

/* Подсветка всех звезд до текущей при наведении */
.letu-stars--selectable label:hover ~ label .letu-star::before {
    content: "☆";
    color: #ddd;
}

/* Подсветка всех предыдущих звезд при наведении */
.letu-stars--selectable label:hover .letu-star::before,
.letu-stars--selectable label:hover ~ label .letu-star::before {
    content: "★";
    color: var(--wf-main-color);
}

/* Сброс звезд после текущей при наведении */
.letu-stars--selectable label:hover ~ label .letu-star::before {
    content: "☆";
    color: #ddd;
}
/* Стили для блока общего рейтинга (без конфликтов) */
.letu-reviews-rating .letu-stars--large {
    justify-content: center;
}

.letu-reviews-rating .letu-star {
    color: #ddd;
    font-size: 24px;
}

.letu-reviews-rating .letu-star--active {
    color: var(--wf-main-color);
}

/* Стили для звезд в опубликованных отзывах */
.letu-review-rating .letu-stars {
    gap: 2px;
}

.letu-review-rating .letu-star {
    color: #ddd;
    font-size: 20px;
}

.letu-review-rating .letu-star--active {
    color: var(--wf-main-color);
}

/* Убедимся, что стили для формы не влияют на общий рейтинг */
.letu-reviews-rating .letu-stars--selectable,
.letu-reviews-rating .letu-stars--selectable input,
.letu-reviews-rating .letu-stars--selectable label,
.letu-reviews-rating .letu-stars--selectable .letu-star {
    all: revert;
}

.letu-reviews-rating .letu-stars--selectable {
    cursor: default !important;
}

.letu-reviews-rating .letu-stars--selectable .letu-star::before {
    content: "" !important;
}

.letu-reviews-rating .letu-stars--selectable:hover .letu-star,
.letu-reviews-rating .letu-stars--selectable label:hover .letu-star {
    color: inherit !important;
}
/* Стили для общего рейтинга товара */
.letu-rating-stars {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin: 10px 0;
}

.letu-rating-star {
    font-size: 24px;
    color: #ddd;
}

.letu-rating-star--active {
    color: var(--wf-main-color);
}

/* Стили для звезд в отдельных отзывах */
.letu-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.letu-review-star {
    font-size: 20px;
    color: #ddd;
}

.letu-review-star--active {
    color: var(--wf-main-color);
}
/* Стили для индикатора загрузки */
.letu-preview-item {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.letu-preview-item.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.letu-preview-item.loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid var(--wf-main-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.letu-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.letu-preview-item.loading img {
    opacity: 0.5;
}

.letu-preview-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e9ecef;
}

.letu-preview-progress-bar {
    height: 100%;
    background: var(--wf-main-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0 0 6px 6px;
}

.letu-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.letu-preview-item:hover .letu-preview-remove {
    opacity: 1;
}

.letu-preview-item.loading .letu-preview-remove {
    display: none;
}

/* Анимация загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.letu-preview-item.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Сообщение о статусе загрузки */
.letu-upload-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
}

.letu-preview-item.loading .letu-upload-status {
    display: block;
}
/* Стили для статуса отправки формы */
.letu-form-submit-status {
    display: none;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.letu-form-submit-status.loading {
    display: block;
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.letu-form-submit-status.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    animation: fadeIn 0.5s ease;
}

.letu-form-submit-status.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    animation: shake 0.5s ease;
}

.letu-form-submit-status.success br {
    display: block;
    margin: 5px 0;
    content: "";
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Индикатор загрузки для статуса */
.letu-form-submit-status.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
/* Стили для системных сообщений */
.letu-form-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.5s ease;
    border: 1px solid;
}

.letu-message-loading {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.letu-message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.letu-message-error {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
    animation: shake 0.5s ease;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.letu-form-message.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

/* Иконки для сообщений */
.letu-message-success::before {
    content: "✓ ";
    font-weight: bold;
}

.letu-message-error::before {
    content: "✗ ";
    font-weight: bold;
}

.letu-message-loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
/* Стили для сообщений загрузки изображений */
.letu-upload-message {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid;
}

.letu-upload-error {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.letu-upload-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.letu-upload-icon {
    font-size: 16px;
}

.letu-upload-text {
    font-size: 14px;
}

/* Анимации для сообщений */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.letu-upload-message.fade-out {
    animation: slideOut 0.3s ease forwards;
}

/* Адаптивность */
@media (max-width: 768px) {
    .letu-upload-message {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .letu-upload-icon {
        font-size: 14px;
    }
}