.trp-reviews-widget {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    font-family: inherit;
    color: #171717;
}

.trp-rating-summary {
    text-align: center;
    margin-bottom: 28px;
}

.trp-rating-summary h3 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: .02em;
}

.trp-rating-summary p {
    margin: 6px 0 8px;
    font-size: 14px;
    color: #222;
}

.trp-stars {
    display: inline-flex;
    gap: 2px;
    line-height: 1;
}

.trp-star {
    font-size: 20px;
}

.trp-star.is-filled {
    color: #f4b400;
}

.trp-star.is-empty {
    color: #cfd4d8;
}

.trp-thumbtack-logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.trp-thumbtack-icon {
    width: 24px;
    height: 24px;
    display: block;
    color: #009fd9;
}

.trp-thumbtack-wordmark {
    display: inline-block;
}

.trp-rating-summary .trp-thumbtack-icon {
    width: 28px;
    height: 28px;
}

.trp-carousel-shell {
    position: relative;
}

.trp-review-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    grid-template-rows: 1fr;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2px 8px 18px;
    scrollbar-width: none;
}

.trp-review-track::-webkit-scrollbar {
    display: none;
}

.trp-layout-grid .trp-review-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    overflow: visible;
}

.trp-review-card {
    position: relative;
    scroll-snap-align: start;
    min-height: 190px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    padding: 20px;
    overflow: hidden;
}

.trp-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
}

.trp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 42px;
}

.trp-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ea;
    color: #111827;
    font-weight: 700;
}

.trp-reviewer-meta {
    min-width: 0;
    flex: 1;
}

.trp-reviewer-meta h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trp-reviewer-meta span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #777;
}

.trp-card-source {
    transform: scale(.72);
    transform-origin: right top;
    flex: 0 0 auto;
    margin-left: auto;
}

.trp-card-source .trp-thumbtack-logo {
    gap: 0;
}

.trp-card-source .trp-thumbtack-wordmark {
    display: none;
}

.trp-card-source .trp-thumbtack-icon {
    width: 28px;
    height: 28px;
}

.trp-card-stars {
    margin: 14px 0 10px;
}

.trp-card-stars .trp-star {
    font-size: 18px;
}

.trp-review-text {
    font-size: 15px;
    line-height: 1.55;
    color: #202124;
}

.trp-read-more {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.trp-read-more:hover {
    color: #111827;
    text-decoration: underline;
}

.trp-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.trp-review-image-link {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.trp-review-images img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

.trp-review-image-link:hover img {
    transform: scale(1.06);
}

.trp-business-response {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #f7f8fa;
    font-size: 13px;
}

.trp-business-response p {
    margin: 5px 0 0;
}

.trp-card-footer {
    margin-top: 14px;
    font-size: 12px;
    color: #737373;
}

.trp-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    color: #777;
    font-size: 34px;
    line-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.trp-prev {
    left: -18px;
}

.trp-next {
    right: -18px;
}

.trp-empty {
    text-align: center;
    padding: 24px;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .trp-layout-grid .trp-review-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .trp-review-track,
    .trp-layout-grid .trp-review-track {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 86%;
        grid-template-columns: none;
        overflow-x: auto;
    }

    .trp-carousel-arrow {
        display: none;
    }

    .trp-rating-summary h3 {
        font-size: 22px;
    }
}

.trp-review-image-link:not(.is-loaded) img {
    color: transparent;
}

.trp-review-image-link:empty,
.trp-review-images:empty {
    display: none;
}

/* v2.14 display-option styles */
.trp-use-default-font {
    font-family: Arial, Helvetica, sans-serif;
}

.trp-align-left .trp-review-card,
.trp-align-left .trp-review-text,
.trp-align-left .trp-business-response {
    text-align: left;
}

.trp-align-center .trp-review-card,
.trp-align-center .trp-review-text,
.trp-align-center .trp-business-response {
    text-align: center;
}

.trp-align-right .trp-review-card,
.trp-align-right .trp-review-text,
.trp-align-right .trp-business-response {
    text-align: right;
}

.trp-align-justify .trp-review-text,
.trp-align-justify .trp-business-response p {
    text-align: justify;
}

.trp-align-center .trp-card-header {
    justify-content: center;
}

.trp-align-right .trp-card-header {
    justify-content: flex-end;
}

.trp-min-filter-note {
    margin-top: 2px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
}

.trp-verified-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    margin-left: 6px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #1da1f2;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.trp-review-text-scroll {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 8px;
}

.trp-review-text-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trp-card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.trp-align-center .trp-card-stars {
    justify-content: center;
}

.trp-align-right .trp-card-stars {
    justify-content: flex-end;
}

.trp-align-center .trp-review-images {
    justify-content: center;
}

.trp-align-right .trp-review-images {
    justify-content: flex-end;
}

/* v2.17 responsive carousel, SVG stars, avatars, review media, and lightbox */
.trp-review-track {
    align-items: stretch;
    grid-auto-columns: calc((100% - 48px) / 4);
    gap: 16px;
}

.trp-layout-grid .trp-review-track {
    align-items: stretch;
}

.trp-review-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 235px;
    border-radius: 12px;
    border: 1px solid #eef0f3;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.trp-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
    border-color: #e6e9ef;
}

