:root {
    --yellow: #FFBD13;
    --blue: #4383FF;
    --blue-d-1: #3278FF;
    --light: #F5F5F5;
    --grey: #AAA;
    --white: #FFF;
    --shadow: 8px 8px 30px rgba(0, 0, 0, .05);
}

.review {
    display: flex;
    justify-content: center;
    min-height: auto;
    padding: 1rem;
}

.wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: .5rem;
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 2rem;
}

.rating .star {
    cursor: pointer;
}

.rating .star.active {
    opacity: 0;
    animation: animate .5s calc(var(--i) * .1s) ease-in-out forwards;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.rating .star:hover {
    transform: scale(1.1);
}

textarea {
    width: 100%;
    background: var(--light);
    padding: 1rem;
    border-radius: .5rem;
    border: none;
    outline: none;
    resize: none;
    margin-bottom: .5rem;
}

.btn-group {
    display: flex;
    grid-gap: .5rem;
    align-items: center;
}

.btn-group .btn {
    padding: .75rem 1rem;
    border-radius: .5rem;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;
}

.btn-group .btn.submit {
    background: var(--blue);
    color: var(--white);
}

.btn-group .btn.submit:hover {
    background: var(--blue-d-1);
}

.btn-group .btn.cancel {
    background: var(--white);
    color: var(--blue);
}

.btn-group .btn.cancel:hover {
    background: var(--light);
}

#id_product {
    display: none;
}

#id_card_product {
    display: none;
}

.product-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
}

.star-fraction-20::before {
    content: '⭐';
    display: inline-block;
    width: 0.4em;
    overflow: hidden;
}

.star-fraction-40::before {
    content: '⭐';
    display: inline-block;
    width: 0.6em;
    overflow: hidden;
}

.star-fraction-60::before {
    content: '⭐';
    display: inline-block;
    width: 0.8em;
    overflow: hidden;
}

.star-fraction-80::before {
    content: '⭐';
    display: inline-block;
    width: 1em;
    overflow: hidden;
}

.star-fraction-100::before {
    content: '⭐';
    display: inline-block;
    width: 1.2em;
    overflow: hidden;
}

.btn-friend {
    color: #fff;
    background-image: linear-gradient(to right, #FF5B5B 0%, #FF3030 51%, #FF5B5B 100%);
}

.btn-friend:hover {
    color: #fff;
    background-image: linear-gradient(to right, #FF4A4A 0%, #F12F2F 51%, #FF4A4A 100%);
}

.btn-friend:focus,
.btn-friend.focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.5);
}

.btn-friend.disabled,
.btn-friend:disabled {
    color: #fff;
    background-image: linear-gradient(to right, #FF5B5B 0%, #FF3030 51%, #FF5B5B 100%);
}

.btn-friend:not(:disabled):not(.disabled):active,
.btn-friend:not(:disabled):not(.disabled).active,
.show>.btn-friend.dropdown-toggle {
    color: #fff;
    background-image: linear-gradient(to right, #FF4A4A 0%, #F12F2F 51%, #FF4A4A 100%);
}

.btn-friend:not(:disabled):not(.disabled):active:focus,
.btn-friend:not(:disabled):not(.disabled).active:focus,
.show>.btn-zero.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.5);
}

.img-effect {
    position: relative;
    display: inline-block;
    border-radius: 2vh;
    max-height: auto;
    max-width: auto;
    overflow: hidden;
}

.img-effect img {
    border-radius: 2vh;
    display: block;
}

.img-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: transform 1s ease-in-out, left 1s ease-in-out;
}

.img-effect:hover::after {
    left: -100%;
}

.img-effect:hover::after {
    left: -100%;
    transition: transform 1s ease-in-out, left 1s ease-in-out;
}

.img-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: transform 1s ease-in-out, left 1s ease-in-out;
}

.img-effect:hover::before {
    left: 100%;
    transition: transform 1s ease-in-out, left 1s ease-in-out;
}

.rgb {
    background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
    background-size: 2000% 2000%;

    color: transparent;
    animation-fill-mode: forwards;
    -webkit-background-clip: text;
    -webkit-animation: rgb 5s ease infinite;
    -z-animation: rgb 5s ease infinite;
    -o-animation: rgb 5s ease infinite;
    animation: rgb 5s ease infinite;
}

@-webkit-keyframes rgb {
    0% {
        background-position: 0% 82%
    }

    50% {
        background-position: 100% 19%
    }

    100% {
        background-position: 0% 82%
    }
}

@-moz-keyframes rgb {
    0% {
        background-position: 0% 82%
    }

    50% {
        background-position: 100% 19%
    }

    100% {
        background-position: 0% 82%
    }
}

@-o-keyframes rgb {
    0% {
        background-position: 0% 82%
    }

    50% {
        background-position: 100% 19%
    }

    100% {
        background-position: 0% 82%
    }
}

@keyframes rgb {
    0% {
        background-position: 0% 82%;
    }

    50% {
        background-position: 100% 19%;
    }

    100% {
        background-position: 0% 82%;
    }
}

.badge-thxk-v2 {
    margin-top: 5px;
    position: relative;
    display: inline-block;
    padding: 1.5px 1.5px;
    font-size: 13px;
    font-weight: 200;
    color: #fff;
    background-color: rgb(255, 0, 0, 0.75);
    border-radius: 2vh;
    box-shadow: 0 0 3px rgba(255, 33, 33, 0.3), 0 0 7px rgba(255, 33, 33, 0.3), 0 0 10px rgba(255, 33, 33, 0.3);
    animation: glow 1.5s infinite alternate;
    transition: all 0.3s ease-in-out;
}

@keyframes glow {
    from {
        box-shadow: 0 0 3px rgba(255, 33, 33, 0.3), 0 0 7px rgba(255, 33, 33, 0.3), 0 0 10px rgba(255, 33, 33, 0.3);
    }

    to {
        box-shadow: 0 0 10px rgba(255, 33, 33, 0.5), 0 0 20px rgba(255, 33, 33, 0.5), 0 0 30px rgba(255, 33, 33, 0.5);
    }
}

.badge-thxk-v3 {
    margin-top: 5px;
    position: relative;
    display: inline-block;
    padding: 1.5px 1.5px;
    font-size: 12px;
    font-weight: 200;
    color: #fff;
    background-color: rgb(38, 255, 38, 0.75);
    border-radius: 2vh;
    box-shadow: 0 0 3px rgba(38, 255, 38, 0.3), 0 0 7px rgba(38, 255, 38, 0.3), 0 0 10px rgba(38, 255, 38, 0.3);
    animation: glow3 1.5s infinite alternate;
    transition: all 0.3s ease-in-out;
}

@keyframes glow3 {
    from {
        box-shadow: 0 0 3px rgba(38, 255, 38, 0.3), 0 0 7px rgba(38, 255, 38, 0.3), 0 0 10px rgba(38, 255, 38, 0.3);
    }

    to {
        box-shadow: 0 0 10px rgba(38, 255, 38, 0.5), 0 0 20px rgba(38, 255, 38, 0.5), 0 0 30px rgba(38, 255, 38, 0.5);
    }
}