/* ===== Wrapper ===== */
.rs-reviews {
    width: 100%;
    display: block;
    direction: ltr;
    text-align: left;
    color: #000;
    box-sizing: border-box;
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.4em;
}

.rs-reviews *,
.rs-reviews *::before,
.rs-reviews *::after {
    box-sizing: border-box;
}

/* ===== Card ===== */
.rs-review {
    margin-bottom: 16px;
    transition: transform 300ms ease-out;
}

.rs-review__inner {
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 20px;
    background-color: #fff;
    position: relative;
}

@media (min-width: 480px) {
    .rs-review:hover {
        transform: translate(0, -5px);
    }
}

/* ===== Header ===== */
.rs-review__header {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
}

.rs-review__platform {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0;
    right: 0;
}

.rs-review__platform img {
    width: 20px;
    height: 20px;
    display: block;
}

.rs-review__avatar {
    margin: 0 15px 0 0;
    flex-shrink: 0;
}

.rs-review__avatar img {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.rs-review__avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.rs-review__profile {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rs-review__name {
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
    padding-right: 25px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #000;
}

.rs-review__date {
    color: #8a8a8a;
    font-size: 13px;
    margin-top: 2px;
}

/* ===== Stars ===== */
.rs-review__stars {
    margin: 11px 0;
    white-space: nowrap;
    display: block;
    line-height: 0;
}

.rs-review__star {
    width: 17px;
    height: 17px;
    margin-right: 1px;
    display: inline-block;
    vertical-align: middle;
}

/* ===== Verified badge ===== */
.rs-review__verified {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 7px;
    background: url("https://cdn.trustindex.io/assets/icon/ti-verified.svg") center / contain no-repeat;
    vertical-align: middle;
    position: relative;
    cursor: help;
}

.rs-review__verified::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 15px);
    top: -10px;
    width: 175px;
    padding: 6px 10px;
    background: #000;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .33);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
    z-index: 3;
    white-space: normal;
    pointer-events: none;
}

.rs-review__verified::before {
    content: "";
    position: absolute;
    left: calc(100% + 8px);
    top: 8px;
    border: 7px solid transparent;
    border-right-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
}

.rs-review__verified:hover::after,
.rs-review__verified:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ===== Review text ===== */
.rs-review__text {
    font-size: 15px;
    line-height: 21.75px;
    color: #000;
    word-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ===== Hidden / Load more ===== */
.rs-review.is-hidden {
    display: none;
}

.rs-reviews__load-more {
    text-align: center;
}

.rs-reviews__load-more-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.rs-reviews__load-more-btn:hover {
    background-color: #e6e6e6;
    border-color: silver;
}