/* Trustpilot Widget - Official Design */
.tpro-widget {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Left Panel - Rating Summary */
.tpro-widget-summary {
    flex-shrink: 0;
    text-align: center;
    padding: 0px 24px;
    min-width: 180px;
}

.tpro-widget-summary .tpro-excellent {
    font-size: 24px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 12px;
}

.tpro-widget-summary .tpro-stars-big {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 12px;
}

.tpro-widget-summary .tpro-star-box {
    width: 32px;
    height: 32px;
    background: #00b67a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpro-widget-summary .tpro-star-box svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.tpro-widget-summary .tpro-star-box.half {
    background: linear-gradient(90deg, #00b67a 50%, #dcdce6 50%);
}

.tpro-widget-summary .tpro-star-box.empty {
    background: #dcdce6;
}

.tpro-widget-summary .tpro-based-on {
    font-size: 14px;
    color: #191919;
    margin-bottom: 8px;
}

.tpro-widget-summary .tpro-based-on a {
    color: #191919;
    text-decoration: underline;
    font-weight: 600;
}

.tpro-widget-summary .tpro-logo {
    margin-top: 12px;
}

.tpro-widget-summary .tpro-logo img {
    height: 24px;
    width: auto;
}

.tpro-widget-summary .tpro-filter-text {
    font-size: 12px;
    color: #6b6b76;
    margin-top: 8px;
}

/* Slider Container */
.tpro-widget-slider {
    flex: 1;
    min-width: 0;
    position: relative;
}

.tpro-widget-slider .swiper {
    /* padding: 0 40px; */
}

/* Navigation Arrows */
.tpro-widget-slider .tpro-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    border: 1px solid #dcdce6;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.tpro-widget-slider .tpro-nav:hover {
    border-color: #191919;
}

.tpro-widget-slider .tpro-nav-prev {
    left: -37px;
}

.tpro-widget-slider .tpro-nav-next {
    right: -37px;
}

.tpro-widget-slider .tpro-nav svg {
    width: 16px;
    height: 16px;
    stroke: #191919;
    stroke-width: 2;
    fill: none;
}

/* Review Card */
.tpro-review-card {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* transition: box-shadow 0.2s ease, border-color 0.2s ease; */
}

.tpro-review-card:hover,
.tpro-card-title {
    color: red;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

/* Card Link Overlay */
.tpro-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Stars Row with Verified Badge */
.tpro-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tpro-stars-row {
    display: flex;
    gap: 2px;
}

.tpro-star-box-sm {
    width: 22px;
    height: 22px;
    background: #00b67a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpro-star-box-sm svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.tpro-star-box-sm.star-4 {
    background: #73cf11;
}

.tpro-star-box-sm.star-3 {
    background: #ffce00;
}

.tpro-star-box-sm.star-2 {
    background: #ff8622;
}

.tpro-star-box-sm.star-1 {
    background: #ff3722;
}

.tpro-star-box-sm.empty {
    background: #dcdce6;
}

.tpro-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b6b76;
}

.tpro-verified svg {
    width: 14px;
    height: 14px;
    fill: #00b67a;
}

/* Card Content */
.tpro-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #191919;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpro-card-title a {
    color: #191919;
    text-decoration: none;
}

.tpro-card-title a:hover {
    text-decoration: underline;
}

.tpro-card-text {
    font-size: 14px;
    line-height: 1.5;
    color: #191919;
    margin-bottom: 4px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer - Author & Date */
.tpro-card-footer {
    font-size: 13px;
    color: #191919;
    margin-top: auto;
}

.tpro-card-author {
    font-weight: 600;
}

.tpro-card-date {
    color: #6b6b76;
}

/* Responsive */
@media (max-width: 991px) {
    .tpro-widget {
        flex-direction: column;
        align-items: center;
    }

    .tpro-widget-summary {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin-bottom: 16px;
    }

    .tpro-widget-slider {
        width: 100%;
        padding: 0 50px;
        position: relative;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .tpro-widget-slider .tpro-swiper {
        display: block !important;
        visibility: visible !important;
    }

    .tpro-widget-slider .swiper-wrapper {
        display: flex !important;
    }

    .tpro-widget-slider .tpro-nav-prev {
        left: 8px;
    }

    .tpro-widget-slider .tpro-nav-next {
        right: 8px;
    }
}

@media (max-width: 767px) {
    .tpro-widget {
        padding: 16px 0;
        gap: 16px;
    }

    .tpro-widget-summary {
        padding: 0 16px;
    }

    .tpro-widget-summary .tpro-excellent {
        font-size: 20px;
    }

    .tpro-widget-summary .tpro-star-box {
        width: 28px;
        height: 28px;
    }

    .tpro-widget-summary .tpro-star-box svg {
        width: 16px;
        height: 16px;
    }

    .tpro-widget-slider {
        width: 100%;
        padding: 0 45px;
        display: block !important;
        visibility: visible !important;
    }

    .tpro-widget-slider .tpro-nav {
        width: 32px;
        height: 32px;
    }

    .tpro-widget-slider .tpro-nav-prev {
        left: 5px;
    }

    .tpro-widget-slider .tpro-nav-next {
        right: 5px;
    }

    .tpro-review-card {
        padding: 12px;
    }

    .tpro-card-title {
        font-size: 14px;
    }

    .tpro-card-text {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .tpro-star-box-sm {
        width: 18px;
        height: 18px;
    }

    .tpro-star-box-sm svg {
        width: 12px;
        height: 12px;
    }

    .tpro-swiper .swiper-slide {
        width: 85% !important;
    }
}

/* Hide default Swiper buttons */
.tpro-widget .swiper-button-next,
.tpro-widget .swiper-button-prev,
.tpro-widget .swiper-pagination {
    display: none !important;
}