.trp-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.trp-star {
    display: inline-flex;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.trp-star-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.trp-summary-stars .trp-star {
    width: 27px;
    height: 27px;
}

.trp-card-stars .trp-star {
    width: 16px;
    height: 16px;
}

.trp-star.is-filled {
    color: #f6bb06;
}

.trp-star.is-empty {
    color: #d5d9dd;
}

.trp-avatar-shell {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.trp-avatar-shell .trp-avatar-img {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #f5f3ea;
}

.trp-avatar-shell .trp-avatar-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: inline-flex;
}

.trp-avatar-shell.is-broken .trp-avatar-img {
    display: none;
}

.trp-avatar-shell.is-broken .trp-avatar-fallback {
    z-index: 3;
}

.trp-avatar-img {
    border: 1px solid #eef0f3;
}

.trp-review-text {
    min-height: 66px;
}

.trp-review-images {
    display: grid;
    grid-template-columns: repeat(4, 58px);
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 2px;
    transition: opacity .2s ease, max-height .2s ease, margin .2s ease;
}

.trp-review-images.is-deferred {
    display: none;
}

.trp-review-image-link {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border: 1px solid #e5e7eb;
    cursor: zoom-in;
}

.trp-review-image-link::after {
    content: '';
    position: absolute;
}

.trp-review-image-link img {
    filter: saturate(1.02);
}

.trp-read-more {
    align-self: flex-start;
    margin-top: 10px;
}

.trp-align-center .trp-read-more {
    align-self: center;
}

.trp-align-right .trp-read-more {
    align-self: flex-end;
}

.trp-business-response,
.trp-card-footer {
    margin-top: auto;
}

.trp-business-response + .trp-card-footer {
    margin-top: 12px;
}

.trp-carousel-arrow {
    width: 38px;
    height: 38px;
    color: #697586;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.trp-carousel-arrow:hover {
    color: #111827;
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

body.trp-lightbox-open {
    overflow: hidden;
}

.trp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.trp-lightbox.is-open {
    display: flex;
}

.trp-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .82);
    backdrop-filter: blur(6px);
}

.trp-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 96vw);
    height: min(720px, 86vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trp-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
    background: #fff;
}

.trp-lightbox-close,
.trp-lightbox-arrow {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111827;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.trp-lightbox-close {
    top: -12px;
    right: -12px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 38px;
}

.trp-lightbox-arrow {
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    font-size: 38px;
    line-height: 40px;
}

.trp-lightbox-prev {
    left: -18px;
}

.trp-lightbox-next {
    right: -18px;
}

.trp-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .7);
    font-size: 13px;
}

@media (max-width: 1180px) {
    .trp-review-track {
        grid-auto-columns: calc((100% - 32px) / 3);
    }
}

