.google-reviews-container {
    --gr-star-color: #fbbf24;
    --gr-text: #111827;
    --gr-surface: #ffffff;
    --gr-card: #f9fafb;
    --gr-muted: #6b7280;
    --gr-name: #0f172a;
    --gr-date: #6b7280;
    --gr-button-bg: #0d6efd;
    --gr-button-text: #ffffff;
    --gr-card-radius: 12px;
    --gr-card-padding: 20px;
    --gr-button-radius: 999px;
    --gr-button-padding-y: 12px;
    --gr-button-padding-x: 18px;
    --gr-star-size: 16px;
    --gr-font-size: 16px;
    --gr-card-gap: 25px;
    --gr-title-color: #0f172a;
    --gr-title-size: 22px;
    --gr-title-weight: 700;
    --gr-title-align: left;
    --gr-score-color: #0f172a;
    --gr-score-bg: #eef2ff;
    --gr-score-size: 20px;
    color: var(--gr-text);
    background: transparent;
    font-size: var(--gr-font-size);
    line-height: 1.6;
    border: none !important;
    box-shadow: none !important;
}

.google-reviews-container.gr-theme-dark {
    --gr-text: #e5e7eb;
    --gr-surface: #0b1324;
    --gr-card: #111827;
    --gr-muted: #9ca3af;
    --gr-name: #e5e7eb;
    --gr-date: #9ca3af;
    --gr-button-bg: #2563eb;
    --gr-score-bg: #1f2937;
}

/* Keep review cards in the main slider equal height */
.google-reviews-container .gr-reviews .swiper-wrapper {
    align-items: stretch;
}

.google-reviews-container .gr-reviews .swiper-slide {
    height: auto;
    display: flex;
}

.google-reviews-container.gr-layout-horizontal .gr-review.swiper-slide {
    transition: transform .35s ease, opacity .35s ease, filter .35s ease, box-shadow .35s ease;
}

.google-reviews-container.gr-layout-horizontal .gr-review.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.45;
    filter: grayscale(0.2) brightness(0.8);
    transform: scale(0.98);
}

.google-reviews-container.gr-layout-horizontal .gr-review.swiper-slide.swiper-slide-active {
    opacity: 1;
    filter: none;
    transform: scale(1);
    z-index: 2;
}

@media (max-width: 576px) {
    .google-reviews-container.gr-layout-horizontal .gr-slider-shell:not(.container) .gr-reviews.swiper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.gr-reviews[data-layout="vertical"] {
    overflow: visible;
}

.gr-reviews[data-layout="vertical"] .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--gr-card-gap);
    transform: none !important;
}

.gr-reviews[data-layout="vertical"] .swiper-slide {
    width: auto !important;
}

.google-reviews-container .gr-header {
    margin-bottom: 1rem;
}

.google-reviews-container .gr-title {
    color: var(--gr-title-color) !important;
    line-height: 1.2;
    margin: 0;
}

.google-reviews-container .gr-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.google-reviews-container .gr-align-left .gr-header-line {
    flex-direction: row;
}

.google-reviews-container .gr-align-right .gr-header-line {
    flex-direction: row-reverse;
}

.google-reviews-container .gr-align-center {
    text-align: center;
}

.google-reviews-container .gr-align-center .gr-header-line,
.google-reviews-container .gr-align-center .gr-aggregate,
.google-reviews-container .gr-align-center .gr-title {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.google-reviews-container .gr-align-center .gr-aggregate {
    margin-top: 6px;
}

.google-reviews-container .gr-aggregate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--gr-score-bg);
    color: var(--gr-score-color);
    border-radius: 999px;
    font-weight: 600;
}

.google-reviews-container .gr-aggregate .gr-score-value {
    color: var(--gr-score-color);
    font-size: var(--gr-score-size);
}

.google-reviews-container .gr-aggregate .gr-score-stars {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.google-reviews-container .gr-score-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #ea4335;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.google-reviews-container .gr-score-icon-fb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0 6px 0 -10px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.google-reviews-container .gr-score-icon-fb svg {
    width: 12px;
    height: 12px;
    display: block;
}

.google-reviews-container .gr-score-icon-fb svg path {
    fill: #fff;
}

