/*** USER REVIEWS - MODERN STYLES ***/

/* Review section container */
.user_reviews_view {
    padding: 30px;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

/* Pros and Cons section */
.user_reviews_view_proscons {
    padding-right: 20px;
    font-size: 15px;
    line-height: 1.6;
    width: calc(100% - 300px);
    float: left;
    box-sizing: border-box;
}

.user_reviews_view_pros, .user_reviews_view_cons {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

span.user_reviews_view_pc_title {
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

/* Modern icons for Pros and Cons (using Font Awesome) */
.pros_comment_item:before {
    content: '\f058'; /* Checkmark in a circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #4CAF50;
    position: absolute;
    left: 0;
    top: 2px;
}

.cons_comment_item:before {
    content: '\f057'; /* X in a circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #F44336;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Individual criteria for review sliders */
.user_rating_slider_criteria {
    margin: 15px 0;
    clear: both;
}

/* noUiSlider styling */
#user_reviews_in_comment .noUi-horizontal {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

#user_reviews_in_comment .noUi-connect {
    background: linear-gradient(to right, #654ea3, #eaafc8);
}

#user_reviews_in_comment .noUi-handle {
    top: -5px;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #654ea3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: grab;
    transition: all 0.2s ease-in-out;
}

/* Removing old handle pseudo-elements */
#user_reviews_in_comment .noUi-handle:before, #user_reviews_in_comment .noUi-handle:after {
    display: none;
}

/* Styling for the total score text */
.your_total_score {
    margin-top: 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    color: #333;
}

/* Modern star rating system */
.userstar-rating {
    font-size: 20px;
    height: 20px;
    line-height: 20px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.userstar-rating:before {
    content: "\f005\f005\f005\f005\f005";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #e0e0e0;
}

.userstar-rating span {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
}

.userstar-rating span:before {
    content: "\f005\f005\f005\f005\f005";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #FFC107;
}

/* User review box and content */
.user_reviews_view_box {
    padding: 20px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    float: right;
    width: 280px;
    box-sizing: border-box;
}

.user_reviews_view_criteria_name {
    font-size: 14px;
    width: 130px;
}

.user_reviews_view_score {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    overflow: hidden;
}

.user_reviews_view_score .userstar-rating {
    float: left;
    font-size: 18px;
    margin-bottom: 6px;
    height: 18px;
    line-height: 18px;
}

/* Text area styling */
#user_reviews_in_comment textarea {
    height: 120px;
    min-height: 120px; /* Ensures minimum height is maintained */
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    resize: vertical; /* Allows resizing only vertically */
}

/* Bar styles for review summaries */
body .user-review-criteria .rate-bar-bar,
.rate_bar_wrap_two_reviews .rate-bar-bar {
    background: linear-gradient(to right, #654ea3, #eaafc8);
    height: 14px;
    border-radius: 5px;
}

/* General clean up */
.rate_bar_wrap_two_reviews .score_val {
    border-bottom: 3px solid #654ea3;
    font-size: 36px;
    line-height: 36px;
    text-align: right;
    float: right;
    font-weight: bold;
}

.user_reviews_view_criteria_line .userstar-rating {
    float: right;
}

.comm_text_from_review p {
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .user_reviews_view_box,
    .user_reviews_view_proscons {
        width: 100%;
        float: none;
        padding-right: 0;
    }
}