/**
 * @package     Joomla.Site
 * @subpackage  mod_google_reviews
 *
 * @copyright   Copyright (C) 2026 Expert SA. All rights reserved.
 * @license     GNU General Public License version 2 or later
 */

/* ============================================
   CSS Variables for Customization
   ============================================ */

:root {
    /* Colors */
    --google-reviews-primary: #4285f4;
    --google-reviews-star-color: #fbbc04;
    --google-reviews-star-empty: #dadce0;
    --google-reviews-text: #202124;
    --google-reviews-text-secondary: #5f6368;
    --google-reviews-bg: #ffffff;
    --google-reviews-bg-secondary: #f8f9fa;
    --google-reviews-border: #dadce0;
    --google-reviews-overlay: rgba(0, 0, 0, 0.5);
    --google-reviews-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --google-reviews-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Element-specific backgrounds (fallback to shared) */
    --google-reviews-card-bg: var(--google-reviews-bg);
    --google-reviews-nav-bg: var(--google-reviews-bg);
    --google-reviews-detail-bg: var(--google-reviews-bg);

    /* Element-specific borders (fallback to shared) */
    --google-reviews-card-border: var(--google-reviews-border);
    --google-reviews-nav-border: var(--google-reviews-border);

    /* Navigation icon color */
    --google-reviews-nav-icon-color: var(--google-reviews-text);

    /* Pagination colors */
    --google-reviews-pagination-active: var(--google-reviews-primary);
    --google-reviews-pagination-inactive: var(--google-reviews-border);

    /* Detail panel overlay */
    --google-reviews-detail-overlay: rgba(0, 0, 0, 0.5);

    /* Card dimensions */
    --google-reviews-card-min-height: auto;

    /* Spacing */
    --google-reviews-spacing-xs: 0.25rem;
    --google-reviews-spacing-sm: 0.5rem;
    --google-reviews-spacing-md: 1rem;
    --google-reviews-spacing-lg: 1.5rem;
    --google-reviews-spacing-xl: 2rem;

    /* Border radius */
    --google-reviews-radius-sm: 4px;
    --google-reviews-radius-md: 8px;
    --google-reviews-radius-lg: 12px;
    --google-reviews-radius-full: 50%;

    /* Typography */
    --google-reviews-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --google-reviews-font-size-sm: 0.875rem;
    --google-reviews-font-size-base: 1rem;
    --google-reviews-font-size-lg: 1.125rem;
    --google-reviews-font-size-xl: 1.5rem;
    --google-reviews-line-height: 1.5;

    /* Transitions */
    --google-reviews-transition: 0.2s ease;
    --google-reviews-transition-slow: 0.3s ease;

    /* Customizable via ThemeHelper */
    --google-reviews-photo-size: 40px;
    --google-reviews-text-lines: 4;
}

/* ============================================
   Base Module Styles
   ============================================ */

.mod-google-reviews {
    font-family: var(--google-reviews-font-family);
    font-size: var(--google-reviews-font-size-base);
    line-height: var(--google-reviews-line-height);
    color: var(--google-reviews-text);
}

.mod-google-reviews *,
.mod-google-reviews *::before,
.mod-google-reviews *::after {
    box-sizing: border-box;
}

/* ============================================
   Stars
   ============================================ */

.google-reviews-stars {
    display: inline-flex;
    gap: 1px;
}

.google-reviews-stars .star {
    font-size: 1em;
    line-height: 1;
}

.google-reviews-stars .star-full {
    color: var(--google-reviews-star-color);
}

.google-reviews-stars .star-half {
    color: var(--google-reviews-star-color);
    position: relative;
}

.google-reviews-stars .star-half::after {
    content: "☆";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--google-reviews-star-empty);
    clip-path: inset(0 0 0 50%);
}

.google-reviews-stars .star-empty {
    color: var(--google-reviews-star-empty);
}

