/**
 * Stylesheet for Google Reviews Section
 * Local styles for .custom-gr-container
 */

.custom-gr-container {
    font-family: var(--font-family-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Phần thông tin bên trái */
.custom-gr-summary {
    text-align: center;
    min-width: 150px;
    flex-shrink: 0;
}
.custom-gr-summary .gr-title {
    font-size: var(--font-size-body-l);
    font-weight: var(--font-weight-bold);
    margin: 0 0 10px 0;
    color: var(--color-text-dark);
}
.custom-gr-summary .gr-stars-main {
    width: 100px;
    margin-bottom: 10px;
}
.custom-gr-summary .gr-count {
    font-size: 10px;
    color: var(--color-text-dark);
    margin: 0 0 10px 0;
}
.custom-gr-summary .gr-logo {
    width: 80px;
}

/* Phần Slider bên phải */
.custom-gr-slider {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 900px;
    position: relative;
}
.gr-swiper {
    width: 100%;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Áp dụng kích thước chuẩn từ Figma */
.gr-card {
    width: 226px !important;
    height: 404px !important;
    border: 1px solid #DBDDE1;
    border-radius: 0 !important;
    overflow: hidden;
    background: var(--color-primary);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.gr-card-img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gr-card-body {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--color-primary);
    box-sizing: border-box;
}
.gr-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.gr-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin: 0 !important;
}
.gr-user-info {
    flex-grow: 1;
    text-align: left;
}
.gr-name {
    font-size: 9px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    line-height: 1.2;
}
.gr-date {
    font-size: 9px;
    color: var(--color-text-grey);
}
.gr-icon {
    width: 14px;
}
.gr-card-stars {
    width: 70px;
    margin-bottom: 8px;
}
.gr-text {
    font-size: 9px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 10px 0;
    flex-grow: 1;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gr-read-more {
    font-size: 9px;
    color: var(--color-text-grey);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    text-align: left;
    display: block;
    margin-top: auto;
}

/* Ẩn Dots trên Desktop & Tablet */
.swiper-pagination {
    display: none !important;
}

/* Mũi tên Desktop/Tablet */
.swiper-button-prev, .swiper-button-next {
    color: #ccc;
    transform: scale(0.5);
}

.swiper-pagination-bullet-active {
    background: var(--color-accent-dark);
}

/* Responsive Mobile: 0 - 767px */
@media (max-width: 767px) {
    .custom-gr-container {
        flex-direction: column;
        padding: 10px;
    }
    .custom-gr-summary {
        margin-bottom: 20px;
    }
    .gr-swiper {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 40px;
    }
    /* Ẩn mũi tên trên Mobile */
    .swiper-button-prev, .swiper-button-next {
        display: none !important;
    }
    /* Hiện lại Dots trên Mobile */
    .swiper-pagination {
        display: block !important;
    }
}

/* Tablet: 768 - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .custom-gr-slider {
        max-width: 512px;
    }
}

/* Desktop: từ 1024px trở lên */
@media (min-width: 1024px) {
    .custom-gr-slider {
        max-width: 758px;
    }
}
