/* Google Business Reviews - Frontend Styles

   Theme colours via CSS custom properties (set from Display Settings, the Divi/Elementor
   colour options, or shortcode attributes; each falls back to the default below):
   --gbr-accent        arrows, dots, links, "Read more", "Write a Review" button
   --gbr-panel-bg      reviews panel background (can be "transparent")
   --gbr-panel-shadow  panel shadow ("none" is set automatically for a transparent panel)
   --gbr-header-bg     header and footer background
   --gbr-heading-color "Customer Reviews" heading */

.gbr-reviews-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 2rem 0;
    background: var(--gbr-panel-bg, #fff);
    border-radius: 12px;
    box-shadow: var(--gbr-panel-shadow, 0 4px 20px rgba(0, 0, 0, 0.08));
    overflow: hidden;
    position: relative;
}

.gbr-reviews-container * {
    box-sizing: border-box;
}

/* Reviews Header */
.gbr-reviews-header {
    background: var(--gbr-header-bg, linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%));
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gbr-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-height: 80px;
}

.gbr-header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gbr-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Google Badge */
.gbr-google-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.gbr-google-badge:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.gbr-google-logo {
    height: 20px;
    width: auto;
    display: block;
}

.gbr-powered-by {
    font-size: 0.85rem;
    color: #5f6368;
    font-weight: 500;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Write Review Button */
.gbr-write-review {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--gbr-header-bg, linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.gbr-write-review::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gbr-accent, linear-gradient(90deg, #1a73e8, #34a853));
    border-radius: 0 0 3px 3px;
}

.gbr-write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gbr-accent, linear-gradient(135deg, #1a73e8 0%, #1557b0 100%));
    color: #fff;
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, filter 0.3s ease;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--gbr-accent, #1a73e8) 30%, transparent);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.gbr-write-review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.gbr-write-review-btn:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--gbr-accent, #1a73e8) 40%, transparent);
    border-color: rgba(255, 255, 255, 0.2);
}

.gbr-write-review-btn:hover::before {
    transform: translateX(100%);
}

.gbr-write-review-btn:active {
    transform: translateY(-1px);
}

.gbr-write-review-btn svg {
    transition: transform 0.3s ease;
}

.gbr-write-review-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.gbr-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gbr-heading-color, #1a1a1a);
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.2;
    text-align: left;
}

.gbr-average-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    padding: 0.75rem 1rem;
    background: var(--gbr-badge-bg, rgba(255, 255, 255, 0.7));
    border-radius: 12px;
    border: 1px solid var(--gbr-badge-border, rgba(0, 0, 0, 0.05));
    width: fit-content;
}

