
.igi_tabs {
    padding: 15px;
    background-color: #fff;
}

.igi_tabs *:not(table) {
    max-width: 100%;
    height: auto;
}

.tabs.igi_tabs_control {
    display: flex;
    list-style: none;
    flex-flow: row wrap;
    border-bottom: 2px solid #abacad;
    padding-left: 0px;
    background-size: auto 100%;
    border-radius: 3px 3px 0 0;
}

.tabs.igi_tabs_control li {
    padding: 10px 0;
    font-size: 20px;
    font-weight: bold;
    background: none;
    margin-bottom: -2px;
}

.igi_tabs_control li a {
    display: block;
    padding: 0 15px;
    line-height: 1;
    white-space: nowrap;
    font-weight: 700;
    color: #abacad;
    text-transform: uppercase;
    font-size: 16px;
    border-right: 1px solid #333;
}
.igi_tabs_control li:first-child a {
    padding-left: 0;
}
.igi_tabs_control li:last-child a {
    border: none;
}

.tabs.igi_tabs_control li.active {
    background: none;
    border-bottom: 2px solid #222;
}

.tabs.igi_tabs_control li a:hover, .tabs.igi_tabs_control li.active a {
    color: #333;
}

.igi_tabs_panel {
    text-align: justify;
    padding: 0;
    border-top: none;
    margin-bottom: 20px;
}

.woocommerce-noreviews,
.noreviews {
    content: "";
    display: table;
    table-layout: fixed;
    clear: both;
    width: 100%;
    padding: 10px;
    background: #e5e5e5;
    margin-bottom: 15px;
    border-radius: 2px;
    color: #E7711B;
}

.woocommerce-info {
    color: #222222;
    font-size: 13px;
}

    .woocommerce-info a {
        color: var(--main-color);
    }

.woocommerce-error li {
    list-style: disc inside;
    font-style: italic;
    font-size: 13px;
}


.woocommerce-noreviews {
    background: none;
    color: #222;
}

.comment-form {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.comment-form .comment-notes {
    width: 100%;
}

.comment-form .comment-form-rating {
    width: 100%;
}

.comment-form .comment-form-comment {
    width: 100%;
    order: 2;
}

.comment-form .comment-form-author {
    width: 48%;
    order: 1;
    text-align:left;
}

.comment-form .comment-form-email {
    order: 1;
    width: 48%;
    text-align:left;
}

.comment-form .form-submit {
    order: 3;
    width: 100%;
}

.comment-form .comment-form-comment label {
    display: block;
}

.comment-form .comment-form-comment textarea {
    height: 85px;
}

.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
    border: 1px solid #e5e5e5;
    width: 100%;
    height: 35px;
    padding: 5px 10px;
}

.comment-form .form-submit .submit {
    color: #fff;
    padding: 5px 30px;
    text-transform: uppercase;
    background: var(--main-color);
    border: 1px solid var(--main-color);
}
.comment-form .comment-form-cookies-consent {
    order: 4;
}

.form-row.woocommerce-validated input.input-text {
    box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
    box-shadow: inset 2px 0 0 #e2401c;
}

.required {
    color: red;
}
 
.star-rating {
    display: inline-block;
    position: relative;
    font-size: 18px;
    line-height: 1;
    color: #ddd; /* sao nền */
}

.star-rating::before {
    content: "\f005\f005\f005\f005\f005";
    font-family: 'Font Awesome 5 Pro';
    display: block;
}

.star-rating span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #ffc107; 
    white-space: nowrap;
    width: 0; /* được set trong inline style: style="width:80%" */
}

.star-rating span::before {
    content: "\f005\f005\f005\f005\f005";
    font-family: 'Font Awesome 5 Pro';
    font-weight: 600;
}


p.stars a {
    position: relative;
    height: 1em;
    width: 1em;
    text-indent: -999em;
    text-decoration: none;
    font-weight: 400;
    font-family: 'Font Awesome 5 Pro';
    display: inline-block;
    margin-right: 6px;
    margin-top: 8px;
}

    p.stars a::before {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 1em;
        height: 1em;
        line-height: 1;
        content: "\f005";
        color: #fee029;
        text-indent: 0;
        font-size: 14px;
        font-weight: bold;
    }

    p.stars a:hover ~ a:before, p.stars a.active ~ a:before {
        color: #ccc;
    }

p.stars:hover a:before {
    content: "\f005";
    color: #E7711B;
    opacity: 1;
}

p.stars.selected a.active:before {
    content: "\f005";
    color: #E7711B;
    opacity: 1;
}

p.stars.selected a.active ~ a:before {
    content: "\f005";
    color: #404040;
    opacity: .25;
}

p.stars.selected a:not(.active):before {
    content: "\f005";
    color: #E7711B;
    opacity: 1;
}

/* Vùng reviews tổng thể */
#reviews {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    font-family: "Segoe UI", sans-serif;
}

/* Tổng số đánh giá */
#reviews .cntdanhgia {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Danh sách đánh giá */
.commentlist {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Từng đánh giá */
.comment_container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.comment_container:last-child {
    border-bottom: none;
}

/* Avatar người đánh giá */
.comment_container img.avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ccc;
}

/* Nội dung đánh giá */
.comment-text {
    flex: 1;
}

.comment-text .star-rating {
    margin-bottom: 5px;
    font-size: 14px;
    color: #ffb400;
}

.comment-text .star-rating span {
    display: inline-block;
}

.comment-text .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.comment-text .woocommerce-review__author {
    font-weight: 600;
    color: #333;
}

.comment-text .woocommerce-review__published-date {
    color: #999;
}

.comment-text .description p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Responsive: Mobile friendly */
@media (max-width: 600px) {
    .comment_container {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment_container img.avatar {
        margin-bottom: 10px;
    }
}