/* ============================================
   Review Cards
   ============================================ */

.google-reviews-card {
    background: var(--google-reviews-card-bg);
    border: 1px solid var(--google-reviews-card-border);
    border-radius: var(--google-reviews-radius-lg);
    padding: var(--google-reviews-spacing-lg);
    height: 100%;
    min-height: var(--google-reviews-card-min-height);
    display: flex;
    flex-direction: column;
}

.google-reviews-card-header {
    margin-bottom: var(--google-reviews-spacing-md);
}

.google-reviews-author {
    display: flex;
    align-items: center;
    gap: var(--google-reviews-spacing-md);
}

.google-reviews-author-photo {
    width: var(--google-reviews-photo-size);
    height: var(--google-reviews-photo-size);
    border-radius: var(--google-reviews-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.google-reviews-author-placeholder {
    width: var(--google-reviews-photo-size);
    height: var(--google-reviews-photo-size);
    border-radius: var(--google-reviews-radius-full);
    background: var(--google-reviews-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--google-reviews-font-size-lg);
    flex-shrink: 0;
}

.google-reviews-author-info {
    display: flex;
    flex-direction: column;
    gap: var(--google-reviews-spacing-xs);
    min-width: 0;
}

.google-reviews-author-name {
    font-weight: 600;
    color: var(--google-reviews-text);
}

.google-reviews-author-name a {
    color: inherit;
    text-decoration: none;
}

.google-reviews-author-name a:hover {
    text-decoration: underline;
}

.google-reviews-date {
    font-size: var(--google-reviews-font-size-sm);
    color: var(--google-reviews-text-secondary);
}

.google-reviews-card-rating {
    margin-bottom: var(--google-reviews-spacing-md);
}

.google-reviews-card-content {
    flex-grow: 1;
    margin-bottom: var(--google-reviews-spacing-md);
}

.google-reviews-card-content p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.google-reviews-card-footer {
    margin-top: auto;
    padding-top: var(--google-reviews-spacing-md);
    border-top: 1px solid var(--google-reviews-border);
}

.google-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: var(--google-reviews-spacing-xs);
    color: var(--google-reviews-primary);
    text-decoration: none;
    font-size: var(--google-reviews-font-size-sm);
}

.google-reviews-link:hover {
    text-decoration: underline;
}

/* ============================================
   Carousel
   ============================================ */

.google-reviews-carousel-container {
    position: relative;
    padding: var(--google-reviews-spacing-md) 0;
}

.google-reviews-carousel {
    overflow: hidden;
}

.google-reviews-carousel .swiper-slide {
    height: auto;
}

/* Override Swiper's default rectangular button sizing */
.google-reviews-carousel-container .swiper-button-prev,
.google-reviews-carousel-container .swiper-button-next {
    --swiper-navigation-size: 40px;
    width: 40px;
    height: 40px;
}

.google-reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: var(--google-reviews-radius-full);
    background: var(--google-reviews-nav-bg);
    border: 1px solid var(--google-reviews-nav-border);
    box-shadow: var(--google-reviews-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--google-reviews-nav-icon-color);
    transition: box-shadow var(--google-reviews-transition), border-color var(--google-reviews-transition);
}

.google-reviews-nav:hover {
    box-shadow: var(--google-reviews-shadow-hover);
    border-color: var(--google-reviews-primary);
}

.google-reviews-nav:focus-visible {
    outline: 2px solid var(--google-reviews-primary);
    outline-offset: 2px;
}

.google-reviews-nav:disabled,
.google-reviews-nav.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hide Swiper's default ::after arrow icons - we use custom SVG */
.google-reviews-nav.swiper-button-prev::after,
.google-reviews-nav.swiper-button-next::after {
    display: none;
}

/* Custom navigation icons */
.google-reviews-nav-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.google-reviews-nav-prev {
    left: -20px;
}

.google-reviews-nav-next {
    right: -20px;
}

