.sf-review-form {
    display: grid;
    grid-template-columns: 1fr;
    max-height: 100%;
    height: 100%;
    grid-template-rows: 1fr min-content;
    margin-bottom: 0;
    font-family: 'Poppins';

    .sf-review-form__field-cont {
        overflow-y: scroll;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: #00000052 transparent;
        padding: 0.75em 0.35em 0.75em 1em;
        gap: 0.75em;
        display: grid;
        grid-auto-rows: min-content;
        grid-template-columns: 100%;

        .sf-review-form__field {
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            gap: 0.25em;

            .sf-review-rating-stars {
                display: flex;
                gap: 6px;
                flex-direction: row-reverse;
                justify-content: flex-end;
                width: 100%;
            }

            .sf-review-rating-star:hover {
                transform: scale(1.2);
            }

            .sf-review-rating-star {
                width: 24px;
                height: 24px;
                border: none;
                padding: 0;
                cursor: pointer;
                background: url(../../images/stark-frame/a1-star-g.svg) center / contain no-repeat;
            }

            .sf-review-rating-star.is-active {
                background: url(../../images/stark-frame/a1-star-o.svg) center / contain no-repeat;
                width: 24px;
                height: 24px;
            }

            /* селект можно спрятать, если хочешь только звёзды */
            .sf-review-rating-select {
                position: absolute;
                left: -9999px;
            }

            .sf-review-rating-claim {
                margin-top: 1em;
            }
        }

        .comment-form-comment {
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            gap: 0.25em;
            margin: 1em 0 0.5em;

            textarea {
                background: linear-gradient(140deg, rgba(0, 0, 0, 0.18) 0%, rgb(0 0 0 / 35%) 100%);
                border-radius: 8px;
                border: 0px;
                resize: none;
                color: #fff;
                font-family: 'Poppins';
                padding: 0.5em 1em;
                font-size: 14px;
            }
        }

        .sf-review-pros-cons {
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            gap: 1em;

            .sf-review-form__field {
                position: relative;

                label {
                    color: #ffffffcc;
                    position: absolute;
                    left: 0.65rem;
                    line-height: 1;
                    transition: transform .15s ease, top .15s ease, font-size .15s ease;
                    pointer-events: none;
                    font-size: 11px;
                    top: 0.35rem;
                }

                input {
                    border: 0px;
                    height: 42px;
                    padding: 20px 10px 4px !important;
                    line-height: 1;
                    color: #fff;
                    border-radius: 8px;
                    width: 100%;
                    background: linear-gradient(140deg, rgba(0, 0, 0, 0.18) 0%, rgb(0 0 0 / 35%) 100%);
                    font-family: 'Poppins';
                }

                .sf-review-tags {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    gap: 0.25em;

                    > span {
                        padding: 0.5em 2.25em 0.5em 1em;
                        border-radius: 6px;
                        position: relative;
                        background: linear-gradient(140deg, rgba(0, 0, 0, 0.18) 0%, rgb(0 0 0 / 35%) 100%);

                        .sf-review-tag__remove {
                            position: absolute;
                            top: 50%;
                            right: 5px;
                            height: 18px;
                            width: 18px;
                            cursor: pointer;
                            transform: translate(0, -50%);
                        }

                        .sf-review-tag__remove::before {
                            content: '';
                            position: absolute;
                            background: url(../../images/stark-frame/com-pho-del-o.svg);
                            background-size: cover;
                            width: 18px;
                            height: 18px;
                            top: 0;
                            right: 0;
                            z-index: 99;
                            opacity: 1;
                        }
                    }
                }
            }
        }

        .comment-form-media {

            input {
                display: none;
            }

            .comment-form-media__cont {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;

                .sf-review-media-list {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    list-style-type: none;
                    margin: 0;
                    padding: 0;

                    .comment-form-media__butt {
                        background: linear-gradient(140deg, rgba(0, 0, 0, 0.18) 0%, rgb(0 0 0 / 35%) 100%);
                        height: auto;
                        min-width: 90px;
                        width: 90px;
                        aspect-ratio: 3 / 4 !important;
                        max-width: unset;
                        max-height: unset;
                        object-fit: cover;
                        padding: 0;
                        border-radius: 6px;
                        position: relative;
                        display: flex;
                        flex-direction: column;
                        flex-wrap: nowrap;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;

                        .name-add {
                            color: #ffffff;
                            font-weight: 600;
                            font-family: 'Poppins';
                            font-size: 13px;
                        }

                        img {
                            width: 60px;
                            margin-bottom: 0.5em;
                        }

                        .comment-form-media__hint {
                            font-size: 11px;
                            color: #ffffffb0;
                        }
                    }

                    .sf-review-media-item {
                        position: relative;
                        margin: 0.5em 0.75em 0.5em 0;

                        .sf-review-media-item__thumb {
                            height: auto;
                            min-width: 90px;
                            width: 90px;
                            aspect-ratio: 3 / 4 !important;
                            max-width: unset;
                            max-height: unset;
                            object-fit: cover;
                            padding: 0;
                            border-radius: 6px;
                            display: block;
                            position: relative;
                            margin: 0 !important;
                            background: linear-gradient(140deg, rgba(0, 0, 0, 0.18) 0%, rgb(0 0 0 / 35%) 100%);
                        }

                        .sf-review-media-item__remove::before {
                            content: '';
                            position: absolute;
                            background: url(../../images/stark-frame/com-pho-del-o.svg);
                            background-size: cover;
                            width: 22px;
                            height: 22px;
                            top: 0;
                            right: 0;
                            z-index: 99;
                            opacity: 1;
                        }

                        .sf-review-media-item__remove {
                            position: absolute;
                            top: -6px;
                            right: -7px;
                            height: 22px;
                            width: 22px;
                            cursor: pointer;
                        }
                    }
                }
            }
        }
    }

    .sf-review-form-submit {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5em;
        padding: 0.75em 0;
        z-index: 9;
        margin: 0px 1em;
        border-top: 1.5px solid rgba(255, 255, 255, 0.32);

        button {
            width: 100%;
            background: #00000075;
            color: #fff;
            padding: 0px 15px;
            height: 2.5em;
            border-radius: 10px;
            font-family: 'Poppins';
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
        }
    }
}

