/*!
 * Customer Review Card Styles
 * 
 * Copyright (c) 2025 (johorbahruprivatecar.com)
 * All rights reserved.
 *
 * Description:
 *  - Custom CSS for user comment/review card layout
 *  - Includes responsive adjustments and slider styles
 *
 * License:
 *  This CSS is proprietary and intended for use only in authorized projects.
 *  No part of this code may be copied, modified, or distributed
 *  without explicit written permission from the author.
 */

.user_comment_card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    background: #f5f7f8;
}

.user_comment_card .user_comment {
        padding: 20px 24px 0;
}

.user_comment_card .user_comment .user_rating span {
    color: rgb(251 173 29);
    width: 100%;
    font-size: 22px;
}

.user_comment_card .user_comment p.comment_text {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.user_comment_card .user_details {
        padding: 20px 24px;
}

.user_comment_card .user_details {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    align-content: center;
    padding-top: 10px;
}

.user_comment_card .user_details img {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 80%;
    margin-right: 14px;
    background: rgb(255, 255, 255);
}

.user_comment_card .user_details .user_name {
    line-height: 22px;
    font-size: 16px;
    font-weight: 600;
}

@media(max-width:500px) {
    .user_comment_card .user_comment p.comment_text {
    -webkit-line-clamp: unset;
	display: -webkit-box;
    -webkit-box-orient: vertical;
    text-align: left;
    -webkit-line-clamp: inherit !important;
    overflow: auto !important;
    overflow-x: hidden !important;
    padding-right: 10px;
    scrollbar-color: #8d8d8d #e0e0e0;
    scrollbar-width: thin;
    height: 120px !important;
    }
}

@media (max-width: 500px) {
    .swiper_JBPCCustomerReviews .swiper-slide {
        width: 80%
    }

    .swiper_JBPCCustomerReviews .swiper-slide {
        padding-left: 0px;
        box-sizing: unset
    }

    .swiper_JBPCCustomerReviews .swiper-slide:last-child {
        padding-right: 0px;
        box-sizing: unset
    }

    .swiper_JBPCCustomerReviews .swiper-slide img {
        opacity: 0.7
    }

    .swiper_JBPCCustomerReviews .swiper-slide.swiper-slide-active img {
        opacity: 1
    }

    .swiper_JBPCCustomerReviews {
        padding-bottom: 40px;
		        overflow: visible;
    }
}

@media (min-width: 760px) {
    .swiper_JBPCCustomerReviews {
        overflow: visible;
    }
}