/* Navigation Position Variants */

/* Default: centered on sides (no additional class needed, uses base styles) */

/* Top-right: both buttons at top-right */
.google-reviews-carousel-container--nav-top-right {
    padding-top: 60px;
}

.google-reviews-carousel-container--nav-top-right .google-reviews-nav {
    top: 0;
    transform: none;
}

.google-reviews-carousel-container--nav-top-right .google-reviews-nav-prev {
    left: auto;
    right: 52px;
}

.google-reviews-carousel-container--nav-top-right .google-reviews-nav-next {
    right: 0;
}

/* Top-left: both buttons at top-left */
.google-reviews-carousel-container--nav-top-left {
    padding-top: 60px;
}

.google-reviews-carousel-container--nav-top-left .google-reviews-nav {
    top: 0;
    transform: none;
}

.google-reviews-carousel-container--nav-top-left .google-reviews-nav-prev {
    left: 0;
}

.google-reviews-carousel-container--nav-top-left .google-reviews-nav-next {
    left: 52px;
    right: auto;
}

/* Bottom-right / Bottom-left: nav + dots in a flex row below carousel.
   Uses flex-wrap so the carousel takes full width, then pagination + nav
   wrap into a second row sharing the same line. */
.google-reviews-carousel-container--nav-bottom-right,
.google-reviews-carousel-container--nav-bottom-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--google-reviews-spacing-md);
}

.google-reviews-carousel-container--nav-bottom-right .google-reviews-carousel,
.google-reviews-carousel-container--nav-bottom-left .google-reviews-carousel {
    width: 100%;
    order: 0;
}

.google-reviews-carousel-container--nav-bottom-right .google-reviews-nav,
.google-reviews-carousel-container--nav-bottom-left .google-reviews-nav {
    position: static;
    transform: none;
}

.google-reviews-carousel-container--nav-bottom-right .google-reviews-pagination,
.google-reviews-carousel-container--nav-bottom-left .google-reviews-pagination {
    position: static;
    flex: 1;
    margin-top: 0;
}

/* Bottom-right: dots left (...) arrows right (<- ->) */
.google-reviews-carousel-container--nav-bottom-right .google-reviews-pagination {
    justify-content: flex-start;
    order: 1;
}
.google-reviews-carousel-container--nav-bottom-right .google-reviews-nav-prev {
    order: 2;
}
.google-reviews-carousel-container--nav-bottom-right .google-reviews-nav-next {
    order: 3;
}

/* Bottom-left: arrows left (<- ->) dots right (...) */
.google-reviews-carousel-container--nav-bottom-left .google-reviews-nav-prev {
    order: 1;
}
.google-reviews-carousel-container--nav-bottom-left .google-reviews-nav-next {
    order: 2;
}
.google-reviews-carousel-container--nav-bottom-left .google-reviews-pagination {
    justify-content: flex-end;
    order: 3;
}

.google-reviews-pagination {
    display: flex;
    justify-content: center;
    gap: var(--google-reviews-spacing-sm);
    margin-top: var(--google-reviews-spacing-lg);
}

.google-reviews-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: var(--google-reviews-radius-full);
    background: var(--google-reviews-pagination-inactive);
    opacity: 1;
    cursor: pointer;
    transition: background var(--google-reviews-transition), transform var(--google-reviews-transition);
}

.google-reviews-pagination .swiper-pagination-bullet:hover {
    background: var(--google-reviews-text-secondary);
}

.google-reviews-pagination .swiper-pagination-bullet-active {
    background: var(--google-reviews-pagination-active);
    transform: scale(1.25);
}

/* ============================================
   Truncated Card Styles (for clickable reviews)
   ============================================ */

.google-reviews-card--truncated {
    cursor: pointer;
    transition: box-shadow var(--google-reviews-transition), border-color var(--google-reviews-transition);
}

