/* Google Business Reviews - Frontend Styles */

.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: #fff;
    border-radius: 12px;
    box-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: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.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);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.gbr-google-badge:hover {
    background: rgba(255, 255, 255, 1);
    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;
}

/* Hero badge – clickable Google rating badge (e.g. in hero section), scrolls to reviews block
   Colours are set via CSS custom properties so themes can override:
   --gbr-badge-bg, --gbr-badge-border, --gbr-badge-star-filled, --gbr-badge-star-empty,
   --gbr-badge-rating-color, --gbr-badge-count-color, --gbr-badge-verified-bg */
.gbr-reviews-badge-hero {
    --gbr-badge-bg: #ffffff;
    --gbr-badge-border: #dadce0;
    --gbr-badge-star-filled: #fbbc04;
    --gbr-badge-star-empty: #dadce0;
    --gbr-badge-rating-color: #202124;
    --gbr-badge-count-color: #5f6368;
    --gbr-badge-verified-bg: #34a853;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gbr-badge-bg);
    border: 1px solid var(--gbr-badge-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.25;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.gbr-reviews-badge-hero:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}

.gbr-reviews-badge-hero:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* Google logo – flex + align-items center keeps it vertically centred with text */
.gbr-badge-google-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.gbr-badge-google-logo svg {
    display: block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.gbr-badge-rating-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gbr-badge-rating-color);
    line-height: 1.25;
}

.gbr-badge-stars {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.gbr-badge-star {
    color: var(--gbr-badge-star-empty);
}

.gbr-badge-star-full {
    color: var(--gbr-badge-star-filled);
}

.gbr-badge-star-partial {
    display: inline-block;
    background: linear-gradient(90deg, var(--gbr-badge-star-filled) calc(var(--gbr-partial, 1) * 100%), var(--gbr-badge-star-empty) calc(var(--gbr-partial, 1) * 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gbr-badge-star-empty {
    color: var(--gbr-badge-star-empty);
}

.gbr-badge-review-count {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gbr-badge-count-color);
    line-height: 1.25;
}

.gbr-badge-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gbr-badge-verified-bg);
    color: #fff;
    flex-shrink: 0;
    line-height: 0;
}

.gbr-badge-verified svg {
    width: 11px;
    height: 11px;
    display: block;
}

/* Google Link */
.gbr-google-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 20px;
    background: #fff;
    transition: all 0.2s ease;
}

.gbr-google-link:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1557b0;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Write Review Button */
.gbr-write-review {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #e9ecef;
    position: relative;
}

.gbr-write-review::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: 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: 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: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.25);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.gbr-write-review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.gbr-write-review-btn:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.gbr-write-review-btn:hover::before {
    left: 100%;
}

.gbr-write-review-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
}

.gbr-write-review-btn svg {
    transition: transform 0.3s ease;
}

.gbr-write-review-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Pulse animation for attention */
@keyframes gbr-pulse {
    0% {
        box-shadow: 0 4px 16px rgba(26, 115, 232, 0.25);
    }
    50% {
        box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
    }
    100% {
        box-shadow: 0 4px 16px rgba(26, 115, 232, 0.25);
    }
}

.gbr-write-review-btn {
    animation: gbr-pulse 3s ease-in-out infinite;
}

.gbr-write-review-btn:hover {
    animation: none;
}

.gbr-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    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;
    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);
    transition: color 0.2s ease;
}

.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-layout-carousel .gbr-reviews-content {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

/* Compact/Hero Layout - Space-efficient horizontal display */
.gbr-layout-compact .gbr-reviews-container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.gbr-layout-compact .gbr-reviews-header {
    display: none; /* Hide header in compact mode */
}

.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;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gbr-layout-compact .gbr-review-item:hover {
    transform: translateY(-2px);
    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 {
    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;
}

.gbr-layout-compact .gbr-write-review {
    display: none; /* Hide write review button in compact mode */
}

/* Compact layout responsive */
@media (max-width: 768px) {
    .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 {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .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;
    }
}

.gbr-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Add padding to create space for arrows */
    padding-left: 4rem;
    padding-right: 4rem;
}

.gbr-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    width: 100%;
}

.gbr-layout-carousel .gbr-review-item {
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
}

/* Carousel slide widths are calculated dynamically by JavaScript */
/* Base styles - JavaScript will override these with calculated widths */
.gbr-layout-carousel .gbr-carousel-track .gbr-review-item {
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
}

/* Carousel Controls */
.gbr-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0;
}

.gbr-carousel-prev,
.gbr-carousel-next {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #1a73e8;
    padding: 0;
    flex-shrink: 0;
    /* Position arrows at the edges, outside the padded content area */
    position: absolute;
}

.gbr-carousel-prev {
    /* Position arrow at the inner edge of the wrapper padding (4rem - 0.5rem for spacing) */
    left: 3.5rem;
}

.gbr-carousel-next {
    /* Position arrow at the inner edge of the wrapper padding (4rem - 0.5rem for spacing) */
    right: 3.5rem;
}

.gbr-carousel-prev:hover,
.gbr-carousel-next:hover {
    background: #fff;
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
    transform: scale(1.1);
}

.gbr-carousel-prev:active,
.gbr-carousel-next:active {
    transform: scale(0.95);
}

