.trustpilot-reviews-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.trustpilot-reviews-list {
    display: grid;
    gap: 16px;
}

.trustpilot-review-rating {
    margin-bottom: 10px;
}

.trustpilot-review-content {
    font-size: 16px;
    line-height: 1.5;
}

.trustpilot-review-text {
    margin: 0 0 15px;
    color: #333;
}

.trustpilot-review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.trustpilot-review-author {
    font-weight: 600;
}

.trustpilot-review-date {
    color: #888;
}

.trustpilot-reviews-empty {
    text-align: center;
    color: #666;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.trustpilot-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    text-align: center;
}

.trustpilot-stars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trustpilot-star {
    color: #00b67a;
    font-size: 24px;
    line-height: 1;
}

.trustpilot-star.empty {
    color: #ddd;
}

.trustpilot-star.half {
    position: relative;
    display: inline-block;
}

.trustpilot-star.half:after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #00b67a;
}

.trustpilot-rating-text {
    color: #333;
    font-size: 14px;
}

.trustpilot-popup-trigger {
    background: #00b67a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trustpilot-popup-trigger:hover {
    background: #009f6b;
}

.trustpilot-reviews-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.trustpilot-widget-dropdown {
    max-width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.trustpilot-header {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
}

.trustpilot-stars-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.trustpilot-see-reviews {
    color: #00b67a;
    text-decoration: none;
    font-size: 12px;
}

.trustpilot-see-reviews:hover {
    text-decoration: underline;
}

.trustpilot-summary {
    padding: 16px;
    text-align: center;
}

.trustpilot-rating-summary {
    margin-bottom: 12px;
}

.rating-text {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.trustpilot-rating-info {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.trustpilot-logo {
    height: 25px;
    width: auto;
}

.trustpilot-reviews-list {
    padding: 16px;
}

.trustpilot-review:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trustpilot-star {
    color: #00b67a;
    font-size: 20px;
    line-height: 1;
}

.trustpilot-star.empty {
    color: #ddd;
}

.trustpilot-star.half {
    position: relative;
    display: inline-block;
}

.trustpilot-star.half:after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #00b67a;
}

.review-meta {
    margin: 8px 0;
    font-size: 12px;
    color: #666;
}

.review-author {
    font-weight: 500;
}

.review-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.trustpilot-widget-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.trustpilot-widget-wrapper.loaded {
    visibility: visible !important;
    opacity: 1;
}

/* Компактный вид */
.trustpilot-compact-view {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    width: 200px;
    flex-direction: column;
}

/* Развернутый вид (попап) */
.trustpilot-expanded-view {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 40px);
    max-width: 750px;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.trustpilot-expanded-view.active {
    display: block;
}

.trustpilot-reviews-overlay {
    display: none;

}

.trustpilot-expanded-view.active+.trustpilot-reviews-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4;
}



.trustpilot-toggle-button {
    background: none;
    border: none;
    padding: 0;
    color: #00b67a;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toggle-icon {
    font-size: 8px;
}

.trustpilot-popup-content {
    padding: 16px;
}

.trustpilot-summary {
    text-align: center;
}

.trust_rating_popup {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.trustpilot-rating-text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.trustpilot-rating-info {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.trustpilot-rating-info a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.trustpilot-close-button {
    padding: 16px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 20;
    cursor: pointer;
    height: 16px;
    width: 16px;
}

.trustpilot-close-button::after,
.trustpilot-close-button::before {
    background-color: #b6b6b6;
    border-radius: 8px;
    content: "";
    display: block;
    height: 16px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 2px;
}

.trustpilot-close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.trustpilot-reviews-header {
    font-size: 14px;
    color: #666;
}

.trustpilot-reviews-list {
    max-height: 50vh;
    overflow-y: auto;
}

.trustpilot-review {
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 2px;
    box-shadow: 0 1px 0 0 rgba(182, 196, 210, .4);
    line-height: 18px;
    overflow: hidden;
    padding: 16px;
    position: relative;
    word-wrap: break-word;
}

.trustpilot-review:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trustpilot-star {
    color: #00b67a;
    font-size: 20px;
    line-height: 1;
}

.trustpilot-star.empty {
    color: #ddd;
}

.trustpilot-review-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.review-verified {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.review-verified .icon_verified {
    display: flex;
    width: 14px;
    height: 14px;
}

.review-verified .verified-badge {
    color: #00b67a;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
}

.review-meta {
    margin: 8px 0;
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 8px;
}

.review-author {
    font-weight: 500;
}

.review-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Trustpilot Stars */
.tp-stars {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 150px;
}

/* Default star color */
.tp-star__canvas,
.tp-star__canvas--half {
    fill: #dcdce6;
}

/* Compact view and rating summary - always green for active stars */
.trustpilot-compact-view .tp-stars--5 .tp-star:nth-of-type(-n + 5) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--5 .tp-star:nth-of-type(-n + 5) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--5 .tp-star:nth-of-type(-n + 5) .tp-star__canvas,
.trust_rating_popup .tp-stars--5 .tp-star:nth-of-type(-n + 5) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--4 .tp-star:nth-of-type(-n + 4) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--4 .tp-star:nth-of-type(-n + 4) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--4 .tp-star:nth-of-type(-n + 4) .tp-star__canvas,
.trust_rating_popup .tp-stars--4 .tp-star:nth-of-type(-n + 4) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--4--half .tp-star:nth-of-type(-n + 4) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--4--half .tp-star:nth-of-type(-n + 4) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--4--half .tp-star:nth-of-type(-n + 4) .tp-star__canvas,
.trust_rating_popup .tp-stars--4--half .tp-star:nth-of-type(-n + 4) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--4--half .tp-star:nth-of-type(5) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--4--half .tp-star:nth-of-type(5) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--3 .tp-star:nth-of-type(-n + 3) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--3 .tp-star:nth-of-type(-n + 3) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--3 .tp-star:nth-of-type(-n + 3) .tp-star__canvas,
.trust_rating_popup .tp-stars--3 .tp-star:nth-of-type(-n + 3) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--3--half .tp-star:nth-of-type(-n + 3) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--3--half .tp-star:nth-of-type(-n + 3) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--3--half .tp-star:nth-of-type(-n + 3) .tp-star__canvas,
.trust_rating_popup .tp-stars--3--half .tp-star:nth-of-type(-n + 3) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--3--half .tp-star:nth-of-type(4) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--3--half .tp-star:nth-of-type(4) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--2 .tp-star:nth-of-type(-n + 2) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--2 .tp-star:nth-of-type(-n + 2) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--2 .tp-star:nth-of-type(-n + 2) .tp-star__canvas,
.trust_rating_popup .tp-stars--2 .tp-star:nth-of-type(-n + 2) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--2--half .tp-star:nth-of-type(-n + 2) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--2--half .tp-star:nth-of-type(-n + 2) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--2--half .tp-star:nth-of-type(-n + 2) .tp-star__canvas,
.trust_rating_popup .tp-stars--2--half .tp-star:nth-of-type(-n + 2) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--2--half .tp-star:nth-of-type(3) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--2--half .tp-star:nth-of-type(3) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--1 .tp-star:nth-of-type(-n + 1) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--1 .tp-star:nth-of-type(-n + 1) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--1 .tp-star:nth-of-type(-n + 1) .tp-star__canvas,
.trust_rating_popup .tp-stars--1 .tp-star:nth-of-type(-n + 1) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--1--half .tp-star:nth-of-type(-n + 1) .tp-star__canvas,
.trustpilot-compact-view .tp-stars--1--half .tp-star:nth-of-type(-n + 1) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--1--half .tp-star:nth-of-type(-n + 1) .tp-star__canvas,
.trust_rating_popup .tp-stars--1--half .tp-star:nth-of-type(-n + 1) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-compact-view .tp-stars--1--half .tp-star:nth-of-type(2) .tp-star__canvas--half,
.trust_rating_popup .tp-stars--1--half .tp-star:nth-of-type(2) .tp-star__canvas--half {
    fill: #00b67a;
}

/* Different colors for individual reviews */
.trustpilot-review .tp-stars--5 .tp-star:nth-of-type(-n + 5) .tp-star__canvas,
.trustpilot-review .tp-stars--5 .tp-star:nth-of-type(-n + 5) .tp-star__canvas--half {
    fill: #00b67a;
}

.trustpilot-review .tp-stars--4 .tp-star:nth-of-type(-n + 4) .tp-star__canvas,
.trustpilot-review .tp-stars--4 .tp-star:nth-of-type(-n + 4) .tp-star__canvas--half {
    fill: #73cf11;
}

.trustpilot-review .tp-stars--4--half .tp-star:nth-of-type(-n + 4) .tp-star__canvas,
.trustpilot-review .tp-stars--4--half .tp-star:nth-of-type(-n + 4) .tp-star__canvas--half,
.trustpilot-review .tp-stars--4--half .tp-star:nth-of-type(5) .tp-star__canvas--half {
    fill: #73cf11;
}

.trustpilot-review .tp-stars--3 .tp-star:nth-of-type(-n + 3) .tp-star__canvas,
.trustpilot-review .tp-stars--3 .tp-star:nth-of-type(-n + 3) .tp-star__canvas--half {
    fill: #ffce00;
}

.trustpilot-review .tp-stars--3--half .tp-star:nth-of-type(-n + 3) .tp-star__canvas,
.trustpilot-review .tp-stars--3--half .tp-star:nth-of-type(-n + 3) .tp-star__canvas--half,
.trustpilot-review .tp-stars--3--half .tp-star:nth-of-type(4) .tp-star__canvas--half {
    fill: #ffce00;
}

.trustpilot-review .tp-stars--2 .tp-star:nth-of-type(-n + 2) .tp-star__canvas,
.trustpilot-review .tp-stars--2 .tp-star:nth-of-type(-n + 2) .tp-star__canvas--half {
    fill: #ff8622;
}

.trustpilot-review .tp-stars--2--half .tp-star:nth-of-type(-n + 2) .tp-star__canvas,
.trustpilot-review .tp-stars--2--half .tp-star:nth-of-type(-n + 2) .tp-star__canvas--half,
.trustpilot-review .tp-stars--2--half .tp-star:nth-of-type(3) .tp-star__canvas--half {
    fill: #ff8622;
}

.trustpilot-review .tp-stars--1 .tp-star:nth-of-type(-n + 1) .tp-star__canvas,
.trustpilot-review .tp-stars--1 .tp-star:nth-of-type(-n + 1) .tp-star__canvas--half {
    fill: #ff3722;
}

.trustpilot-review .tp-stars--1--half .tp-star:nth-of-type(-n + 1) .tp-star__canvas,
.trustpilot-review .tp-stars--1--half .tp-star:nth-of-type(-n + 1) .tp-star__canvas--half,
.trustpilot-review .tp-stars--1--half .tp-star:nth-of-type(2) .tp-star__canvas--half {
    fill: #ff3722;
}

/* Star shape */
.tp-star__shape {
    fill: #fff;
}

/* Loading Animation */
.trustpilot-loading {
    display: none;
    text-align: center;
    padding: 20px 0;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.trustpilot-loading.active {
    display: block;
    opacity: 1;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #00b67a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fade in animation for new reviews */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trustpilot-review {
    animation: fadeIn 0.3s ease-out forwards;
}