/**
 * 1. Rating Summary Styles
 */
.tmw-product-rating {
    display: flex;
    flex-direction: column;
    gap: 15px;
}.tmw-product-rating .tmw-write-a-review h5 {
    margin-bottom: 5px;
}.tmw-product-rating .tmw-write-a-review p {
    margin-bottom: 15px;
}.tmw-product-rating .tmw-write-a-review .tmw-review-btn {
    width: 100%;
}.tmw-rating-summary {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid lightgray;
    border-radius: 5px;
}.tmw-rating-summary .tmw-content.left {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px;
    gap: 6px;
}.tmw-rating-summary .tmw-content.left .tmw-avrage-rating {
    font-size: 28px;
    font-weight: 700;
    color: #343434;
    line-height: 1;
}.tmw-rating-summary .tmw-content.left .star-rating {
    font-size: 12px;
    margin: 0;
}.tmw-rating-summary .tmw-content.left .tmw-total-reviews {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: lightslategray;
}.tmw-rating-summary .tmw-content.right {
    width: 65%;
    padding: 5px 5px 5px 10px;
    border-left: 1px solid lightgray;
    line-height: 1.8;
}.tmw-rating-summary .tmw-content.right .rating-row {
    display: flex;
    align-items: center;
}.tmw-rating-summary .tmw-content.right .rating-row .star-label {
    width: 28px;
    font-size: 14px;
    font-weight: 500;
}.tmw-rating-summary .tmw-content.right .rating-row .progress-bar {
    flex: 1;
    height: 7px;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 10px;
}.tmw-rating-summary .tmw-content.right .rating-row .progress-bar .progress {
    height: 100%;
    transition: width 0.5s ease-in-out;
}.tmw-rating-summary .tmw-content.right .rating-row .review-count {
    width: 25px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: darkslategray;
}.tmw-rating-summary .progress.star-5 {
    background-color: var(--tmwStarFive);
}.tmw-rating-summary .progress.star-4 {
    background-color: var(--tmwStarFour);
}.tmw-rating-summary .progress.star-3 {
    background-color: var(--tmwStarThree);
}.tmw-rating-summary .progress.star-2 {
    background-color: var(--tmwStarTwo);
}.tmw-rating-summary .progress.star-1 {
    background-color: var(--tmwStarOne);
}.tmw-rating-summary .progress.star-0 {
    background-color: var(--tmwStarZero);
}

/**
 * Review Comment Read More Functionality
 */
.tmw-reviews .comment-text .comment-toggle-btn {
    margin-left: 5px;
    font-weight: 600;
}

/**
 * Review Media Functionality
 */
.tmw-comment-form-media {
    display: grid;
    gap: 10px;
    margin: 1em 0;
    border: 2px dashed #ccc;
    padding: 1em;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.3s;
}.tmw-rmu-label {
    margin-bottom: 0;
}.tmw-rmu-label.tmw-rmu-dragover {
    border-color: #007bff;
    background: #e7f3ff;
}.tmw-rmu-field {
    display: grid;
    align-items: center;
    justify-items: center;
    text-align: center;
    margin-bottom: 0;
    padding: 1em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}.tmw-rmu-field:hover {
    background: #f5f5f5;
    border-color: #bbb;
}.tmw-rmu-text {
    display: inline-grid;
    place-items: center;
    line-height: 1.4;
    font-size: 1em;
    color: #555;
    gap: 5px;
}#tmw-rmu-input {
    display: none;
}.tmw-rmu-preview {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.5em;
    gap: 1em;
}.tmw-rmu-preview.show {
    display: grid;
}.tmw-rmu-file {
    position: relative;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}.tmw-rmu-file.tmw-rmu-error {
    border-color: #dc3545;
    background: #fff5f5;
}.tmw-rmup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
}.tmw-rmup-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}.tmw-rmu-error-text {
    font-size: 0.9em;
    color: #dc3545;
    text-align: center;
    word-break: break-word;
}.tmw-rmu-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
}.tmw-rmu-bar {
    height: 100%;
    width: 0;
    background: #28a745;
    transition: width 0.3s ease;
}.tmw-rmu-cancel {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font: initial;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.3s;
}.tmw-rmu-cancel:hover {
    background: rgba(0, 0, 0, 0.8);
}

.review-media-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.review-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}.review-image:hover {
    transform: scale(1.05);
}

.tmw-all-img {
    position: relative;
    border-radius: 3px;
}.tmw-total-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0,0,0,0.6);
    color: #f7f7f7;
    border-radius: 3px;
    aspect-ratio: 1;
}.tmw-total-img:hover {
    color: #f7f7f7c4;
}