.gbr-carousel-prev:focus,
.gbr-carousel-next:focus {
    outline: 3px solid #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: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.gbr-carousel-dot:hover {
    border-color: #1a73e8;
    background: rgba(26, 115, 232, 0.2);
    transform: scale(1.2);
}

.gbr-carousel-dot.active {
    background: #1a73e8;
    border-color: #1a73e8;
    width: 32px;
    border-radius: 6px;
}

.gbr-carousel-dot:focus {
    outline: 2px solid #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;
}

.gbr-no-photo {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #999;
}

/* Google-style Initial Letter Avatar */
.gbr-initial-avatar {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.gbr-initial-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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;
}

/* Dynamic avatar colors - using CSS custom properties for better maintainability */
.gbr-initial-avatar {
    --avatar-colors: #ea4335, #fbbc04, #34a853, #4285f4, #9c27b0;
    background: linear-gradient(135deg, var(--avatar-colors));
}

.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;
}

.gbr-review-text-truncated {
    display: inline;
}

.gbr-review-text-full {
    display: none;
}

.gbr-ellipsis {
    display: inline;
}

/* Read More Button */
.gbr-read-more {
    background: transparent;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    margin: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: inherit;
    line-height: 1.4;
}

.gbr-read-more:hover {
    color: #1557b0;
    text-decoration: underline;
}

.gbr-read-more:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
    border-radius: 2px;
}

.gbr-read-more:active {
    color: #0d47a1;
}

.gbr-read-more.gbr-expanded {
    margin-top: 0.5rem;
}

.gbr-read-more-text,
.gbr-read-less-text {
    display: inline;
}

.gbr-read-more::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 0.25rem;
}

.gbr-read-more.gbr-expanded::after {
    content: ' ↑';
    transform: rotate(0deg);
}

.gbr-review-link {
    margin-top: 1rem;
}

.gbr-review-link a {
    color: #007cba;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 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: #005a87;
    background: #e9ecef;
    border-color: #007cba;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 186, 0.15);
}

/* Review Badge - Removed as manual reviews no longer show badges */

/* 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;
}

/* Carousel Responsive - JavaScript handles width calculations dynamically */
@media (max-width: 1024px) {
    .gbr-layout-carousel .gbr-carousel-track .gbr-review-item {
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .gbr-carousel-wrapper {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .gbr-layout-carousel .gbr-carousel-track .gbr-review-item {
        margin-right: 0.75rem;
    }
    
    .gbr-carousel-prev {
        left: 2.5rem;
    }
    
    .gbr-carousel-next {
        right: 2.5rem;
    }
    
    .gbr-carousel-prev,
    .gbr-carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .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 {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-top: 1rem;
        align-self: center;
        gap: 0.75rem;
    }
    
    .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;
    }
    
    /* Fix Google logo width on mobile tablets */
    .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;
    }
    
    /* Fix stars layout on tablet - keep horizontal */
    .gbr-average-rating {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        justify-content: center;
        margin-top: 1rem;
        align-self: center;
    }
    
}

@media (max-width: 480px) {
    .gbr-carousel-wrapper {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .gbr-layout-carousel .gbr-carousel-track .gbr-review-item {
        margin-right: 0.5rem;
    }
    
    .gbr-carousel-prev {
        left: 2.5rem;
    }
    
    .gbr-carousel-next {
        right: 2.5rem;
    }
    
    .gbr-carousel-prev,
    .gbr-carousel-next {
        width: 36px;
        height: 36px;
    }
    
    .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;
    }
    
    /* Fix Google logo width on mobile */
    .gbr-google-logo {
        max-width: 50px;
        height: auto;
    }
    
    .gbr-google-badge {
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
        max-width: 100%;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .gbr-powered-by {
        font-size: 0.75rem;
    }
    
    /* Fix stars layout on mobile - keep horizontal but smaller */
    .gbr-average-rating {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 1rem;
        align-self: center;
    }
    
    .gbr-stars {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* Loading States */
.gbr-reviews-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.gbr-reviews-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285F4;
    border-radius: 50%;
    animation: gbr-spin 1s linear infinite;
    z-index: 100;
}

@keyframes gbr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Accessibility */
.gbr-stars[aria-label] {
    cursor: help;
}

.gbr-review-link a:focus,
.gbr-write-review-btn:focus,
.gbr-google-link:focus {
    outline: 3px solid #007cba;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link for screen readers */
.gbr-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.gbr-skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gbr-review-item {
        border: 2px solid #000;
    }
    
    .gbr-stars .star.filled {
        color: #000;
    }
    
    .gbr-stars .star {
        color: #666;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gbr-review-item,
    .gbr-write-review-btn,
    .gbr-google-link,
    .gbr-google-badge {
        transition: none;
        animation: none;
    }
    
    .gbr-write-review-btn {
        animation: none;
    }
    
    .gbr-carousel-track {
        transition: none;
    }
    
    .gbr-carousel-prev,
    .gbr-carousel-next,
    .gbr-carousel-dot {
        transition: none;
    }
    
    .gbr-review-text-truncated,
    .gbr-review-text-full {
        transition: none;
    }
    
    .gbr-read-more::after {
        transition: none;
    }
}

/* Focus visible for better keyboard navigation */
.gbr-review-link a:focus-visible,
.gbr-write-review-btn:focus-visible,
.gbr-google-link:focus-visible {
    outline: 3px solid #007cba;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .gbr-review-link {
        display: none;
    }
    
    
    .gbr-review-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}