body {
    background-color: #F7F9FC;
}

h1 {
    font-size: 54px;
    font-weight: 900;
}

.h2 {
    padding-bottom: 12px;
}

h3 {
    color: black;
    font-size: 20px;
    margin-bottom: 10px;
}

.ptop {
    max-width: 1140px;
}

.container {
    padding-right: 0;
    padding-left: 0;

}

#reviews-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#aggregate-reviews {
    margin: auto;
    padding-left: 30px;
    font-size: 24px;
    font-weight: bold;
    color: #0096FF;
}

#reviews-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: auto;
    margin-left: 0;
}

#review-by {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#review-by option {
    font-size: 16px;
    padding: 6px 0;
}

.chosen-container {
    font-size: 14px;
    width: 280px !important;
    height: 40px;
    margin-right: 20px;
}

.chosen-single {
    font-weight: 700;
    background-color: white !important;
}

#user-img {
    margin-left: 13px;
    margin-right: 18px;
}

.chosen-container-single .chosen-single {
    border-radius: 2px !important;
}

.write-a-review {
    color: #0096FF;
    cursor: pointer;
}

#write-review {
    width: 348px;
    height: 60px;
    margin-left: auto;
    font-size: 16px;
    background-color: white;
    box-shadow: 0px .9px 2px #00000029;
    display: flex;
    align-items: center;
}

#testimonial-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1170px;
    margin: auto;
    justify-content: space-between;
}

.tm_item {
    padding: 10px 20px;
    margin-bottom: 25px;
    background: white 0% 0% no-repeat padding-box;
    border-radius: 4px;
    box-shadow: 0px .9px 2px #00000040;
    width: 560px;
    height: 300px;
    position: relative;
}

.tm_item h2,
.tm_item .h2 {
    color: #25282A;
    font-size: 24px;
    font-weight: bold;
    text-transform: none;
    padding: 2px 0 10px 0;
    margin: 0 20px;
    text-decoration: none!important;
}

.tm_item .date{
    color: #a4a4a4;
    font-size: 10px;
    display: block;
    margin: 0 0 6px 0;
}

.review-body {
    padding: 10px 20px 20px 0;
    font-size: 14px;
    width: 100%;
    /* Truncates longer comments */
    height: 5em;
    overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
}

.read-more {
    font-size: 14px;
    margin-left: auto;
    padding: 5px 20px;
    color: #0096FF;
    background-color: white;
    cursor: pointer;
}

.material{
    color: #a4a4a4;
    font-size: 10px;
    padding: 8px 0;
    margin-right: 10px;
}

.review-img {
    height: 40px;
    border-radius: 2rem;
    background-repeat: no-repeat;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.user-info img {
    max-width: 4rem;
    padding: 3px;
    border-radius: 2rem;
}

.name-date {
    margin-left: 11px;
    display: flex;
    flex-direction: column;
}

.name-date h3 {
    margin-bottom: 0;
}

.review-src-img {
    height: 30px;
    width: 30px;
    margin-left: auto;
    border-radius: 4px;
    background-color: #123156;
}

.stars-rating {
    display: inline-flex;
    flex-wrap: nowrap;
    margin: auto;
    font-size: 30px;
}

.no-rating {
    height: 20px;
    font-size: 14px;
    color: #a4a4a4;
    font-style: italic;
}

#tm_add{
    margin: 35px auto;
    padding: 40px;
}

div.form label{
    display: block;
    margin-top: 20px;
    width: 100%;
}

div.form input,
div.form select,
div.form textarea{
    display: block;
    width: 100%;
}

div.form .rating,
div.form .bu01{
    margin-top: 20px;
}
/* 

.sm_wr a,
.sm_wr span {
    background-color: white;
}

.sm_wr a:hover {
    border: 1px solid #0096FF;
}

.sm_wr strong {
    background-color: white;
    border: 1px solid #0096FF;
    color: black;
} */

.form .chosen-container,
#FormTestimonial .chosen-container {
    width: 100% !important;
}

#review-popup,
#write-review-popup,
#tm-login-form,
#tm-need-order-popup,
.help-popup .review-src-img,
.help-popup .read-more {
    display: none;
}

.help-popup,
.help-popup .body-wrapper,
.help-popup .review-body {
    height: auto;
    -webkit-line-clamp: inherit;
}

#tm-login-form .popup-white {
    margin: auto;
    padding: 40px;
}

#tm-login-form .form {
    margin-bottom: 25px;
}

#FormLogin .errorMessage {
    color: red;
}

.form .bu1 {
    margin-top: 25px;
    margin-bottom: 25px;
}

#review-form-stars {
    padding-top: 5px;
}

.review-form-star {
    cursor: pointer;
}

#FormSubmitReview_rate,
.rsp-breadcrumb-wrap {
    display: none;
}

#testimonialsFilter .chosen-container {
    display: inline-block;
}

@media (max-width: 1200px) {
    .tm_item {
        width: 100%;
    }

    .container {
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (max-width: 992px) {
    
    .ptop {
        padding-top: 40px;
    }

    h1 {
        font-size: 34px;
        margin: 0;
        margin-right: auto;
    }

    #reviews-header {
        flex-direction: column;
    }

    #aggregate-reviews {
        padding: 25px 0;
    }

    #testimonialsFilter .chosen-container,
    #testimonialsFilter select {
        display: none !important;
    }

    #testimonial-container {
        padding: 0 15px;
    }

    .tm_item,
    #write-review {
        width: 100%;
    }

    .read-more {
        font-size: 12px;
        padding: 5px 0;
    }

    .help-popup {
        height: 100%;
    }

    #previous-page {
        margin: 0;
        width: 100px;
        left: 15px;
    }

    #next-page {
        width: 90px;
        right: 15px;
    }
}