.sf-review-success {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75em;
    max-height: 100%;
    height: 100%;
    grid-template-rows: 1fr min-content;
    margin-bottom: 0;

    .sf-review-success__content {
        overflow-y: scroll;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: #00000052 transparent;
        border-bottom: 0.1em solid #ffffff52;
        padding: 0.75em 0.5em 1.5em 0;
        gap: 1.5em;
        display: grid;
        grid-auto-rows: min-content;
        grid-template-columns: 1fr;
        align-content: start;

        .sf-review-success__title {
            margin: 0;
            text-align: center;
            font-size: 22px;
        }

        .sf-review-success__lottie {
            justify-self: center;
            background: #ffffff42;
            border-radius: 50%;
            width: 300px;
            aspect-ratio: 1 / 1;

            lottie-player {
                width: 285px;
            }
        }

        .sf-review-success__text {
            text-align: center;
            font-size: 14px;
        }
    }

    .sf-review-form-submit {
        padding: 0 0 0.75em;
        z-index: 9;
        margin: 0;
        display: inline-flex;
        gap: 0.5em;
        flex-direction: row;
        flex-wrap: nowrap;

        button {
            width: 100%;
            background: #00000075;
            color: #fff;
            padding: 0px 15px;
            height: 2.5em;
            border-radius: 10px;
            font-family: 'Poppins';
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
        }
    }
}

@media screen and (max-width: 600px) {

    .sf-review-form {

        .sf-review-form__field-cont {
            scrollbar-width: thin !important;
            padding: 0.75em 1em !important;
        }
    }
}