.gbr-rating-number {
    font-size: 2rem;
    font-weight: 800;
    /* Sits on the light rating box, so it keeps a dark default (not the heading colour). */
    color: var(--gbr-badge-rating-color, #202124);
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gbr-stars {
    font-size: 1.2rem;
    color: var(--gbr-badge-star-filled, #fbbc04);
    letter-spacing: 2px;
}

.gbr-stars .star {
    color: var(--gbr-badge-star-empty, #dadce0);
}

.gbr-stars .star.filled {
    color: var(--gbr-badge-star-filled, #fbbc04);
    text-shadow: 0 1px 2px rgba(251, 188, 4, 0.3);
}

.gbr-review-count {
    font-size: 0.9rem;
    color: var(--gbr-badge-count-color, #5f6368);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Reviews Content */
.gbr-reviews-content {
    padding: 1.5rem;
}

/* Grid Layout */
.gbr-layout-grid .gbr-reviews-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* List Layout */
.gbr-layout-list .gbr-reviews-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Carousel Layout
   --gbr-spv (slides to show) is set inline on the container; --gbr-cols caps it per
   breakpoint. Slide widths are pure CSS, so there is no layout shift when the script loads. */
.gbr-reviews-container.gbr-layout-carousel {
    --gbr-carousel-side-padding: 4rem;
    --gbr-carousel-arrow-size: 48px;
    --gbr-carousel-gap: 1.5rem;
    --gbr-cols: var(--gbr-spv, 3);
}

.gbr-layout-carousel .gbr-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Side gutter so the arrows sit outside the slide content; clip slides to the
       content box so neighbouring slides don't peek into the gutter. */
    padding: 1.5rem var(--gbr-carousel-side-padding);
    clip-path: inset(0 var(--gbr-carousel-side-padding));
}

/* The stage holds the slides and arrows, so the arrows centre on the slides (not the
   header) and stay in the slides' column in the compact two-column layout. */
.gbr-carousel-stage {
    position: relative;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-carousel,
.gbr-layout-carousel.gbr-carousel-style-compact .gbr-write-review {
    min-width: 0;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-write-review {
    grid-column: 1 / -1;
}

.gbr-carousel-track {
    display: flex;
    gap: var(--gbr-carousel-gap);
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.gbr-carousel-track > .gbr-review-item {
    flex: 0 0 calc((100% - (var(--gbr-cols) - 1) * var(--gbr-carousel-gap)) / var(--gbr-cols));
    min-width: 0;
}

/* Compact carousel variant (layout="carousel" carousel_style="compact") */
.gbr-reviews-container.gbr-layout-carousel.gbr-carousel-style-compact {
    --gbr-carousel-side-padding: 2rem;
    --gbr-carousel-arrow-size: 36px;
    --gbr-carousel-gap: 1rem;
    display: grid;
    grid-template-columns: minmax(150px, 200px) 1fr;
    gap: 0.75rem;
    align-items: stretch;
    padding: 0.875rem;
    background: var(--gbr-panel-bg, #f7f7f7);
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid #ececec;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-reviews-header {
    background: transparent;
    border: 0;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-header-top {
    min-height: auto;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-title {
    display: none;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-average-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-rating-number {
    /* No rating box in this style, so follow the heading colour. */
    color: var(--gbr-badge-rating-color, var(--gbr-heading-color, #202124));
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-stars {
    font-size: 1rem;
    letter-spacing: 1px;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-count {
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gbr-badge-count-color, var(--gbr-heading-color, #1f1f1f));
    text-decoration: underline;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-google-badge {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 0;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-powered-by {
    display: none;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-google-logo {
    height: 32px;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-google-logo svg {
    width: 32px;
    height: 32px;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-carousel-wrapper {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-item {
    padding: 0.95rem;
    border-radius: 10px;
    border-color: #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    min-height: 100%;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-header {
    margin-bottom: 0.6rem;
    gap: 0.65rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-author-photo {
    width: 34px;
    height: 34px;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-author-name {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-date {
    font-size: 0.75rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-rating .gbr-stars {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-content {
    margin-bottom: 0;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-text-wrapper:not(.gbr-text-expanded) .gbr-review-text {
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-read-more {
    padding: 0.2rem 0;
    font-size: 0.82rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-link {
    margin-top: 0.6rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-link a {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-carousel-dots {
    padding: 0.6rem 0 0;
    margin-top: 0.35rem;
}

.gbr-layout-carousel.gbr-carousel-style-compact .gbr-carousel-prev,
.gbr-layout-carousel.gbr-carousel-style-compact .gbr-carousel-next {
    border-width: 1px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}

/* Compact/Hero Layout - Space-efficient horizontal display */
.gbr-reviews-container.gbr-layout-compact {
    --gbr-carousel-arrow-size: 40px;
    --gbr-carousel-side-padding: 40px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* Compact strip with arrows: reserve room so the first/last card isn't under an arrow. */
.gbr-layout-compact .gbr-strip-stage .gbr-reviews-content {
    padding-left: calc(var(--gbr-carousel-arrow-size) + 0.5rem);
    padding-right: calc(var(--gbr-carousel-arrow-size) + 0.5rem);
    scroll-padding-inline: calc(var(--gbr-carousel-arrow-size) + 0.5rem);
}

.gbr-layout-compact .gbr-reviews-header {
    display: none;
}

.gbr-layout-compact .gbr-reviews-content {
    padding: 1rem 0;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.gbr-layout-compact .gbr-reviews-content::-webkit-scrollbar {
    height: 6px;
}

.gbr-layout-compact .gbr-reviews-content::-webkit-scrollbar-track {
    background: transparent;
}

.gbr-layout-compact .gbr-reviews-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.gbr-layout-compact .gbr-reviews-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.gbr-layout-compact .gbr-review-item {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 320px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gbr-layout-compact .gbr-review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gbr-layout-compact .gbr-review-header {
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.gbr-layout-compact .gbr-author-photo {
    width: 36px;
    height: 36px;
}

.gbr-layout-compact .gbr-author-name {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.gbr-layout-compact .gbr-review-date {
    font-size: 0.75rem;
}

.gbr-layout-compact .gbr-review-rating .gbr-stars {
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.gbr-layout-compact .gbr-review-content {
    margin-bottom: 0;
}

.gbr-layout-compact .gbr-review-text-wrapper:not(.gbr-text-expanded) .gbr-review-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gbr-layout-compact .gbr-review-link {
    margin-top: 0.75rem;
}

.gbr-layout-compact .gbr-review-link a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Carousel Controls */
.gbr-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    /* Keep prev/next on physical L/R so icons match labels in RTL layouts */
    direction: ltr;
}

.gbr-carousel-controls[hidden],
.gbr-carousel-dots[hidden] {
    display: none;
}

.gbr-carousel-prev,
.gbr-carousel-next {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: var(--gbr-carousel-arrow-size);
    height: var(--gbr-carousel-arrow-size);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--gbr-accent, #1a73e8);
    padding: 0;
    flex-shrink: 0;
    /* Centred vertically on the slides and horizontally in the side gutter */
    position: absolute;
    top: calc(var(--gbr-carousel-arrow-size) / -2);
}

.gbr-carousel-prev {
    left: calc((var(--gbr-carousel-side-padding) - var(--gbr-carousel-arrow-size)) / 2);
}

.gbr-carousel-next {
    right: calc((var(--gbr-carousel-side-padding) - var(--gbr-carousel-arrow-size)) / 2);
}

.gbr-carousel-prev:hover,
.gbr-carousel-next:hover {
    background: #fff;
    border-color: var(--gbr-accent, #1a73e8);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--gbr-accent, #1a73e8) 25%, transparent);
    transform: scale(1.1);
}

.gbr-carousel-prev:disabled,
.gbr-carousel-next:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.gbr-carousel-prev:active,
.gbr-carousel-next:active {
    transform: scale(0.95);
}

.gbr-carousel-prev:focus,
.gbr-carousel-next:focus {
    outline: 3px solid var(--gbr-accent, #1a73e8);
    outline-offset: 2px;
}

.gbr-carousel-prev svg,
.gbr-carousel-next svg {
    width: 20px;
    height: 20px;
}

/* Carousel Dots */
.gbr-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.gbr-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #dadce0;
    background: transparent;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    padding: 0;
    margin: 0;
}

.gbr-carousel-dot:hover {
    border-color: var(--gbr-accent, #1a73e8);
    background: rgba(26, 115, 232, 0.2);
    background: color-mix(in srgb, var(--gbr-accent, #1a73e8) 20%, transparent);
    transform: scale(1.2);
}

.gbr-carousel-dot.active {
    background: var(--gbr-accent, #1a73e8);
    border-color: var(--gbr-accent, #1a73e8);
    width: 32px;
    border-radius: 6px;
}

.gbr-carousel-dot:focus {
    outline: 2px solid var(--gbr-accent, #1a73e8);
    outline-offset: 2px;
}

/* Review Item */
.gbr-review-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.gbr-review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Review Header */
.gbr-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.gbr-review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.gbr-author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Google-style Initial Letter Avatar */
.gbr-initial-avatar {
    background: linear-gradient(135deg, #ea4335, #fbbc04, #34a853, #4285f4, #9c27b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.gbr-initial-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.gbr-initial {
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
}

.gbr-author-info {
    flex: 1;
    min-width: 0;
}

.gbr-author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.gbr-review-date {
    font-size: 0.875rem;
    color: #666;
}

.gbr-review-rating {
    flex-shrink: 0;
}

.gbr-review-rating .gbr-stars {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Review Content */
.gbr-review-content {
    margin-bottom: 1rem;
}

.gbr-review-text-wrapper {
    position: relative;
}

.gbr-review-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Read more: long text is split into a visible head and a hidden rest (sent once, not
   duplicated); frontend.js toggles .gbr-text-expanded on the wrapper. */
.gbr-review-text-rest,
.gbr-read-less-text,
.gbr-read-more[hidden],
.gbr-text-expanded .gbr-ellipsis,
.gbr-text-expanded .gbr-read-more-text {
    display: none;
}

.gbr-text-expanded .gbr-review-text-rest,
.gbr-text-expanded .gbr-read-less-text {
    display: inline;
}

.gbr-read-more {
    background: transparent;
    border: none;
    color: var(--gbr-accent, #1a73e8);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    margin: 0;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    line-height: 1.4;
}

.gbr-read-more:hover {
    color: var(--gbr-accent, #1557b0);
    text-decoration: underline;
}

.gbr-read-more:focus {
    outline: 2px solid var(--gbr-accent, #1a73e8);
    outline-offset: 2px;
    border-radius: 2px;
}

.gbr-read-more.gbr-expanded {
    margin-top: 0.5rem;
}

.gbr-read-more::after {
    content: ' →';
    display: inline-block;
    margin-left: 0.25rem;
}

.gbr-read-more.gbr-expanded::after {
    content: ' ↑';
}

.gbr-review-link {
    margin-top: 1rem;
}

.gbr-review-link a {
    color: var(--gbr-accent, #007cba);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gbr-review-link a:hover {
    color: var(--gbr-accent, #005a87);
    background: #e9ecef;
    border-color: var(--gbr-accent, #007cba);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* No Reviews Message */
.gbr-no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Responsive */
@media (max-width: 1024px) {
    .gbr-reviews-container.gbr-layout-carousel {
        --gbr-cols: min(var(--gbr-spv, 3), 3);
    }
}

@media (max-width: 768px) {
    .gbr-reviews-container.gbr-layout-carousel {
        --gbr-carousel-side-padding: 3rem;
        --gbr-carousel-arrow-size: 40px;
        --gbr-carousel-gap: 0.75rem;
        --gbr-cols: min(var(--gbr-spv, 3), 2);
    }

    .gbr-reviews-container.gbr-layout-carousel.gbr-carousel-style-compact {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.7rem;
    }

    .gbr-layout-carousel.gbr-carousel-style-compact .gbr-reviews-header {
        padding: 0.25rem 0.25rem 0;
    }

    .gbr-layout-carousel.gbr-carousel-style-compact .gbr-header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-text-wrapper:not(.gbr-text-expanded) .gbr-review-text {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .gbr-carousel-prev svg,
    .gbr-carousel-next svg {
        width: 18px;
        height: 18px;
    }

    .gbr-reviews-container {
        margin: 1rem 0;
        border-radius: 8px;
    }

    .gbr-reviews-header {
        padding: 1.5rem;
    }

    .gbr-header-top {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        min-height: auto;
    }

    .gbr-header-left {
        align-items: center;
        text-align: center;
    }

    .gbr-header-right {
        justify-content: center;
    }

    .gbr-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .gbr-average-rating {
        justify-content: center;
        margin-top: 1rem;
        align-self: center;
    }

    .gbr-reviews-content {
        padding: 1rem;
    }

    .gbr-review-item {
        padding: 1rem;
    }

    .gbr-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .gbr-author-photo {
        width: 40px;
        height: 40px;
    }

    .gbr-rating-number {
        font-size: 1.5rem;
    }

    .gbr-google-logo {
        max-width: 60px;
        height: auto;
    }

    .gbr-google-badge {
        padding: 0.6rem 0.9rem;
        gap: 0.4rem;
        max-width: 100%;
        overflow: hidden;
    }

    .gbr-powered-by {
        font-size: 0.8rem;
    }

    .gbr-layout-compact .gbr-review-item {
        min-width: 260px;
        max-width: 280px;
        padding: 0.875rem;
    }

    .gbr-layout-compact .gbr-author-photo {
        width: 32px;
        height: 32px;
    }

    .gbr-layout-compact .gbr-review-text-wrapper:not(.gbr-text-expanded) .gbr-review-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .gbr-reviews-container.gbr-layout-carousel {
        --gbr-carousel-arrow-size: 36px;
        --gbr-carousel-gap: 0.5rem;
        --gbr-cols: 1;
    }

    .gbr-reviews-container.gbr-layout-carousel.gbr-carousel-style-compact {
        --gbr-carousel-side-padding: 1.75rem;
        padding: 0.5rem;
    }

    .gbr-layout-carousel.gbr-carousel-style-compact .gbr-header-top {
        gap: 0.5rem;
    }

    .gbr-layout-carousel.gbr-carousel-style-compact .gbr-review-item {
        padding: 0.75rem;
    }

    .gbr-carousel-prev svg,
    .gbr-carousel-next svg {
        width: 16px;
        height: 16px;
    }

    .gbr-carousel-dot {
        width: 10px;
        height: 10px;
    }

    .gbr-carousel-dot.active {
        width: 24px;
    }

    .gbr-reviews-header {
        padding: 0.75rem 1rem;
    }

    .gbr-reviews-content {
        padding: 0.75rem;
    }

    .gbr-review-item {
        padding: 0.75rem;
    }

    .gbr-author-photo {
        width: 36px;
        height: 36px;
    }

    .gbr-review-text {
        font-size: 0.9rem;
    }

    .gbr-read-more {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .gbr-write-review {
        padding: 2rem 1rem;
    }

    .gbr-write-review-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .gbr-google-logo {
        max-width: 50px;
    }

    .gbr-google-badge {
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
        flex-direction: column;
        text-align: center;
    }

    .gbr-powered-by {
        font-size: 0.75rem;
    }

    .gbr-average-rating {
        gap: 0.5rem;
    }

    .gbr-stars {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .gbr-layout-compact .gbr-review-item {
        min-width: 240px;
        max-width: 260px;
        padding: 0.75rem;
    }

    .gbr-layout-compact .gbr-author-photo {
        width: 28px;
        height: 28px;
    }
}

/* Accessibility */
.gbr-review-link a:focus-visible,
.gbr-write-review-btn:focus-visible {
    outline: 3px solid var(--gbr-accent, #007cba);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-contrast: high) {
    .gbr-review-item {
        border: 2px solid #000;
    }

    .gbr-stars .star.filled {
        color: #000;
    }

    .gbr-stars .star {
        color: #666;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gbr-review-item,
    .gbr-write-review-btn,
    .gbr-write-review-btn::before,
    .gbr-review-link a,
    .gbr-google-badge,
    .gbr-carousel-track,
    .gbr-carousel-prev,
    .gbr-carousel-next,
    .gbr-carousel-dot {
        transition: none;
    }
}

@media print {
    .gbr-review-link {
        display: none;
    }

    .gbr-review-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* "Show more reviews" (grid and list with per_page). Hidden reviews stay hidden
   whatever display value the layout gives review cards. */
.gbr-review-item[hidden] {
    display: none !important;
}

.gbr-load-more-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.gbr-load-more {
    background: transparent;
    color: var(--gbr-accent, #1a73e8);
    border: 2px solid currentColor;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gbr-load-more:hover,
.gbr-load-more:focus-visible {
    background: var(--gbr-accent, #1a73e8);
    color: #fff;
}
