﻿.card {
    display: flex;
    position: static;
    width: 10rem;
    height: 9rem;
    padding: 0.5rem;

    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    position: relative;
}

    .rating > input {
        display: none
    }

    .rating > label {
        position: relative;
        width: 1em;
        font-size: 30px;
        font-weight: 300;
        color: var(--black);
        cursor: pointer
    }

        .rating > label::before {
            content: "\2605";
            position: absolute;
            opacity: 0
        }

        .rating > label:hover:before,
        .rating > label:hover ~ label:before {
            opacity: 1 !important
        }

    .rating > input:checked ~ label:before {
        opacity: 1
    }

    .rating:hover > input:checked ~ label:before {
        opacity: 0.4
    }


.buttons {
    top: 36px;
    position: relative;
}


.rating-submit {
    border-radius: 15px;
    color: var(--black);
    height: 49px;
    background-color: var(--gray2);
    border: 0;
}


    .rating-submit:hover {
        color: var(--white);
        background-color: var(--black);
    }
