/* comment template */
.comment-box {
    width: 100%;
    float: left;
    margin-top: 10px;
}
.comment-box-title {
    border: 1px solid #e1e1e1;
    border-left: 5px solid #163651;
    width: 100%;
    float: left;
    padding: 10px 0;
    padding-left: 10px;
    margin: 0 0 15px 0;
    box-sizing: border-box;
}
.comment-box-title h4 {
    font-size: 19px;
    font-weight: bold;
    color: #163651;
    margin: 0;
    float: left;
}

.comment-vote {
    width: 100%;
    float: left;
    border: 1px solid #d8d8d8;
    margin-bottom: 10px;
    display: table;
}

.comment-vote__star {
    width: 200px;
    text-align: center;
    padding: 10px;
    display: table-cell;
    vertical-align: middle;
    border-right: 1px solid #d8d8d8;
}
.comment-vote__star-number {
    display: block;
    padding-bottom: 5px;
    font-size: 18px;
}
.comment-vote__star-star {
    margin-bottom: 5px;
}
.comment-vote__star-star i {
    font-size: 20px;
    color: #fe9727;
    line-height: 30px;
}
.comment-vote__star-total {}
.comment-vote__star-total p {}

.comment-vote__percent {
    width: calc(100% - 450px);
    padding: 10px 20px;
    border-right: 1px solid #d8d8d8;
    display: table-cell;
}
.comment-vote__percent-item {
    float: left;
    width: 100%;
    margin-bottom: 5px;
}
.comment-vote__percent-star,
.comment-vote__percent-number {
    float: left;
    width: 50px;
    line-height: 20px;
    color: #9a9a9a;
    font-size: 13px;
}
.comment-vote__percent-number {
    text-align: center;
}
.comment-vote__percent-progress {
    float: left;
    width: calc(100% - 100px);
    display: inline-block;
    position: relative;
    background: #f5f5f5;
    height: 6px;
    line-height: 20px;
    border-radius: 10px;
    margin: 7.5px 0;
}
.comment-vote__percent-progress span {
    float: left;
    display: block;
    background: #fe9727;
    position: relative;
    height: 6px;
    border-radius: 10px;
}
.progress-hidden {
    opacity: 0;
}

.comment-vote__btn {
    width: 250px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}
.comment-vote__btn p {
    line-height: 30px;
}
.comment-vote__btn #show-comment-form {
    padding: 9px 35px;
    line-height: 34px;
    height: 34px;
    background: #163651;
    color: #fff;
    float: none;
    text-decoration: none;
}
.comment-form {
    width: 100%;
    float: left;
    background: #f8f8f8;
    border: 1px solid #dadada;
    padding: 20px;
    margin-bottom: 10px;
    /* display: none; */
    box-sizing: border-box;
}
.comment-form .product-rating {
    width: 100%;
    float: left;
    margin-bottom: 10px;
    font-size: 14px;
}
.comment-form .product-rating p {
    float: left;
    margin-right: 10px;
    width: 100%;
    margin-bottom: 10px;
}
.comment-form .product-rating .rating-star {
    float: left;
}
.comment-form .product-rating i {
    cursor: pointer;
    color: #fe9727;
    float: left;
    font-size: 20px;
    margin-left: 5px;
}
.comment-content-text {
    width: 100%;
    float: left;
}
.comment-content-text textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    padding: 10px;
    line-height: 1.4em;
    border-radius: 3px;
    font-size: 14px;
    letter-spacing: 0.6px;
}
.comment-btn {
    width: 100%;
    float: left;
}
.comment-name-and-email {
    width: 100%;
    float: left;
    padding: 10px 0;
    overflow: hidden;
    margin-bottom: 10px;
    display: none;
}
.comment-name-and-email input {
    width: 100%;
    border: 1px solid #ddd;
    box-sizing: border-box;
    padding: 7px 10px;
    margin: 0;
    border-radius: 3px;
    letter-spacing: 0.6px;
}
.comment-name-and-email input[type='text'] {
    margin-bottom: 15px;
}
#close-comment-form {
    float: right;
    padding: 10px 25px;
    color: #163651;
}
.comment-form button {
    background: #163651;
    color: white;
    float: right;
    display: block;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
}

.comment-search {
    width: 100%;
    float: left;
    margin-bottom: 20px;
}
.comment-search input {
    width: 100%;
    height: 34px;
    padding: 10px;
}

.comment-list {
    width: 100%;
    float: left;
}
.comment-item {
    width: 100%;
    float: left;
    margin-bottom: 15px;
}
.comment-avatar {
    float: left;
    width: 40px;
    margin-right: 10px;
}
.comment-avatar .avatar {
    width: 40px;
    height: 40px;
    background: #ebe9eb;
    display: block;
    text-align: center;
    line-height: 40px;
    text-transform: uppercase;
}
.comment-avatar .avatar_thumb {
    width: 40px !important;
    height: auto!important;
    padding-top: 5px;
}
.comment-info {
    width: calc(100% - 50px);
    float: left;
}
.comment-info .comment-title {
    width: 100%;
    float: left;
    line-height: 25px;
    margin-bottom: 5px;
}
.comment-info .comment-title .comment-name {
    float: left;
}
.comment-info .comment-title .comment-name .name {
    float: left;
    margin-right: 10px;
    font-weight: bold;
    color: #777;
    line-height: 25px;
}
.comment-info .comment-title .comment-name .phone {
    float: left;
    font-size: 12px;
    line-height: 27px;
    color: #777;
}