@media (max-width: 900px) {
    .trp-review-track {
        grid-auto-columns: calc((100% - 16px) / 2);
    }

    .trp-layout-grid .trp-review-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .trp-reviews-widget {
        max-width: 100%;
    }

    .trp-review-track,
    .trp-layout-grid .trp-review-track {
        grid-auto-columns: 88%;
        gap: 12px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .trp-review-card {
        min-height: 245px;
        padding: 18px;
    }

    .trp-rating-summary {
        margin-bottom: 22px;
    }

    .trp-review-images {
        grid-template-columns: repeat(4, 52px);
    }

    .trp-review-image-link {
        width: 52px;
        height: 52px;
    }

    .trp-lightbox {
        padding: 16px;
    }

    .trp-lightbox-dialog {
        width: 96vw;
        height: 78vh;
    }

    .trp-lightbox-prev {
        left: 6px;
    }

    .trp-lightbox-next {
        right: 6px;
    }

    .trp-lightbox-close {
        top: 6px;
        right: 6px;
    }
}

@media (max-width: 480px) {
    .trp-review-track,
    .trp-layout-grid .trp-review-track {
        grid-auto-columns: calc(100% - 24px);
    }

    .trp-review-card {
        border-radius: 10px;
    }

    .trp-reviewer-meta h4 {
        font-size: 14px;
    }

    .trp-review-text {
        font-size: 14px;
    }
}


/* v2.18: force inline SVG rating stars to render even when theme/plugin CSS targets generic svg icons. */
.trp-stars,
.trp-card-stars .trp-stars,
.trp-summary-stars .trp-stars {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.trp-star,
.trp-card-stars .trp-star,
.trp-summary-stars .trp-star {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.trp-star-svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    overflow: visible;
}

.trp-star-svg path {
    fill: currentColor !important;
}

.trp-card-stars {
    min-height: 20px;
    margin: 14px 0 10px;
}

.trp-summary-stars {
    min-height: 30px;
}


/* v2.19 illustrated local fallback reviewer avatars */
.trp-avatar-shell .trp-avatar-img,
.trp-avatar-fallback {
    background-color: #eef6f8;
}

.trp-avatar-shell .trp-avatar-img[src*="/assets/img/avatars/"] {
    border: 1px solid #dfe8eb;
    background: #eef6f8;
}


/* v2.20 Bethel UI polish: card shadow, arrow style, avatar radius, summary shortcode */
.trp-review-card {
    box-shadow: 1px 4px 10px 0 rgba(0, 0, 0, 0.10), 0 0 2px 0 rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eef0f3;
}

.trp-review-card:hover {
    box-shadow: 1px 8px 18px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.trp-carousel-shell {
    position: relative;
}

.trp-carousel-arrow {
    width: 40px !important;
    height: 40px !important;
    border-radius: 9999px !important;
    border: 1px solid #d9dde3 !important;
    background: #fff !important;
    color: #6b7280 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10) !important;
    font-size: 28px !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.trp-carousel-arrow:hover {
    color: #111827 !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14) !important;
}

.trp-prev {
    left: -20px;
}

.trp-next {
    right: -20px;
}

.trp-avatar-shell,
.trp-avatar-shell .trp-avatar-img,
.trp-avatar-shell .trp-avatar-fallback,
.trp-avatar,
.trp-avatar-fallback {
    border-radius: 9999px !important;
}

.trp-avatar-shell .trp-avatar-img {
    border: 1px solid #dfe8eb !important;
    background: #eef6f8 !important;
}

.trp-avatar-shell .trp-avatar-fallback {
    border: 1px solid #dfe8eb;
    background: #eef6f8;
}

.trp-reviews-summary-shortcode .trp-rating-summary {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .trp-prev {
        left: -6px;
    }

    .trp-next {
        right: -6px;
    }
}


/* v2.21 custom arrow SVG buttons + autoplay-ready polish */
.trp-carousel-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid #d9dde3 !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.trp-arrow-svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    color: currentColor !important;
    pointer-events: none;
}

.trp-arrow-svg path {
    fill: currentColor !important;
}

.trp-carousel-arrow:hover .trp-arrow-svg {
    transform: scale(1.04);
}

.trp-review-track {
    -webkit-overflow-scrolling: touch;
}


/* v2.22 lightbox SVG controls */
.trp-lightbox-close,
.trp-lightbox-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background: #fff !important;
    color: #111827 !important;
}

.trp-lightbox-close {
    width: 48px !important;
    height: 48px !important;
    top: -52px !important;
    right: 0 !important;
}

.trp-lightbox-arrow {
    width: 48px !important;
    height: 48px !important;
}

.trp-lightbox-icon {
    display: block !important;
    color: currentColor !important;
    pointer-events: none;
}

.trp-lightbox-icon path {
    fill: currentColor !important;
}

.trp-lightbox-close:hover,
.trp-lightbox-arrow:hover {
    color: #000 !important;
}

.trp-lightbox-close:hover {
    transform: scale(1.04);
}

.trp-lightbox-arrow:hover {
    transform: translateY(-50%) scale(1.04);
}

@media (max-width: 767px) {
    .trp-lightbox-close {
        top: 8px !important;
        right: 8px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .trp-lightbox-arrow {
        width: 44px !important;
        height: 44px !important;
    }
}


/* v2.29 Elementor dynamic review text read-more */
.trp-dynamic-review-text {
    display: inline;
}

.trp-dynamic-read-more {
    display: inline;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.trp-dynamic-read-more:hover,
.trp-dynamic-read-more:focus {
    opacity: .75;
}


/* v2.30 Elementor dynamic review text layout */
.trp-dynamic-review-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.trp-dynamic-review-copy {
    display: block;
}

.trp-dynamic-read-more {
    align-self: flex-start;
    margin-left: 0 !important;
    width: fit-content;
}

.elementor-align-center .trp-dynamic-read-more,
.trp-align-center .trp-dynamic-read-more {
    align-self: center;
}

.elementor-align-right .trp-dynamic-read-more,
.trp-align-right .trp-dynamic-read-more {
    align-self: flex-end;
}
