/* TorresTrauma Google Reviews - extra compact theme-matched layout */
.ttgr-section {
    background: var(--ttgr-section-bg, #f1f8fb);
    padding: clamp(34px, 4vw, 56px) 20px;
    color: var(--ttgr-text, #13264b);
    overflow: hidden;
    font-family: inherit;
}

.ttgr-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.ttgr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ttgr-source-google_reviews_left .ttgr-header {
    justify-content: space-between;
}

.ttgr-rating-inline,
.ttgr-rating-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #111827;
}

.ttgr-google-logo,
.ttgr-google-word {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #111827;
}

.ttgr-heading {
    font-size: clamp(24px, 2.6vw, 34px);
    margin: 0 0 6px;
    text-align: center;
    color: #13264b;
}

.ttgr-stars {
    color: var(--ttgr-star, #fbbc04);
    letter-spacing: .5px;
    line-height: 1;
    white-space: nowrap;
}

.ttgr-stars-header {
    font-size: clamp(22px, 2.6vw, 32px);
}

.ttgr-review-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 22px;
    border-radius: 999px;
    background: var(--ttgr-button-bg, #16275c);
    color: var(--ttgr-button-text, #ffffff);
    font-weight: 700;
    text-decoration: none;
    font-size: clamp(14px, 1.35vw, 16px);
    line-height: 1.1;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ttgr-review-button:hover {
    color: var(--ttgr-button-text, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22,39,92,.16);
}

.ttgr-carousel {
    position: relative;
}

.ttgr-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (18px * (var(--ttgr-cards, 3) - 1))) / var(--ttgr-cards, 3));
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.ttgr-track::-webkit-scrollbar {
    display: none;
}

.ttgr-card {
    scroll-snap-align: start;
    background: var(--ttgr-card-bg, #ffffff);
    border-radius: 18px;
    padding: 22px;
    min-height: 220px;
    max-height: 285px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(19, 38, 75, .06);
    border: 1px solid rgba(19, 38, 75, .05);
}

.ttgr-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    min-width: 0;
}

.ttgr-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.ttgr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9edf2;
    color: var(--ttgr-button-bg, #16275c);
    font-size: 19px;
    font-weight: 800;
}

.ttgr-google-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 7px rgba(0,0,0,.12);
}

.ttgr-author {
    display: block;
    color: var(--ttgr-text, #13264b);
    font-weight: 800;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.18;
    text-decoration: none;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ttgr-time {
    color: var(--ttgr-muted, #6b7280);
    font-size: clamp(12px, 1.15vw, 14px);
    margin-top: 3px;
}

.ttgr-card .ttgr-stars {
    font-size: clamp(18px, 1.7vw, 23px);
    margin-bottom: 12px;
}

.ttgr-review-text {
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.42;
    margin: 0;
    color: #151515;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ttgr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--ttgr-arrow-bg, #111827);
    color: var(--ttgr-arrow-text, #ffffff);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .94;
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
}

.ttgr-prev {
    left: -10px;
}

.ttgr-next {
    right: -10px;
}

.ttgr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.ttgr-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(19,38,75,.25);
    cursor: pointer;
}

.ttgr-dot.is-active {
    background: var(--ttgr-button-bg, #16275c);
    width: 22px;
}

.ttgr-empty {
    padding: 18px;
    background: #fff8e5;
    border-left: 4px solid #d29b00;
}

@media (max-width: 980px) {
    .ttgr-header,
    .ttgr-source-google_reviews_left .ttgr-header {
        justify-content: center;
        text-align: center;
        gap: 16px;
    }

    .ttgr-track {
        grid-auto-columns: calc((100% - 16px) / 2);
        gap: 16px;
    }

    .ttgr-card {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .ttgr-section {
        padding: 36px 14px;
    }

    .ttgr-header {
        margin-bottom: 24px;
    }

    .ttgr-rating-inline,
    .ttgr-rating-line {
        flex-wrap: wrap;
        gap: 7px;
    }

    .ttgr-track {
        grid-auto-columns: 86%;
    }

    .ttgr-card {
        min-height: 220px;
        max-height: 310px;
        padding: 20px;
    }

    .ttgr-author {
        max-width: 190px;
    }

    .ttgr-prev {
        left: 0;
    }

    .ttgr-next {
        right: 0;
    }

    .ttgr-arrow {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }
}

/* v1.0.4 compact override */
.ttgr-section .ttgr-card{min-height:220px!important;max-height:285px!important;padding:22px!important;border-radius:18px!important}
.ttgr-section .ttgr-review-text{font-size:clamp(15px,1.35vw,18px)!important;line-height:1.42!important;-webkit-line-clamp:5}
.ttgr-section .ttgr-author{font-size:clamp(15px,1.35vw,18px)!important;max-width:210px}
.ttgr-section .ttgr-card .ttgr-stars{font-size:clamp(18px,1.7vw,23px)!important}
.ttgr-section .ttgr-avatar-wrap,.ttgr-section .ttgr-avatar{width:44px!important;height:44px!important;flex-basis:44px!important}
.ttgr-section .ttgr-header{margin-bottom:28px!important}
.ttgr-section .ttgr-rating-inline,.ttgr-section .ttgr-rating-line,.ttgr-section .ttgr-google-logo,.ttgr-section .ttgr-google-word{font-size:clamp(22px,2.4vw,30px)!important}
.ttgr-section .ttgr-stars-header{font-size:clamp(22px,2.6vw,32px)!important}


/* v1.0.6 - smoother draggable carousel and external arrows */
.ttgr-section {
    overflow: hidden;
}

.ttgr-inner {
    position: relative;
}

.ttgr-carousel {
    position: relative;
    padding: 0 58px;
}

.ttgr-track {
    scroll-padding-left: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}

.ttgr-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.ttgr-track.is-dragging * {
    pointer-events: none;
}

.ttgr-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.ttgr-arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 30px !important;
    z-index: 8;
}

.ttgr-prev {
    left: 0 !important;
}

.ttgr-next {
    right: 0 !important;
}

.ttgr-arrow[disabled] {
    opacity: .35;
    cursor: default;
}

@media (min-width: 1180px) {
    .ttgr-carousel {
        padding: 0 64px;
    }

    .ttgr-prev {
        left: 4px !important;
    }

    .ttgr-next {
        right: 4px !important;
    }
}

@media (max-width: 768px) {
    .ttgr-carousel {
        padding: 0 46px;
    }

    .ttgr-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 28px !important;
    }
}

@media (max-width: 520px) {
    .ttgr-carousel {
        padding: 0 0;
    }

    .ttgr-arrow {
        top: auto !important;
        bottom: -58px !important;
        transform: none !important;
    }

    .ttgr-prev {
        left: calc(50% - 54px) !important;
    }

    .ttgr-next {
        right: calc(50% - 54px) !important;
    }

    .ttgr-dots {
        margin-top: 72px;
    }
}


/* v1.0.7 infinite loop */
.ttgr-track {
    scroll-snap-type: x mandatory;
}

.ttgr-clone {
    pointer-events: none;
}

.ttgr-arrow[disabled] {
    opacity: .94;
    cursor: pointer;
}
