.taraheto-review-container {
    max-width: 720px;
    margin: 2rem auto;
}

.taraheto-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.taraheto-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.taraheto-header p {
    color: #6b7280;
    margin: 0;
}

.taraheto-card {
    border: 1px solid #e5e7eb;
    padding: 2rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.taraheto-field {
    margin-bottom: 1.5rem;
}

.taraheto-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.taraheto-req {
    color: #e11d48;
    margin-left: 4px;
}

.taraheto-field input[type="text"],
.taraheto-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.taraheto-field input[type="text"]:focus,
.taraheto-field textarea:focus {
    outline: none;
    border-color: #0ea5a4;
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.15);
}

.taraheto-stars {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

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

.taraheto-star {
    cursor: pointer;
    color: #e5e7eb;
    transition: color 0.2s;
    padding: 0.25rem;
}

.taraheto-star:hover,
.taraheto-star:hover ~ .taraheto-star,
.taraheto-stars input[type="radio"]:checked ~ .taraheto-star {
    color: #fbbf24;
}

.taraheto-stars input[type="radio"]:checked + .taraheto-star {
    color: #fbbf24;
}

.taraheto-upload-container {
    margin-top: 0.5rem;
}

.taraheto-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f9fafb;
}

.taraheto-upload-area:hover {
    border-color: #0ea5a4;
    background-color: #f0fdfa;
}

.taraheto-upload-area.dragover {
    border-color: #0ea5a4;
    background-color: #ccfbf1;
}

.taraheto-upload-area svg {
    margin-bottom: 1rem;
    color: #9ca3af;
}

.taraheto-upload-area p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.taraheto-upload-area span {
    font-size: 0.875rem;
    color: #6b7280;
}

.taraheto-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.taraheto-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.taraheto-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.taraheto-preview-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 0 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taraheto-actions {
    text-align: left;
    margin-top: 1.5rem;
}

.taraheto-submit {
    background: #0ea5a4;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.taraheto-submit:hover {
    background: #0d9488;
}

.taraheto-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.taraheto-spinner {
    animation: taraheto-spin 1s linear infinite;
}

@keyframes taraheto-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.taraheto-msg {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.taraheto-msg.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.taraheto-msg.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 640px) {
    .taraheto-card {
        padding: 1.5rem;
    }
    
    .taraheto-upload-area {
        padding: 1.5rem;
    }
    
    .taraheto-upload-area p {
        font-size: 0.9rem;
    }
    
    .taraheto-upload-area span {
        font-size: 0.8rem;
    }
}
.taraheto-spinner {
    width: fit-content !important;
    height: fit-content !important;
    display: flex;
    align-items: center;
}
button.taraheto-submit {
    width: 100%;
    text-align: center !important;
    display: flex
;
    justify-content: center;
    font-size: 18px;
    padding: 0;
}
/* استایل لیست نظرات taraheto */
.taraheto-list-wrap {
    margin: 2rem 0;
}

.taraheto-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.taraheto-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.taraheto-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.taraheto-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
	flex-direction: row !important;
}

.taraheto-meta-left {
    flex: 1;
}

.taraheto-meta-right {
    flex-shrink: 0;
}

.taraheto-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.taraheto-stars-line {
    font-size: 1.2rem;
    line-height: 1;
    color: #fbbf24;
}

.taraheto-date {
    color: #6b7280;
    font-size: 0.9rem;
    white-space: nowrap;
}

