.feedbackBox {
    border-radius: var(--feedback-template-three-border-radius, 1rem);
    background: var(--feedback-template-three-bg-color, #fff);
    box-shadow: var(--feedback-template-three-box-shadow, 0 4px 6px -2px rgb(27 27 28 / 2%));

    @include flex-direction(row-reverse);
    @include flex-align(center, space-between);

    width: calc(100% - 3.2rem);
    max-width: var(--feedback-template-three-max-width, calc(var(--main-container-max) - 48px));
    padding: var(--feedback-template-three-padding-mobile, 0.8rem);
    margin: var(--feedback-template-three-margin-mobile, 1.6rem 1.6rem 0 1.6rem);
    gap: 0.4rem;

    @include min(tablet) {
        display: grid;
        grid-template-columns: 2.1fr 1.2fr 0.5fr;
        grid-template-rows: repeat(2, auto);
        align-items: center;
        width: auto;
        padding: var(--feedback-template-three-padding-desktop, 1.6rem);
        margin: var(--feedback-template-three-margin-desktop, 1.6rem auto 0);
    }

    > img {
        display: none;
    }
}

.title {
    color: var(--feedback-template-three-font-color, #1b1b1c);
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.8rem;
    margin-right: .8rem;
    display: none;

    @include min(tablet) {
        display: block;
        grid-row: 1;
        font-size: 1.8rem;
        font-style: normal;
        font-weight: 600;
        line-height: 2.8rem;
        margin-top: .5rem
    }
}

.formBox,
.modalChildren {
    @include flex-direction(row);

    gap: .8rem;

    @include min(tablet) {
        grid-row: 1 / span 2;
        grid-column: 3;
    }
}

.button {
    border-radius: 100px;
    background: var(--feedback-template-three-button-bg-color, #ececec);
    min-width: 3rem;
    height: 3rem;
    cursor: pointer;

    @include flex-align(center, center);

    @include min(tablet) {
        width: 6.4rem;
        height: 6.4rem;
    }

    > svg {
        width: 1.25rem;
        height: 1.25rem;
        color: var(--feedback-template-three-button-font-color, #262629);
        
        @include min(tablet) {
            width: 2.33rem;
            height: 2.33rem;
        }
    }
}

.details {
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.8rem;
    color: #136A43;
    text-align: left;
    padding: 0.4rem;    

    @include flex-align(center, center);

    @include min(tablet) {
        @include flex-align(center, flex-start);

        grid-row: 2;
        margin-top: 0;
        font-size: 1.4rem;
        font-style: normal;
        line-height: 2.2rem;
    }
}

.like {
    background: var(--feedback-template-three-like-bg-color, var(--feedback-template-three-button-bg-color, #f2f3c7));
}

.dislike {
    background: var(--feedback-template-three-dislike-bg-color, var(--feedback-template-three-button-bg-color, #fee2e2));
}

.votedLike,
.votedDislike {
    background: var(--feedback-template-three-voted-button-bg-color, #136A43);

    >svg {
        fill: #fff;
    }
}

.disabled {
    background: var(--feedback-template-three-voted-disabled-button-bg-color, var(--feedback-template-three-button-bg-color, #ececec));
}

.voted {
    grid-column: 1/3;

    @include min(tablet){
        grid-column: 2/3;
        grid-row: 1/3;
        margin-top: 0;
    }

    >span {
        color: #1C1A28;
        font-size: 1.8rem;
        font-style: normal;
        font-weight: 600;
        line-height: 2.8rem;
    }

    >p {
        color: #515156;
        font-size: 1.4rem;
        font-style: normal;
        font-weight: 400;
        line-height: 2.2rem;
        margin-top: 0.8rem;

        @include min(tablet){
            margin-top: 0.4rem;
        }

        >a {
            margin-left: 0.5rem;
            text-decoration: underline;
        }
    }
}

.userCount {
    @include flex-direction(row);

    gap: 5px;
    flex-wrap: wrap;
    color: var(--feedback-template-three-font-color, #1b1b1c);
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.8rem;
    display: none;

    @include min(tablet) {
        grid-column: 2;
        grid-row: 1 / span 2;
        height: 100%;
        min-width: 15.6rem;
        align-self: flex-end;

        @include flex-align(center, flex-start);
    }
}

.recommentText {
    color: #515156;
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.6rem;
    flex-basis: 100%;

    @include min(tablet) {
        font-size: 1.4rem;
    }
}

.showCounter {
    display: none;

    @include min(tablet) {
        display: flex;
    }
}

.feedbackModalContainer {
    background: var(--feedback-template-three-modal-bg-color, #fff);
    box-shadow: var(--feedback-template-three-modal-box-shadow, 0 4px 6px -2px rgb(27 27 28 / 4%));
    width: var(--feedback-template-three-modal-width-mobile, 100%);
    max-width: var(--feedback-template-three-modal-max-width, calc(var(--main-container-max) - 48px));
    border-radius: 1rem;
    gap: 1.6rem;
    padding: 1.6rem;
    margin: var(--feedback-template-three-margin-mobile, 1.6rem 1.6rem 0 1.6rem);

    @include min(tablet) {
        width: var(--feedback-template-three-modal-width-desktop, 100%);
    }
}

.feedbackModalBox {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    width: 100%;
    gap: 1.6rem;
    padding: 0;
    margin: 0;
    box-shadow: none;

    > img { 
        @include min(tablet) {
            display: block;
            width: 8rem;
            height: 8rem;
        }
    }

    @include min(tablet) {
        grid-template-columns: 8rem 2.1fr 1.2fr 0.5fr;
    }
    
    .button {
        width: 4.2rem;
        height: 4.2rem;

        svg {
            width: 1.5rem;
            height: 1.5rem;
        
            @include min(tablet) {
                width: 2.33rem;
                height: 2.33rem;
            }
        }

        @include min(tablet) {
            width: 6.4rem;
            height: 6.4rem;
        }
    }

    .userCount {
        @include min(tablet) {
            grid-column: 3;
            grid-row: 1;
        }
    }

    .showCounter {
        display: flex;
    }

    .formBox {
        @include min(tablet) {
            grid-column: 4;
            grid-row: 1;
        }
    }


    .votedLike,
    .votedDislike {
        background: var(--feedback-template-three-voted-button-bg-color, #136A43);

        >svg {
            fill: #fff;
        }
    }

    .voted {
        @include min(tablet) {
            grid-row: 1;
        }
    }
}