.google-reviews-container .gr-score-icon-logo {
    width: 26px;
    height: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 9.5c3.54 0 6.72 1.22 9.22 3.6l6.88-6.88C35.89 2.42 30.47 0 24 0 14.62 0 6.43 5.38 2.44 13.22l7.99 6.2C12.57 13.32 17.77 9.5 24 9.5z'/%3E%3Cpath fill='%23EA4335' d='M46.5 24.5c0-1.59-.14-3.11-.39-4.57H24v9.02h12.7c-.54 2.91-2.15 5.37-4.62 7.02l7.19 5.59C43.96 36.84 46.5 31.17 46.5 24.5z'/%3E%3Cpath fill='%23FBBC04' d='M10.43 28.03a14.5 14.5 0 0 1 0-8.06l-7.99-6.2C.9 17.02 0 20.38 0 24c0 3.62.9 6.98 2.44 10.22l7.99-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.94-2.13 15.92-5.83l-7.19-5.59c-2 1.35-4.6 2.14-8.73 2.14-6.23 0-11.43-3.82-13.57-9.14l-7.99 6.2C6.43 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E") center/contain no-repeat;
    background-color: transparent;
    border-radius: 0;
}

.google-reviews-container .gr-score-star {
    font-size: calc(var(--gr-score-size) * 0.9);
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--gr-star-color) var(--gr-star-fill), #d1d5db var(--gr-star-fill));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.google-reviews-container .gr-aggregate .gr-score-count {
    color: var(--gr-muted);
    font-size: 0.95rem;
}


.gr-shell { width: 100%; }
.gr-width-container { max-width: 1200px; margin-left: auto; margin-right: auto; }
.gr-width-fixed { margin-left: auto; margin-right: auto; }
.gr-width-full { width: 100%; max-width: none; }

.gr-icon-style-controls { display: none; }

@media (max-width: 768px) {
    .google-reviews-container .gr-score-count {
        display: none;
    }
    .google-reviews-container .gr-aggregate {
        justify-content: flex-start;
        width: 100%;
    }
    .google-reviews-container .gr-title-heading {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0.5rem;
    }
    .google-reviews-container .gr-header-line {
        flex-direction: column;
        align-items: flex-start;
    }
    .google-reviews-container .gr-header-line .gr-aggregate {
        width: 100%;
        justify-content: flex-start;
    }
}

.google-reviews-container .gr-review {
    padding: var(--gr-card-padding);
    background: var(--gr-card);
    color: var(--gr-text);
    border: none;
    border-radius: var(--gr-card-radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.google-reviews-container .gr-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.google-reviews-container .gr-review__meta {
    display: flex;
    align-items: center;
    margin-bottom: .75rem;
    gap: .75rem;
}

.google-reviews-container .gr-review__photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.google-reviews-container .gr-review__info strong {
    color: var(--gr-name);
}

.google-reviews-container .gr-review__info em {
    color: var(--gr-date);
    font-style: normal;
    font-size: .875rem;
}

.google-reviews-container .gr-review__stars {
    display: flex;
    gap: 4px;
    margin-bottom: .5rem;
}

.google-reviews-container .gr-star {
    color: var(--gr-star-color);
    font-size: var(--gr-star-size);
    line-height: 1;
}

.google-reviews-container .gr-stars {
    display: flex;
    gap: 4px;
    color: var(--gr-star-color);
}

.google-reviews-container .gr-stars .gr-star {
    font-size: var(--gr-star-size);
    color: var(--gr-star-color);
}

.google-reviews-container .gr-review p {
    margin: 0;
    color: var(--gr-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    flex-grow: 1;
}

.google-reviews-container .gr-review__score {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--gr-text);
}

.google-reviews-container .gr-review__score .google-score {
    font-weight: 700;
    font-size: 1.4rem;
}

.google-reviews-container .gr-review__score .google-count {
    color: var(--gr-muted);
    font-size: .9rem;
}

.google-reviews-container .gr-review__score .google-icon img {
    width: 25px;
    height: 25px;
    transform: translateY(-1px);
}

#grReviewOffcanvas.gr-offcanvas-preinit {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(390px, 90vw);
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 9999 !important;
}

#grReviewOffcanvas.gr-offcanvas-preinit .offcanvas-body {
    overflow-y: auto;
}

#grReviewOffcanvas.offcanvas {
    z-index: 9999 !important;
    background: var(--gr-off-surface, var(--gr-surface)) !important;
    background-color: var(--gr-off-surface, var(--gr-surface)) !important;
    color: var(--gr-off-text, var(--gr-text)) !important;
}