.comment-info .comment-footer .time {
    float: left;
    margin-right: 10px;
    font-size: 12px;
    color: #777;
    line-height: 20px;
}
.comment-info .comment-footer .comment-like {
    float: left;
    cursor: pointer;
    margin-right: 8px;
    font-size: 12px;
    color: #777;
    line-height: 20px;
}

.comment-child-item .name:after {
    display: none;
}

.comment-child-item .comment-avatar .avatar {
    background: #163651;
    color: #ffffff;
}
.comment-info .comment-title .comment-name .admin {
    float: left;
    margin-right: 10px;
    font-size: 12px;
    background: #ffdf47;
    padding: 0 5px;
    line-height: 18px;
    color: #fff;
    border-radius: 3px;
    margin-top: 3px;
    margin-bottom: 10px;
}
.comment-info .comment-title .comment-star {
    float: right;
}
.comment-info .comment-title .comment-star i {
    color: #fe9727;
}
.comment-info .comment-content {
    line-height: 20px;
    float: left;
    white-space: pre-wrap;
    width: 100%;
    text-align: justify;
    margin-bottom: 10px;
}
.comment-child-list {
    width: calc(100% - 40px);
    margin-left: 40px;
    float: left;
    padding-top: 10px;
}
.comment-child-item {
    width: 100%; 
    float: left;
    margin-top: 10px;
    background: #f8f8f8;
    border: 1px solid #e4e1e3;
    padding: 10px;
    position: relative;
    box-sizing: border-box;
}
.comment-child-item:before {
    bottom: 100%;
    left: 20px;
    top: -20px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    border-color: rgba(238,238,238,0);
    border-bottom-color:#e4e1e3;
    border-width: 10px;
    margin-left: -9px;
}
.comment-child-item:after {
    bottom: 100%;
    left: 21px;
    top: -18px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    border-color: rgba(238,238,238,0);
    border-bottom-color:#f8f8f8;
    border-width: 9px;
    margin-left: -9px;
}

.comment-pagination {
    width: 100%;
    float: left;
    margin-top: 10px;
}
.comment-pagination li {
    float: left;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin: 0 5px 0 0;
    border: 1px solid #BBB;
    border-radius: 0px;
}
.comment-pagination a,
.comment-pagination span {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #666;
    background: #efefef;
    background: -moz-linear-gradient(top, #ffffff 0%, #efefef 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#efefef));
    background: -webkit-linear-gradient(top, #ffffff 0%,#efefef 100%);
    background: -o-linear-gradient(top, #ffffff 0%,#efefef 100%);
    background: -ms-linear-gradient(top, #ffffff 0%,#efefef 100%);
}
.comment-pagination .active a,
.comment-pagination .active span {
    background: #163651 !important;
    color: #fff;
}
.comments_more{
    display: block;
    width: 100%;
    height: 36px;
    line-height: 36px;
    text-align: center;
    color: #fff;
    background: #163651;
    text-decoration: none;
    margin-bottom: 10px;
}
.comments_more.disable{
    background: #ababab;
    cursor: not-allowed;
}
@media only screen and (max-width: 991px) {
    .comment-box-title h1 {
        width: 100%;
    }
}
@media only screen and (max-width: 510px) {
    .custom-param-list .custom-param-item {
        width: 100%;
        margin-left: 0;
    }
}
@media only screen and (max-width: 767px) {
    .comment-box {
        padding: 10px 10px;
    }
    .comment-content-text {
        width: 100%;
        margin-bottom: 10px;
    }
    .comment-name-and-email {
        width: 100%;
        padding-left: 0;
    }
    .comment-box-title {
        padding: 10px;
    }
    .comment-form {
        padding: 10px;
    }
    .comment-list {
        padding: 0 10px;
    }
    .comment-pagination {
        padding: 0 10px;
    }
    .comment-vote {
        display: block;
    }
    .comment-vote__star {
        width: 100%;
        display: block;
        border-right: none;
        border-bottom: 1px solid #d8d8d8;
        padding: 30px 10px
    }
}
@media only screen and (max-width: 470px) {
    .comment-vote__percent {
        width: 100%;
        display: block;
        border-right: none;
        border-bottom: 1px solid #d8d8d8;
        float: left;
        padding: 20px;
    }
    .comment-vote__btn {
        display: block;
        width: 100%;
        float: left;
        padding: 20px 0;
    }
    .comment-star {
        width: 100%;
        float: left;
    }
    .comment-name {
        width: 100%;
    }
    .comment-info .comment-title .comment-name .time:after {
        display: none;
    }
    .comment-like {
        width: 100%;
        float: left;
    }
}