.ratings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.rating-top-wrapper {
    background-color: var(--beon-primary-color-light);
    padding: 30px;
    border-radius: var(--beon-border-radius-small);
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 50px;
    min-height: 226px;
}

.review-text p {
    color: var(--beon-primary-color-2);
    font-family: var(--beon-font-family-highlight);
    font-size: 105px;
    line-height: 10px !important;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
    opacity: 0.2;
}

.avg-rating-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

#avg-rating {
    background-image: url('/wp-content/themes/weber-foehr-theme/assets/images/rating_star.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--beon-unit-rating-box-text-color);
    font: var(--beon-unit-rating-box-font);
    border-radius: var(--beon-unit-rating-box-border-radius);
    height: 60px;
    width: 60px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avg-rating-wrapper .rating-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.avg-rating-wrapper .rating-details p {
    margin: 0;
}

.avg-rating-wrapper .rating-count {
    font: var(--beon-unit-rating-font-line-1);
}

.avg-rating-wrapper .rating-text {
    font: var(--beon-unit-rating-font-line-2)
}


.rating-categorie-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.single-rating-categorie-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.single-rating-categorie-box {
    font: var(--beon-unit-rating-detail-box-font);
    color: var(--beon-unit-rating-detail-box-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.single-rating-categorie-box img{
    height: 18px;
    width: 18px;
}

.single-rating-categorie-text {
    font: var(--beon-unit-rating-detail-font);
    color: var(--beon-unit-rating-detail-text-color);
}

/* Feedback */




.rating-messages-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.single-message-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    border: var(--beon-unit-feedback-border);
    border-radius: var(--beon-unit-feedback-border-radius);
    background-color: var(--beon-unit-feedback-bg-color);
    color: var(--beon-unit-feedback-text-color);
    font: var(--beon-unit-feedback-font);
    height: max-content;
    padding: 35px;
    gap: 35px;
}

.unit-feedback-rating {
    font: var(--beon-unit-feedback-rating-box-font);
    color: var(--beon-unit-feedback-rating-box-text-color);
    background-color: var(--beon-unit-feedback-rating-box-bg-color);
    border-radius: var(--beon-unit-feedback-rating-box-border-radius);
    height: 35px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unit-feedback-message {
    width: 100%;
}

.message-body {
    min-height: 50px;
}

.message {
    color: var(--beon-unit-feedback-text-color);
    font: var(--beon-unit-feedback-font);
}


.unit-feedback-comment {
    color: var(--beon-unit-feedback-text-color);
    font: var(--beon-unit-feedback-font);
}

.message-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.message-footer .visitor-name-date {
    color: var(--beon-unit-feedback-name-text-color);
    font: var(--beon-unit-feedback-name-font);
}

.message-footer .show-answer {
    font: var(--beon-unit-feedback-show-answer-font);
    color: var(--beon-unit-feedback-show-answer-text-color);
    text-decoration: underline;
    background: transparent;
}

.rating-messages-wrapper>div:nth-of-type(1n+2) {
    display: flex;
    display: none;
}

/* Work further */
#show_allfeedbacks {}

#show_allfeedbacks p {
    margin-bottom: 0px;
}


@media only screen and (max-width: 1200px) {
    .ratings-wrapper {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .avg-rating-wrapper {
        width: 100%;
    }

    .rating-categorie-wrapper {
        width: 100%;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .single-rating-categorie-wrapper {
        text-align: center;
    }

    .single-rating-categorie-box {
        height: 30px;
        width: 40px;
    }

    .single-message-wrapper {
        padding: 15px;
        gap: 15px;
    }

    .message-footer {
        flex-direction: column;
    }

    .message-footer .show-answer {
        align-self: end;
    }
}