.popup-wrapper {
    box-shadow: 0px 6px 20px -4px #0000001A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--accent);
    border-radius: 18px;
    padding: 8px 16px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin-top: clamp(32px, 4vw, 54px);
    h4 {
        font-size: 16px;
        font-family: var(--SemiBold);
        margin-bottom: 4px;
    }
    span {
        font-size: 14px;
    }
    #open-comment-modal {
        background: var(--color1);
        color: white;
        border-radius: 12px;
        min-height: 56px;
        min-width: 130px;
        font-size: 16px;
        font-family: var(--SemiBold);
        border: 1px solid var(--color1);
        transition: 0.4s;
        &:hover {
            color: var(--color1);
            background: white;
        }
    }
}
.no-comments {
    text-align: center;
    padding: 20px;
    background: var(--gray);
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--Medium);
}
.comment-wrapper .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    &.active {
        display: flex;
        opacity: 1;
    }
    .modal-content {
        width: clamp(300px, 54vw, 800px);
    }
    .modal-header {
        background: var(--border);
        padding: 20px;
        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            line-height: 1;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.4s;
            &:hover {
                color: var(--danger);
            }
        }
    }
}
.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}
@media only screen and (min-width: 992px) {
    .popup-wrapper {
        flex-direction: row;
        text-align: right;
    }
}
.comment-wrapper #comments {
    margin-top: 5rem;
}
.commentlist .item-comment {
    padding: clamp(14px, 2vw, 22px) clamp(20px, 3vw, 32px);
    border-radius: 16px;
    position: relative;
    margin-bottom: 16px;
    box-shadow: 0px 6px 20px -4px #0000001A;
    p {
        margin: 0;
        font-size: 14px;
        line-height: 26px;
    }
    .head-comment {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        .name_comment {
            display: flex;
            align-items: center;
            gap: 12px;
            .icon-user {
                width: 40px;
                height: 40px;
                flex: 0 0 40px;
                font-size: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            span:not(.time_comment) {
                font-size: 18px;
                font-family: var(--Medium);
                color: black;
            }
            .time_comment {
                display: flex;
                font-size: 12px;
                font-family: var(--Regular);
            }
        }
        .comment-score {
            display: inline-flex;
            gap: 4px;
            flex-direction: row-reverse;
            font-size: 12px;
            i {
                font-size: 14px;
                color: #F4B715;
                &.active {
                }
            }
        }
    }
}
/***************/
#commentform {
    display: flex;
    flex-wrap: wrap;
    row-gap: 2.5rem;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
#commentform .comment-form-comment,
#commentform .comment-form-email,
#commentform .comment-form-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
#commentform .comment-form-email,
#commentform .comment-form-author {
    width: 48%;
}
#commentform .comment-form-comment {
    width: 100%;
}
.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.comment-rating.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    height: 14px;
    i {
        font-size: 14px;
        color: #F4B715;
        width: 14px;
        height: 14px;
        cursor: pointer;
        &:hover:before {
            content: "\e925";
        }
    }
}
.alert.alert-success {
    background: green;
    color: white;
    padding: 20px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: center;
}
@media only screen and (max-width: 768px) {
    #commentform {
        row-gap: 1.5rem;
    }
    #commentform .comment-form-email,
    #commentform .comment-form-author {
        width: 100%;
    }
    #review_form_wrapper .row {
        flex-direction: column-reverse;
    }
}
.rating-summary {
    padding: clamp(14px, 2vw, 22px) clamp(20px, 3vw, 32px);
    border-radius: 16px;
    position: relative;
    box-shadow: 0px 6px 20px -4px #0000001A;
    .rating-average {
        text-align: center;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row-reverse;
        gap: 10px;
    }
    .rating-row {
        display: flex;
        align-items: center;
        gap: 25px;
        margin-bottom: 40px;
        flex-direction: row-reverse;
        .progress {
            flex: 1;
            height: 8px;
            background: var(--gray);
            border-radius: 10px;
            overflow: hidden;
            direction: ltr;
            span {
                display: block;
                height: 100%;
                background: var(--color1);
                border-radius: 10px;
            }
        }
        .star-label {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-direction: row-reverse;
            i {
                color: #F4B715;
            }
        }
    }
    .avg-number {
        font-size: 60px;
        line-height: 99px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--SemiBold);
    }
    .avg-stars .icon-star {
        font-size: 20px;
        color: #F4B715;
    }
    .avg-stars .icon-star.active {
        color: #F4B715;
    }
    .rating-count {
        font-size: 14px;
        font-family: var(--SemiBold);
    }
    .count {
        font-size: 18px;
        color: var(--black);
        font-family: var(--Medium);
    }
}
.commentlist {
    transition: max-height 0.4s ease;
}
.commentlist.is-collapsed {
    max-height: 900px;
    overflow: hidden;
    padding-inline: 10px;
    &:before {
        content: "";
        background: linear-gradient(0deg, white, transparent);
        width: 100%;
        height: 200px;
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: 1;
    }
}
.show-more-comments {
    display: none;
    cursor: pointer;
    z-index: 9;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    bottom: 0;
    border: 0;
    background: none;
    font-family: var(--SemiBold);
    font-size: 16px;
    &:before {
        content: "\e91b";
        font-family: 'icomoon';
        font-size: 12px;
        position: absolute;
        left: -14px;
        top: 50%;
        transform: translateY(-50%);
        transition: 0.4s;
    }
    &.is-open:before {
        content: "\e91a";
    }
}