/* index.components.reviews — extracted from inline <style> in body for HTML validity.
   Linked from reviews.blade.php (component is reused on main + main_goods layouts,
   so an external <link> is used instead of @push('styles')). */
.light {
    color: #ffaa00;
}

.review-wrap {
    max-width: 1200px;
    margin: 0px auto;
    margin-top: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

.review-left {
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    min-width: 0;
    position: relative;
}

.review-left h2 {
    height: 30px;
    font-family: "default_bold";
    font-weight: 600;
    font-size: 20px;
    color: #333333;
    text-align: center;
    margin: 0 0;

}

.review-desc {
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    color: rgba(51, 51, 51, 0.7);
    line-height: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.review-item {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr) 220px;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: flex-start;
}

.review-item:first-of-type {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.review-item.fade-item {
    opacity: 0.35;
}

.review-avatar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}



.review-avatar .review-meta {
    min-width: 0;
}

.review-avatar .username {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #333;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.review-avatar .email .review-avatar .time {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.review-avatar .email {
    font-weight: 600;
    font-size: 14px;
    color: #333333;
}

.review-avatar .time {
    font-weight: 500;
    font-size: 12px;
    color: rgba(51, 51, 51, 0.7);
}

.review-middle {
    min-width: 0;
}

.review-middle .username {
    font-weight: bold;
    font-size: 16px;
    color: #222;
}

.review-middle .time {
    font-weight: 500;
    font-size: 12px;
    color: rgba(51, 51, 51, 0.7);
}

.review-middle .review-content {
    color: #555;
    margin-top: 6px;
    overflow-wrap: anywhere;
    font-weight: 500;
    font-size: 12px;
    color: rgba(51, 51, 51, 0.7);
    line-height: 17px;
}

.review-right-col {
    text-align: right;
}

.star-row {
    color: #ffb800;
    font-size: 22px;
    letter-spacing: 2px;
}

.tag-fc27 {
    display: inline-block;
    background: #222;
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
    margin-top: 6px;
}

.review-btn-wrap {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
}

.btn-all-review {
    background: #ffaa00;
    border: none;
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: #1D2026;
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: "default_bold";

}

.btn-all-review a:hover {
    color: #1D2026;
}

/* ========== 右侧 Trustpilot 面板 ========== */
.review-right {
    /* background: #222730; */
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
    min-width: 0;
    background-color: #1e2026;
}

.tp-header {
    text-align: center;
}

.tp-header h3 {
    margin-bottom: 16px;
    background: #333944;
    margin: 0;
    padding: 18px 14px;
    margin-bottom: 10px;
    font-family: "default_bold";
    font-weight: 600;
    font-size: 20px;
    color: #FFFFFF;
}

.trustpilot-widget {
    color: #fff;
}

.tp-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
}

.tp-star-bar {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tp-star-block {
    width: 52px;
    height: 52px;
    background: #00b67a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.tp-star-block.half {
    background: #e4e7eb;
    color: #222;
}

.tp-rating-text {
    font-size: 18px;
    margin-bottom: 20px;
}

.tp-divider {
    height: 1px;
    background: #444;
    margin: 0 24px 16px;
}

.tp-body {
    padding: 0 24px 24px;
}

.tp-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
    font-family: "default_bold";
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);

}

.tp-review-title {
    margin-bottom: 10px;
    font-family: "default_bold";
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;

}

.tp-review-text {
    margin-bottom: 10px;
    font-family: "default_bold";
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;

}

.tp-review-time {
    font-family: "default_bold";
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 27px;
}

.all_reviews a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #3b3f4c;
    width: fit-content;
    justify-content: center;
    margin: 0 auto;
    margin-top: 20px;
    height: 36px;
    background: #3A3F4D;
    border-radius: 0px 0px 0px 0px;
    font-family: "default_bold";
    font-weight: 500;
    font-size: 16px;
    color: #FFFFFF;
}

.all_reviews a:hover {
    color: var(--primary-color)
}

.all_reviews a svg {
    fill: #fff;
}

.tp-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}

.tp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}

.tp-dot.active {
    background: #fff;
}

@media (max-width:1024px) {
    .review-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width:768px) {
    .review-right {
        border-radius: 0px;
    }

    .review-wrap {
        margin-top: 0px;
    }



    .review-left h2 {
        text-align: left;
    }

    .review-desc {
        text-align: left;
    }

    .tp-header {
        padding: 0px;
    }

    .review-btn-wrap {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        z-index: 2;
    }

    .btn-all-review {
        font-weight: 500;
        font-size: 12px;
        color: #1D2026;
        padding: 4px 8px;
    }

    .review-left {
        padding: 16px 10px;

        padding-top: 4px;

        background-color: transparent !important;
    }

    .review-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        align-items: start;
        background-color: #fff;
        padding: 16px 10px;
    }

    .review-avatar {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
    }

    .review-right-col {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .review-middle {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .review-avatar .email {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .star-row {
        font-size: 16px;
    }

}
