.reviews {
    padding: 1rem 0;

    svg {
        display: inline-flex;
    }

    .reviews__heading {
        margin-bottom: 1.5rem;
    }

    .reviews__info {
        padding: 1rem 0;
        /* border-top: 1px solid #E2E8F0; */
        display: flex;
    }

    .reviews__summary {
        font-size: 12px;

        [data-validate-for] {
            margin-left: 0;
            margin-top: 0.5rem;
            margin-bottom: 2rem;
        }
    }

    .reviews__info-name {
        font-size: 14px;
        font-weight: bold;
        /* flex-basis: 200px; */
        width: 200px;
    }

    .reviews__info-content {
        flex: 1 1 auto;
    }

    .reviews__form-details {
        overflow: hidden;
        max-height: 0;
        transition: 0.2s ease-out max-height;

        &.reviews__form-details--visible {
            padding-top: 1rem;
            max-height: 750px;
        }
    }

    .reviews__overall-ratings {
        display: flex;
        justify-content: space-between;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e2e8f0;

        .star {
            width: 24px;
            height: 24px;
        }

        > div {
            flex: 1 1 50%;
        }
    }

    .reviews__login-required {
        font-size: 14px;
    }

    .callout {
        width: 100%;
        border-radius: 1.5rem;
    }
}

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

    #review-rating-widget {
    }
}

.pagination--reviews {
    margin-top: 2rem;
}

.review {
    margin-top: 1rem;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;

    .review__rating {
        margin-bottom: 1rem;
        white-space: nowrap;

        .star {
            width: 16px;
            height: 16px;
        }
    }

    .review__title {
        @apply .text-grey-darkest .text-sm;
    }

    .review__subtitle {
        @apply .text-grey-dark .text-xs .font-normal .mt-2;
    }

    .review__content {
        @apply .mt-4 .text-grey-darkest .leading-normal;
    }

    .review__category-reviews {
        @apply .mb-2;
    }

    .review__author {
        @apply .text-grey-dark .text-xs;
    }

    .review__details {
        @apply .mt-4;
        display: flex;
        justify-content: space-between;
    }

    .review__pro-con-list {
        @apply .text-xs .text-grey-dark;
        list-style: none;

        li {
            @apply .mb-1;
        }
    }
}

.review__category-reviews {
    width: 50%;
}

.category-review {
    margin-bottom: 0.25rem;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .category-review__name {
        flex-shrink: 0;
        /* flex: 1 1 auto; */
    }

    .category-review__rating {
        flex-basis: 90px;
        flex-shrink: 0;
        white-space: nowrap;

        &.category-review__rating--clickable .star {
            cursor: pointer;
        }

        .star {
            width: 12px;
            height: 12px;
        }
    }

    &.category-review--big .category-review__rating {
        flex-basis: 120px;

        .star {
            width: 18px;
            height: 18px;
        }
    }
}

.star {
    &.star__bg {
        fill: transparent;
    }

    &.star__border {
        fill: #c0c0c0;
    }

    &.star--hover {
        cursor: pointer;

        .star__bg,
        .star__border {
            fill: #c0c0c0;
        }
    }

    &.star--active {
        .star__bg,
        .star__border {
            fill: #fac917;
        }
    }

    .mall-review__details &.mall-star--active {
        @apply .text-grey;

        .mall-star__bg,
        .mall-star__border {
            fill: currentColor;
        }
    }
}