#grReviewOffcanvas.offcanvas-backdrop {
    z-index: 9998 !important;
}

#grReviewOffcanvas .offcanvas-header {
    border-bottom: none;
}

#grReviewOffcanvas .offcanvas-title {
    color: var(--gr-off-title, var(--gr-off-text, var(--gr-text))) !important;
}

#grReviewOffcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
}

#grReviewOffcanvas #grReviewList {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

#grReviewOffcanvas .gr-full-review {
    color: var(--gr-off-text, var(--gr-text));
    border: none;
    padding-left: 0;
    padding-right: 0;
}

#grReviewOffcanvas .gr-full-review strong,
.gr-offcanvas-fallback .gr-full-review strong {
    color: var(--gr-off-name, var(--gr-off-text, var(--gr-text)));
}

#grReviewOffcanvas .gr-full-review p,
.gr-offcanvas-fallback .gr-full-review p {
    color: var(--gr-off-text, var(--gr-text));
}

#grReviewOffcanvas .gr-full-review .gr-stars {
    color: var(--gr-off-star, var(--gr-star-color));
    margin-bottom: .25rem;
}

.gr-offcanvas-fallback .gr-full-review.gr-active,
#grReviewOffcanvas .gr-full-review.gr-active {
    background: var(--gr-off-active-bg, var(--gr-card));
    border-radius: 10px;
    padding: 1rem;
    color: var(--gr-off-active-text, var(--gr-off-text, var(--gr-text)));
}

.gr-offcanvas-fallback .gr-full-review.gr-active strong,
#grReviewOffcanvas .gr-full-review.gr-active strong {
    color: var(--gr-off-active-text, var(--gr-off-text, var(--gr-text)));
}

.gr-offcanvas-fallback .gr-full-review.gr-active .gr-stars,
#grReviewOffcanvas .gr-full-review.gr-active .gr-stars {
    color: var(--gr-off-active-star, var(--gr-off-star, var(--gr-star-color)));
}

/* Fallback offcanvas (when Bootstrap JS is not present) */
.gr-offcanvas-fallback {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(390px, 90vw);
    height: 100vh;
    background: var(--gr-off-surface, var(--gr-surface)) !important;
    background-color: var(--gr-off-surface, var(--gr-surface)) !important;
    color: var(--gr-off-text, var(--gr-text)) !important;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.18);
    transition: right .3s ease;
    z-index: 1051;
    overflow-y: auto;
    border: none !important;
}

.gr-offcanvas-fallback .offcanvas-header {
    padding: 1rem;
    border-bottom: none;
}

.gr-offcanvas-fallback .offcanvas-body {
    padding: 1rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
}

.gr-offcanvas-fallback #grReviewList {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

.gr-offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1050;
}

body.gr-offcanvas-open .gr-offcanvas-fallback {
    right: 0;
}

body.gr-offcanvas-open .gr-offcanvas-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.gr-offcanvas-fallback .d-flex { display: flex; }
.gr-offcanvas-fallback .align-items-center { align-items: center; }
.gr-offcanvas-fallback .mb-2 { margin-bottom: .5rem; }
.gr-offcanvas-fallback .mb-4 { margin-bottom: 1.5rem; }
.gr-offcanvas-fallback .pb-3 { padding-bottom: 1rem; }
.gr-offcanvas-fallback .me-3 { margin-right: 1rem; }
.gr-offcanvas-fallback .rounded-circle { border-radius: 50%; }
.gr-offcanvas-fallback .text-muted { color: var(--gr-off-date, var(--gr-date)) !important; }
#grReviewOffcanvas .gr-full-review .text-muted { color: var(--gr-off-date, var(--gr-date)) !important; }
.gr-offcanvas-fallback .gr-full-review.gr-active .text-muted { color: var(--gr-off-active-date, var(--gr-off-date, var(--gr-date))) !important; }
#grReviewOffcanvas .gr-full-review.gr-active .text-muted { color: var(--gr-off-active-date, var(--gr-off-date, var(--gr-date))) !important; }
.gr-offcanvas-fallback .btn-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.gr-offcanvas-fallback .btn-close::before {
    content: '×';
    color: var(--gr-off-text, var(--gr-text));
}