@media screen and (min-width: 480px) {
    #tmw-rmu-preview {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media screen and (min-width: 690px) {
    #tmw-rmu-preview {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}


/**
 * Review Like/Dislike (Feedback) Functionality
 */

.comment-text .tmw-review-feedback .review-date-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
}.comment-text .tmw-review-feedback .review-feedback-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}.comment-text .tmw-review-feedback .review-feedback-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}.comment-text .tmw-review-feedback .review-feedback-btn button {
    background: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
}.comment-text .tmw-review-feedback .review-feedback-btn button.voted {
    color: green;
}.comment-text .tmw-review-feedback .review-feedback-message {
    display: flex;
    justify-content: center;
}












/*.woocommerce-Reviews .ct-has-avatar .comment_container {
    grid-template-columns: auto !important;
}*/

.comment-text {
    width: 100%;
    border: 1px solid lightgray;
    border-radius: 4px;
}.tmw-review-awaiting-approval {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid lightgray;
}.tmw-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border-bottom: 1px solid lightgray;
}.tmw-review-meta .tmw-author-container {
    display: flex;
    align-items: center;
    gap: 10px;
}.tmw-review-meta .avatar {
    width: 35px;
    height: 35px;
}.tmw-review-meta .tmw-author-container .tmw-author-info {
    display: inline-grid;
    line-height: 1.4;
}.tmw-review-meta .tmw-author-container .tmw-author-info .verified {
    display: flex;
    align-items: center;
    font-size: 80%;
    font-weight: 500;
    color: green;
}.tmw-review-meta .tmw-author-container .tmw-author-info .verified .dashicons {
    align-content: center;
    font-size: 125%;
}.tmw-review-meta .star-rating {
    margin-bottom: 0;
}.comment-text .description {
    padding: 5px 10px;
}.comment-text p {
    margin-bottom: 0;
}.comment-text .tmw-review-feedback .review-date-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid lightgray;
}.comment-text .tmw-review-feedback .review-feedback-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}.comment-text .tmw-review-feedback .review-feedback-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}.comment-text .tmw-review-feedback .review-feedback-btn button {
    background: transparent;
    display: flex;
    align-items: center;
    gap: 5px;
}.comment-text .tmw-review-feedback .review-feedback-btn button.voted {
    color: green;
}.comment-text .tmw-review-feedback .review-feedback-message {
    display: flex;
    justify-content: center;
}

.children .comment_container:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' style='transform: scale(-1,1)' width='25' height='25' x='0' y='0' viewBox='0 0 32 32'%3E%3Cpath d='M2.888 29.09a.75.75 0 0 0 .104 1.461 18.594 18.594 0 0 0 14.854-4.337 18.59 18.59 0 0 0 6.426-13.466H28.9a.75.75 0 0 0 .53-1.28L19.432 1.47a.773.773 0 0 0-1.061 0l-9.999 9.999a.75.75 0 0 0 .53 1.28h4.619v2.111c0 6.529-4.373 12.381-10.633 14.23zm11.383-17.841h-3.559L18.9 3.061l8.188 8.188H23.53a.75.75 0 0 0-.75.75v.143c0 4.971-2.157 9.687-5.917 12.938a17.092 17.092 0 0 1-10.417 4.15c5.175-2.816 8.574-8.33 8.574-14.37v-2.861a.748.748 0 0 0-.749-.75z' fill='%23000000'%3E%3C/path%3E%3C/svg%3E");
}.children .comment_container {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
}.woocommerce-Reviews .commentlist .children {
    display: grid;
    margin-top: 10px !important;
    padding-inline-start: 20px !important;
}

@media (min-width: 1000px) {
    [data-content=normal] .woocommerce-Reviews {
        grid-template-columns: repeat(1, 35% 1fr) !important;
        column-gap: 20px !important;
    }.tmw-review-list {
    columns: 2 !important;
    }
}
.tmw-review-list {
    columns: 1;
    column-gap: 10px;
}.tmw-review-list li {
    width: 100%;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 10px;
    border: none !important;
}.comment_container {
    grid-template-columns: unset !important;
    padding: 0 !important;
}

#comments .woocommerce-pagination ul.page-numbers {
    margin-top: 10px;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 999px) {
    .review-media-gallery img:nth-child(4n+4) ~ img {
        display: none;
    }
}

.review-media-gallery img:nth-child(19) ~ img {
    display: none;
}

.tmw-all-img-modal .tmw-total-img {
    display: none;
}.tmw-all-img-modal img:nth-child(n) ~ img {
    display: block;
}
