.tgr-widget {
    background: #fff;
    border: 1px solid #c9a24a;
    box-shadow: 0 14px 32px rgba(36, 30, 22, 0.12);
    color: #24201b;
    font-family: inherit;
    margin: 32px auto;
    max-width: 1120px;
    padding: 28px;
}

.tgr-header {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tgr-header h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.tgr-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.tgr-demo-badge {
    background: #f8f4ea;
    border: 1px solid #c9a24a;
    color: #68542a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 8px;
    text-transform: uppercase;
}

.tgr-trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tgr-trust-signals span {
    border: 1px solid #e5d8b4;
    color: #68542a;
    font-size: 13px;
    padding: 6px 10px;
}

.tgr-rating-summary {
    min-width: 150px;
    text-align: right;
}

.tgr-rating-summary strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.tgr-stars,
.tgr-review-stars {
    color: #c9a24a;
    letter-spacing: 0;
}

.tgr-rating-summary small {
    color: #6f675b;
    display: block;
}

.tgr-carousel-shell {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
}

.tgr-track {
    display: grid;
    gap: 18px;
    grid-auto-columns: minmax(260px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.tgr-review-card {
    border: 1px solid #eee5d0;
    min-height: 260px;
    padding: 20px;
    scroll-snap-align: start;
}

.tgr-review-head {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.tgr-avatar {
    align-items: center;
    background: #f8f4ea;
    border-radius: 50%;
    display: flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    width: 46px;
}

.tgr-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tgr-avatar span {
    color: #8b6f31;
    font-weight: 700;
}

.tgr-review-head h3 {
    font-size: 16px;
    margin: 0;
}

.tgr-review-head p {
    color: #786f62;
    font-size: 13px;
    margin: 2px 0 0;
}

.tgr-review-text {
    color: #403930;
    font-size: 15px;
    line-height: 1.58;
    --tgr-review-line-height: 1.58em;
    --tgr-review-collapsed-lines: 4;
}

.tgr-review-text p {
    margin: 0 0 0.65em;
}

.tgr-review-text p:last-child {
    margin-bottom: 0;
}

.tgr-review-text-collapsible.is-collapsed {
    display: block;
    max-height: calc(var(--tgr-review-line-height) * var(--tgr-review-collapsed-lines));
    overflow: hidden;
}

@supports (-webkit-line-clamp: 4) {
    .tgr-review-text-collapsible.is-collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        max-height: none;
    }
}

.tgr-review-toggle {
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #8b6f31;
    cursor: pointer;
    display: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tgr-review-toggle.is-visible {
    display: inline;
}

.tgr-review-toggle:hover,
.tgr-review-toggle:focus {
    color: #5f4818;
    text-decoration-thickness: 2px;
}

.tgr-google-mark {
    color: #7b7265;
    font-size: 12px;
    margin-top: 18px;
}

.tgr-arrow {
    align-items: center;
    background: #fff;
    border: 1px solid #c9a24a;
    color: #8b6f31;
    cursor: pointer;
    display: flex;
    font-size: 26px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    width: 40px;
}

.tgr-arrow:hover,
.tgr-arrow:focus {
    background: #fbf7ee;
}

.tgr-empty {
    color: #6f675b;
    margin: 0;
}

@media (min-width: 860px) {
    .tgr-track {
        grid-auto-columns: calc((100% - 36px) / 3);
    }
}

@media (max-width: 720px) {
    .tgr-widget {
        margin: 24px 0;
        padding: 28px 16px;
        text-align: center;
    }

    .tgr-header {
        display: block;
        text-align: center;
    }

    .tgr-title-row {
        justify-content: center;
    }

    .tgr-header h2 {
        font-size: 36px;
        line-height: 1.05;
        text-align: center;
    }

    .tgr-trust-signals {
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .tgr-trust-signals span {
        max-width: 100%;
    }

    .tgr-rating-summary {
        margin: 32px auto 24px;
        text-align: center;
    }

    .tgr-carousel-shell {
        display: block;
    }

    .tgr-arrow {
        display: none;
    }

    .tgr-track {
        display: grid;
        gap: 16px;
        grid-auto-columns: 100%;
        grid-auto-flow: column;
        margin: 0;
        overflow-x: auto;
        padding: 0 0 18px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tgr-review-card {
        box-sizing: border-box;
        min-height: auto;
        scroll-snap-align: center;
        text-align: center;
        width: 100%;
    }

    .tgr-review-head {
        justify-content: center;
    }

    .tgr-review-toggle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 420px) {
    .tgr-header h2 {
        font-size: 32px;
    }
}
