.floating-reviews-popup {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 40px rgb(0 0 0 / 15%);
    max-width: 390px;
    border-radius: 8px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    font-family: Heebo, sans-serif;
    direction: rtl;
    text-align: right;
    bottom: 20px;
}

.floating-reviews-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-reviews-popup.bottom-right {
    right: 20px;
}

.floating-reviews-popup.bottom-left {
    left: 20px;
}

.floating-reviews-popup.middle {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
}

.floating-reviews-popup.middle.visible {
    transform: translate(-50%, -50%) translateY(0);
}

.floating-reviews-popup .fr-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    font-size: 21px;
    cursor: pointer;
    color: #000;
    padding: 0;
    line-height: 1;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-reviews-popup .fr-close:hover {
    color: #333;
    background: #f5f5f5;
}

.floating-reviews-popup .fr-content {
    display: flex;
    gap: 10px;
    margin: 0;
    align-items: stretch;
}

.floating-reviews-popup .fr-avatar {
    width: 110px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
    align-self: stretch;
}

.floating-reviews-popup .fr-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px;
    gap: 2px;
}

.floating-reviews-popup .fr-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
}

.floating-reviews-popup .fr-name-sub-row {
    display: flex;
    gap: 5px;
}

.floating-reviews-popup .fr-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.floating-reviews-popup .fr-verified {
    font-size: 10px;
    color: #3f93db;
    background: #daeeff;
    padding: 2px 5px;
    border-radius: 2px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.floating-reviews-popup .fr-name-row .fr-stars-row {
    display: flex;
    gap: 6px;
    margin: 0;
    flex-wrap: wrap;
}

.floating-reviews-popup .fr-stars {
    color: #FFD700;
    font-size: 13px;
    letter-spacing: 0;
    margin: 0;
}

.floating-reviews-popup .fr-rating {
    color: #585858;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    display: flex;
    align-items: center;
}

.floating-reviews-popup .fr-text {
    font-size: 12px;
    color: #444;
    line-height: 1.4;
    margin: 0;
}

.floating-reviews-popup .fr-text.collapsed {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.floating-reviews-popup .fr-read-more {
    color: #2271b1;
    cursor: pointer;
    font-size: 11px;
    margin: 0;
    display: inline-block;
}

.floating-reviews-popup .fr-read-more:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .floating-reviews-popup {
        max-width: calc(100% - 30px);
        left: 15px;
        right: auto;
        bottom: 15px;
    }

    .floating-reviews-popup .fr-avatar {
        width: 90px;
        height: 90px;
    }

    .floating-reviews-popup .fr-name {
        font-size: 13px;
    }

    .floating-reviews-popup .fr-text {
        font-size: 11px;
    }

    .floating-reviews-popup.middle {
        top: auto;
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 50%) translateY(20px);
    }

    .floating-reviews-popup.middle.visible {
        transform: translate(-50%, 50%) translateY(0);
    }
}