.taraheto-body {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.taraheto-thumbs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.taraheto-thumb {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.taraheto-thumb:hover {
    transform: scale(1.05);
}

.taraheto-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.taraheto-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;

}

.taraheto-end {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.taraheto-no-comments {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .taraheto-item-head {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .taraheto-meta-right {
        align-self: flex-start;
    }
    
    .taraheto-thumb img {
        width: 60px;
        height: 60px;
    }
    
    .taraheto-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .taraheto-thumb img {
        width: 50px;
        height: 50px;
    }
    
    .taraheto-stars-line {
        font-size: 1rem;
    }
    
    .taraheto-name {
        font-size: 1rem;
    }
}
/* لایت باکس taraheto */
.taraheto-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.taraheto-lightbox[hidden] {
    display: none;
}

.taraheto-lightbox:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.taraheto-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.taraheto-lightbox-content {
    position: relative;
    z-index: 99999999991;
    max-width: max-content;
    max-height: 90vh;

    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(.9) !important;
    transition: transform 0.3s ease;
        margin: auto;
}

/*.taraheto-lightbox:not([hidden]) .taraheto-lightbox-content {*/
/*    transform: scale(1);*/
/*}*/

.taraheto-lightbox-content img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
        margin: auto;
}

.taraheto-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgb(255 0 0);
    color: #ffffff;
    border-radius: 50%;
    font-size: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 99999999992;
}

.taraheto-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* انیمیشن برای لایت باکس */
@keyframes taraheto-lightbox-fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes taraheto-lightbox-fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.taraheto-lightbox[hidden] {
    animation: taraheto-lightbox-fadeOut 0.3s ease forwards;
}

.taraheto-lightbox:not([hidden]) {
    animation: taraheto-lightbox-fadeIn 0.3s ease forwards;
}

/* رسپانسیو لایت باکس */
@media (max-width: 768px) {
    .taraheto-lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .taraheto-lightbox-content img {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .taraheto-lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .taraheto-lightbox-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .taraheto-lightbox-content img {
        max-width: 98vw;
        max-height: 90vh;
    }
    
    .taraheto-lightbox-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}
/* به‌روزرسانی استایل thumbs */
.taraheto-thumbs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.taraheto-thumb {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.taraheto-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.taraheto-thumb:active {
    transform: scale(0.95);
}

.taraheto-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.taraheto-thumb:hover::after {
    opacity: 1;
}

.taraheto-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.taraheto-thumb:hover img {
    border-color: #0ea5a4;
}
  .taraheto-comment-rating {
                margin-bottom: 10px;
                direction: rtl;
            }
            .taraheto-star-filled {
                color: #ffc107;
                font-size: 18px;
            }
            .taraheto-star-empty {
                color: #ccc;
                font-size: 18px;
            }
            .taraheto-comment-images {
                margin-top: 15px;
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }
            .taraheto-comment-images img {
                max-width: 200px;
                height: auto;
                border-radius: 5px;
                border: 1px solid #ddd;
            }
            
            /* استایل‌های لود با اسکرول */
            .taraheto-list-wrap {
                position: relative;
            }

            .taraheto-loading {
                text-align: center;
                color: #666;
                background: #f9f9f9;
                border-radius: 8px;
                margin: 20px 0;
            }

            .taraheto-spinner {
                display: flex;
                width: 24px;
                height: 24px;
                animation: taraheto-spin 1s linear infinite;
                margin-left: 10px;
            }

            @keyframes taraheto-spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }

            .taraheto-end {
                text-align: center;
                border-radius: 8px;
                margin: 20px 0;
            }

            .taraheto-end p {
                margin: 0;
                font-weight: 500;
            }

            #taraheto-scroll-sentinel {
                height: 1px;
                width: 100%;
                background: transparent;
            }
			.taraheto-stars input[type="radio"]:checked ~ .taraheto-star svg {
    fill: #fbbf24;
}

/* a */
.taraheto-purchased-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
}

.taraheto-purchased-label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.taraheto-product-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
}

.taraheto-product-name {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}
.entry.entry-content a {
    border-bottom: 0;
    color: #000000;
    padding: 0;
    display: flex;
    gap: 8px;
}

@media (max-width: 640px) {
.taraheto-purchased-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}}

.comments-wrapper,p.no-comments {
    display: none;
}
div#taraheto-lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
}