﻿.star-rating {
    font-size: 0;
    white-space: nowrap;
    display: inline-block;
    height: 40px;
    overflow: hidden;
    position: relative;
    background: url('images/star.svg');
    background-size: contain;
}

    .star-rating i {
        opacity: 0;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 1;
        background: url('images/star-active.svg');
        background-size: contain;
    }

    .star-rating input {
        -moz-appearance: none;
        -webkit-appearance: none;
        opacity: 0;
        display: inline-block;
        height: 100%;
        margin: 0;
        padding: 0;
        z-index: 2;
        position: relative;
    }

        .star-rating input:hover + i,
        .star-rating input:checked + i {
            opacity: 1;
        }

    .star-rating i ~ i {
        width: 40%;
    }

        .star-rating i ~ i ~ i {
            width: 60%;
        }

            .star-rating i ~ i ~ i ~ i {
                width: 80%;
            }

                .star-rating i ~ i ~ i ~ i ~ i {
                    width: 100%;
                }

::after,
::before {
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
}

.star-rating.star-5 {
    width: 200px;
}

    .star-rating.star-5 input {
        width: 20% !important;
        cursor: pointer;
    }

    .star-rating.star-5 i {
        width: 20%;
    }

        .star-rating.star-5 i ~ i {
            width: 40%;
        }

            .star-rating.star-5 i ~ i ~ i {
                width: 60%;
            }

                .star-rating.star-5 i ~ i ~ i ~ i {
                    width: 80%;
                }

                    .star-rating.star-5 i ~ i ~ i ~ i ~ i {
                        width: 100%;
                    }


.tier-prices {
}

    .tier-prices .tier-item {
        padding: 10px;
        border: 1px solid #b9b9b9;
        border-radius: 8px;
        margin: 10px 0;
        display: flex;
        align-items: center;
    }

        .tier-prices .tier-item input[type=radio]:checked {
            background-color: #000;
            color: #fff;
            border-color: #000;
        }

        .tier-prices .tier-item input[type=radio] {
            padding: 5px 10px;
            width: 20px;
            height: 20px;
            border: 1px solid #959d9e;
            border-radius: 4px;
            cursor: pointer;
            margin-right: 5px
        }

        .tier-prices .tier-item input[type=radio], .tier-prices .tier-item input[type=checkbox] {
            accent-color: #e01223;
        }