.google-reviews-card--truncated:hover {
    border-color: var(--google-reviews-primary);
    box-shadow: var(--google-reviews-shadow-hover);
}

.google-reviews-card--truncated:focus {
    outline: none;
    border-color: var(--google-reviews-primary);
    box-shadow: var(--google-reviews-shadow-hover);
}

.google-reviews-card--truncated:focus-visible {
    outline: 2px solid var(--google-reviews-primary);
    outline-offset: 2px;
}

/* "Read more" indicator for truncated cards */
.google-reviews-card--truncated .google-reviews-card-content::after {
    content: '';
    display: block;
    margin-top: var(--google-reviews-spacing-xs);
    font-size: var(--google-reviews-font-size-sm);
    color: var(--google-reviews-primary);
}

/* ============================================
   Review Detail Panel
   ============================================ */

.google-reviews-detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
}

.google-reviews-detail-panel.is-open {
    visibility: visible;
    pointer-events: auto;
}

.google-reviews-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--google-reviews-detail-overlay);
    opacity: 0;
    transition: opacity var(--google-reviews-transition-slow);
    cursor: pointer;
}

.google-reviews-detail-panel.is-open .google-reviews-detail-overlay {
    opacity: 1;
}

.google-reviews-detail-content {
    position: absolute;
    background: var(--google-reviews-detail-bg);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform var(--google-reviews-transition-slow);
}

/* Right position (default) */
.google-reviews-detail-panel-right .google-reviews-detail-content {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--google-reviews-detail-width, 480px);
    transform: translateX(100%);
}

.google-reviews-detail-panel-right.is-open .google-reviews-detail-content {
    transform: translateX(0);
}

/* Left position */
.google-reviews-detail-panel-left .google-reviews-detail-content {
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--google-reviews-detail-width, 480px);
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.google-reviews-detail-panel-left.is-open .google-reviews-detail-content {
    transform: translateX(0);
}

/* Detail Panel Header */
.google-reviews-detail-header {
    padding: var(--google-reviews-spacing-lg);
    border-bottom: 1px solid var(--google-reviews-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--google-reviews-spacing-md);
    flex-shrink: 0;
}

.google-reviews-detail-title {
    font-size: var(--google-reviews-font-size-lg);
    font-weight: 600;
    margin: 0;
    color: var(--google-reviews-text);
}

.google-reviews-detail-close {
    background: none;
    border: none;
    padding: var(--google-reviews-spacing-sm);
    margin: calc(var(--google-reviews-spacing-sm) * -1);
    cursor: pointer;
    color: var(--google-reviews-text-secondary);
    border-radius: var(--google-reviews-radius-full);
    transition: background var(--google-reviews-transition), color var(--google-reviews-transition);
    flex-shrink: 0;
}

.google-reviews-detail-close:hover {
    background: var(--google-reviews-bg-secondary);
    color: var(--google-reviews-text);
}

.google-reviews-detail-close:focus-visible {
    outline: 2px solid var(--google-reviews-primary);
    outline-offset: 2px;
}

/* Detail Panel Body */
.google-reviews-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--google-reviews-spacing-lg);
}

.google-reviews-detail-author {
    display: flex;
    align-items: center;
    gap: var(--google-reviews-spacing-md);
    margin-bottom: var(--google-reviews-spacing-lg);
}

.google-reviews-detail-author-photo {
    width: 56px;
    height: 56px;
    border-radius: var(--google-reviews-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.google-reviews-detail-author-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--google-reviews-radius-full);
    background: var(--google-reviews-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--google-reviews-font-size-xl);
    flex-shrink: 0;
}

.google-reviews-detail-author-info {
    display: flex;
    flex-direction: column;
    gap: var(--google-reviews-spacing-xs);
}

.google-reviews-detail-author-name {
    font-weight: 600;
    font-size: var(--google-reviews-font-size-lg);
    color: var(--google-reviews-text);
}

