.egc-trustpilot-reviews {
    width: 100%;
    min-width: 0;
    clear: both;
    container-type: inline-size;
}

.egc-trustpilot-reviews .trustpilot-widget {
    margin: 15px 0;
}

.egc-trustpilot-reviews--dark a {
    color: #fff;
}

.egc-trustpilot-reviews__all {
    display: block;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}

/* The inner link already covers bootstrap failure or disabled JavaScript. */
.egc-trustpilot-reviews:not(:has(iframe)) .egc-trustpilot-reviews__all {
    display: none;
}

/* Keep wide carousels compact; narrow columns need room for the stacked score. */
@container (min-width: 750px) {
    .egc-trustpilot-reviews--carousel .trustpilot-widget iframe {
        height: 160px !important;
    }
}

.egc-trustpilot-summary {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.egc-trustpilot-summary .trustpilot-widget {
    margin: 0;
    min-height: 150px;
}

.egc-trustpilot-summary--combo .trustpilot-widget {
    min-height: 24px;
}

.egc-trustpilot-summary--logo {
    width: 180px;
    max-width: 100%;
}

.egc-trustpilot-summary--logo .trustpilot-widget {
    min-height: 100px;
}

.egc-trustpilot-summary__profile {
    display: block;
    font-size: 12px;
    line-height: 18px;
}

.egc-trustpilot-summary:not(:has(iframe)) .egc-trustpilot-summary__profile {
    display: none;
}
