.rating-block {
    box-shadow: 0px 2px 10px silver;
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    margin: 15px;
}

.rating__mainwrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
}

.rating__mainwrapper .rating__innerwrapper {
    flex: initial;
    display: flex;
    align-items: center;
}

.rating__mainwrapper .rating__wrapper {
    max-width: 150px;
    margin: auto;
}

.rating__mainwrapper .rating__btn {
    flex: 1;
    padding-left: 150px;
}

.rating__mainwrapper .rating__btn a {
    background: linear-gradient(266.4deg, #c0083e -5.36%, #ff2565 110.14%);
    padding: 10px 15px;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
}

.rating-block .rating__head h3 {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: #3d4051;
    margin: 0 0 15px;
    text-align: center;
}

.rating-block .rating__mainwrapper h4 {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #3d4051;
    margin: 0 0 5px;
    margin-right: 115px;
}

.rating__wrapper:not(:checked)>input {
    display: none;
}

.rating__wrapper:not(:checked)>label {
    float: right;
    width: 30px;
    height: 30px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    font-size: 34px !important;
    line-height: 30px;
    color: #A4ACBA;
    margin-bottom: 0;
}

.rating__wrapper:not(:checked)>label:before {
    content: '★ ';
}

.rating__wrapper:not(:checked)>label:hover,
.rating__wrapper:not(:checked)>label:hover~label {
    color: #FBC338;
}

.rating__wrapper>input:checked~label {
    color: #FBC338;
}

.rating__wrapper>input:checked+label:hover,
.rating__wrapper>input:checked+label:hover~label,
.rating__wrapper>input:checked~label:hover,
.rating__wrapper>input:checked~label:hover~label,
.rating__wrapper>label:hover~input:checked~label {
    color: #FBC338;
}

.half-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(https://storage.googleapis.com/5paisa-prod-storage/newicon/half%20star.png) no-repeat;
    margin-right: 5px;
}
.no-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(https://storage.googleapis.com/5paisa-prod-storage/newicon/empty%20star.png) no-repeat;
    margin-right: 5px;
}


@media (max-width: 767px) {
   
    .rating-block {
        margin: 15px 0;
        padding: 10px;
    }

    .rating-block .rating__head {
        text-align: center;
    }

    .rating-block .rating__head h3 {
        font-size: 16px;
        line-height: 22px;
        margin: 0 0 10px;
    }

    .rating-block .rating__mainwrapper {
        align-items: center
    }

    .rating-block .rating__mainwrapper h4 {
        font-size: 12px;
        line-height: 18px;
        margin-right: 0;
    }

    .rating__mainwrapper .rating__innerwrapper {
        flex: 1;
        display: block;
        text-align: center;
    }

    .rating__mainwrapper .rating__wrapper {
        max-width: 125px;
    }

    .rating__wrapper:not(:checked)>label {
        width: 24px;
        height: 24px;
        font-size: 24px !important;
        line-height: 24px;
    }

    .rating__mainwrapper .rating__btn {
        padding-left: 0;
        text-align: center;
    }

    .rating__mainwrapper .rating__btn a {
        font-size: 12px;
        line-height: 18px;
        padding: 7px 12px;
    }
}