.google-reviews-detail-author-name a {
    color: inherit;
    text-decoration: none;
}

.google-reviews-detail-author-name a:hover {
    text-decoration: underline;
}

.google-reviews-detail-date {
    font-size: var(--google-reviews-font-size-sm);
    color: var(--google-reviews-text-secondary);
}

.google-reviews-detail-rating {
    margin-bottom: var(--google-reviews-spacing-lg);
}

.google-reviews-detail-rating .google-reviews-stars {
    font-size: 1.25em;
}

.google-reviews-detail-text {
    line-height: 1.7;
}

.google-reviews-detail-text p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Detail Panel Footer */
.google-reviews-detail-footer {
    padding: var(--google-reviews-spacing-lg);
    border-top: 1px solid var(--google-reviews-border);
    flex-shrink: 0;
}

.google-reviews-detail-link {
    display: inline-flex;
    align-items: center;
    gap: var(--google-reviews-spacing-sm);
    color: var(--google-reviews-primary);
    text-decoration: none;
    font-weight: 500;
}

.google-reviews-detail-link:hover {
    text-decoration: underline;
}

/* ============================================
   ExpertSA Theme — Name + Stars Side-by-Side
   Uses CSS Grid + display:contents to flatten
   the nested header structure.
   ============================================ */

/* Card: CSS Grid with 2 columns (name | stars) */
.mod-google-reviews--theme-expertsa .google-reviews-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 35px;
    background: var(--google-reviews-card-bg, #f4ead7);
    border: 2px solid var(--google-reviews-card-border, #e5c4a5);
    border-radius: 10px;
}

/* Flatten nested header wrappers so children join the grid */
.mod-google-reviews--theme-expertsa .google-reviews-card-header,
.mod-google-reviews--theme-expertsa .google-reviews-author,
.mod-google-reviews--theme-expertsa .google-reviews-author-info {
    display: contents;
}

/* Author name: row 1, col 1 (left) */
.mod-google-reviews--theme-expertsa .google-reviews-author-name {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-weight: 800;
    font-size: 20px;
    line-height: 20px;
    color: var(--google-reviews-text, #330c00);
}

/* Stars: row 1, col 2 (right) */
.mod-google-reviews--theme-expertsa .google-reviews-card-rating {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
}

/* Review text: row 2, full width */
.mod-google-reviews--theme-expertsa .google-reviews-card-content {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 17px;
    line-height: 24px;
    color: var(--google-reviews-text-secondary, #6d4c44);
    -webkit-line-clamp: unset;
}

/* Date: row 3, full width — visible in new design */
.mod-google-reviews--theme-expertsa .google-reviews-date {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 15px;
    line-height: 21px;
    color: #451608;
}

/* Hide photo and footer */
.mod-google-reviews--theme-expertsa .google-reviews-author-photo,
.mod-google-reviews--theme-expertsa .google-reviews-author-placeholder,
.mod-google-reviews--theme-expertsa .google-reviews-card-footer {
    display: none;
}

/* Nav buttons: dark background, square with small radius */
.mod-google-reviews--theme-expertsa .google-reviews-nav {
    background: var(--google-reviews-nav-bg, #330c00);
    color: var(--google-reviews-nav-icon-color, #ffffff);
    border: none;
    border-radius: 3px;
    padding: 5px;
    width: auto;
    height: auto;
}

.mod-google-reviews--theme-expertsa .google-reviews-nav svg {
    width: 23px;
    height: 23px;
}

/* Pagination: show dots, active = sunset orange */
.mod-google-reviews--theme-expertsa .google-reviews-pagination {
    display: flex;
}

.mod-google-reviews--theme-expertsa .google-reviews-pagination .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    background: var(--google-reviews-pagination-inactive, #f4ead7);
    opacity: 1;
    border-radius: 43px;
}

.mod-google-reviews--theme-expertsa .google-reviews-pagination .swiper-pagination-bullet-active {
    background: var(--google-reviews-pagination-active, #ff6f36);
}

/* ============================================
   No Data State
   ============================================ */

.google-reviews-no-data {
    text-align: center;
    padding: var(--google-reviews-spacing-xl);
    color: var(--google-reviews-text-secondary);
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .google-reviews-nav {
        display: none;
    }

    /* Show pagination dots on mobile for ExpertSA */
    .mod-google-reviews--theme-expertsa .google-reviews-pagination {
        display: flex;
    }

    .google-reviews-carousel-container {
        padding: var(--google-reviews-spacing-md);
    }

    .google-reviews-card {
        padding: var(--google-reviews-spacing-md);
    }

    /* Keep buttons visible for positioned nav variants on mobile */
    .google-reviews-carousel-container--nav-top-right .google-reviews-nav,
    .google-reviews-carousel-container--nav-top-left .google-reviews-nav,
    .google-reviews-carousel-container--nav-bottom-right .google-reviews-nav,
    .google-reviews-carousel-container--nav-bottom-left .google-reviews-nav {
        display: flex;
        top: auto;
        bottom: 0;
        transform: none;
    }

    /* Reset container padding - move from top to bottom */
    .google-reviews-carousel-container--nav-top-right,
    .google-reviews-carousel-container--nav-top-left {
        padding-top: var(--google-reviews-spacing-md);
        padding-bottom: 60px;
    }

    /* Prev button: left side */
    .google-reviews-carousel-container--nav-top-right .google-reviews-nav-prev,
    .google-reviews-carousel-container--nav-top-left .google-reviews-nav-prev {
        left: 0;
        right: auto;
    }

    /* Next button: right side */
    .google-reviews-carousel-container--nav-top-right .google-reviews-nav-next,
    .google-reviews-carousel-container--nav-top-left .google-reviews-nav-next {
        right: 0;
        left: auto;
    }

    /* Pagination dots on mobile - smaller and allow wrapping */
    .google-reviews-pagination {
        flex-wrap: wrap;
        gap: var(--google-reviews-spacing-xs);
        margin-top: var(--google-reviews-spacing-md);
        padding: 0 var(--google-reviews-spacing-sm);
    }

    .google-reviews-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }

    .google-reviews-pagination .swiper-pagination-bullet-active {
        transform: scale(1.2);
    }

    /* Position pagination on same row as nav buttons: <- dots -> */
    .google-reviews-carousel-container--nav-top-right .google-reviews-pagination,
    .google-reviews-carousel-container--nav-top-left .google-reviews-pagination {
        position: absolute;
        top: auto;
        bottom: 10px;
        left: 50px;
        right: 50px;
        margin: 0;
        padding: 0;
        justify-content: center;
        align-items: center;
        height: 20px;
        z-index: 15;
    }

    /* Keep carousel clipping slides - pagination positioned relative to container */
    .google-reviews-carousel-container--nav-top-right .google-reviews-carousel,
    .google-reviews-carousel-container--nav-top-left .google-reviews-carousel {
        overflow: hidden;
    }

    /* Detail panel full width on mobile */
    .google-reviews-detail-panel-right .google-reviews-detail-content,
    .google-reviews-detail-panel-left .google-reviews-detail-content {
        max-width: 100%;
    }

    .google-reviews-detail-header {
        padding: var(--google-reviews-spacing-md);
    }

    .google-reviews-detail-body {
        padding: var(--google-reviews-spacing-md);
    }

    .google-reviews-detail-footer {
        padding: var(--google-reviews-spacing-md);
    }
}


/* ============================================
   Print Styles
   ============================================ */

@media print {
    .google-reviews-nav {
        display: none !important;
    }

    .google-reviews-detail-panel {
        display: none !important;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .mod-google-reviews *,
    .mod-google-reviews *::before,
    .mod-google-reviews *::after {
        transition-duration: 0.01ms !important;
    }
}
