:root {
    --blue-text: #007185;
    --blue-text-size: 0.875rem;
    --review-yellow-bar: #f5961d;
    --review-background-color: #f0f2f2;
    --review-primary-text-color: #0f1111;
    --review-secondary-text-color: #565959;
}

.review-analytics-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-anlaytics-header {
    display: flex;
    flex-direction: column;

    margin-bottom: 0.2rem;
}

.review-analytics-header h2,
.review-content-section h2 {
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 2rem;
}

.review-analytics-header-star-section {
    line-height: 0.5rem;
    margin-bottom: 0.1rem;
}

.review-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.review {
    display: flex;
    justify-content: left;
    align-items: center;

    padding-top: 0.4rem;
    gap: 0.5rem;
}

.review span {
    display: flex;
    align-items: flex-end;

    font-size: var(--blue-text-size);
    color: var(--blue-text);
}

.review-star-number {
    width: 15%;
}

.review-bar-container {
    background-color: var(--review-background-color);
    display: flex;
    width: 50%;
    height: 1.25rem;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 1px #bbbfbf;
}

.review-bar {
    background: var(--review-yellow-bar);
    display: flex;
    height: 1.25rem;
    border-radius: 0.25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: inset -2px 0 0 -1px var(--review-yellow-bar),
        inset 0 0 0 1px var(--review-yellow-bar);
}

/* Styling for the stars */
.full-star,
.half-star,
.empty-star {
    font-size: 24px;
    color: var(--review-yellow-bar);
}

.half-star {
    position: relative;
}

.half-star::after {
    content: "\2606";
    color: var(--review-background-color);
    position: absolute;
    left: 0;
}

/* Review content section */
.review-content {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.review-content-item {
    display: flex;
    flex-direction: column;
}

.review-content-author-info {
    font-size: 0.81rem;
    line-height: 1.19rem;
    color: var(--review-primary-text-color);
}

.review-content-item-star-rating {
    line-height: 1rem;
}

.review-content-item-header-date {
    font-size: 0.9rem;
    line-height: 1.25rem;
    color: var(--review-secondary-text-color);
}

.review-content-item-body {
    font-size: 0.9rem;
    line-height: 1.19rem;
    color: var(--review-primary-text-color);
}

@media (min-width: 1024px) {
    .review-star-number {
        width: 7%;
    }
    .review-analytics-header {
        display: flex;
        flex-direction: column;

        margin-bottom: 0.2rem;
    }
    .review-analytics-header-star-section {
        line-height: 1rem;
        margin-bottom: 0rem;
    }
}
