form#commentform {
    display: grid !important;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(5, auto);
    gap: 1rem 2rem;
    max-width: 100%;
    font-family: "poppins", Sans-Serif;

    @media (max-width:1024px) {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        grid-auto-rows: auto;
        gap: 1rem 0;
    }

    p {
        margin: 0 0 0 0;
        display: flex;
        flex-direction: column;
        gap:0.25rem;

        &.logged-in-as {
            flex-direction:row;
        }

        &.comment-notes {
            grid-row: 1;
            grid-column: 1 / span 3;
            flex-direction: row;
            font-size: 14px;
            line-height: 22.75px;

            @media (max-width:1024px) {
                grid-row: 1;
                grid-column: 1 / span 1;
            }
        }

        &.comment-form-comment {
            grid-row: 2;
            grid-column: 1 / span 3;

            @media (max-width:1024px) {
                grid-row: 2;
                grid-column: 1 / span 1;
            }
        }

        &.comment-form-author {
            grid-row: 3;
            grid-column: 1 / span 1;

            @media (max-width:1024px) {
                grid-row: 3;
                grid-column: 1 / span 1;
            }
        }

        &.comment-form-email {
            grid-row: 3;
            grid-column: 2 / span 1;

            @media (max-width:1024px) {
                grid-row: 4;
                grid-column: 1 / span 1;
            }
        }

        &.comment-form-url {
            grid-row: 3;
            grid-column: 3 / span 1;

            @media (max-width:1024px) {
                grid-row: 5;
                grid-column: 1 / span 1;
            }
        }

        &.comment-form-cookies-consent {
            grid-row: 4;
            grid-column: 1 / span 3;
            margin: 0 0 0 0;
            flex-direction: row;
            gap: 0.5rem;

            @media (max-width:1024px) {
                grid-row: 6;
                grid-column: 1 / span 1;
            }

            input {
                margin: 0;
            }

            label {
                text-transform: none;

            }
        }

        &.comment-form-additions {
            position: absolute;
            left: -9999px;
        }

        &.form-submit {
            grid-column: 1 / span 3;
            grid-row:6;

            @media (max-width:1024px) {
                grid-row: 7;
                grid-column: 1 / span 1;
            }

            input[type="submit"] {
                background-color: var(--e-global-color-accent);
                color: #FFF;
                font-family: "poppins", Sans-Serif;
                font-size: 1rem;
                line-height: 1.25rem;
                font-weight: 500;
                text-transform: uppercase;
                border-radius: 4px;
                padding: 1rem 2rem 0.9375rem;
                border: 0 none;
                width: max-content;
                transition: background-color 0.3s ease-in-out;

                &:hover {
                    background-color: var(--e-global-color-primary);
                    color: #FFF;
                }
            }
        }


        label {
            text-transform: uppercase;
            font-size: 0.75rem;
            line-height: 1.125rem;
        }

        textarea {
            border-radius: 3px;
            border: 1px solid #D1D1D6;
            background-color: transparent;
            padding: 0.75rem;
            font-size: 0.875rem;
            max-width: 100%;
            display: block;
            margin: 0 0 0 0;
        }

        input[type="text"],
        input[type="email"],
        input[type="url"] {
            border-radius: 3px;
            border: 1px solid #D1D1D6;
            background-color: transparent;
            padding: 0.75rem;
            font-size: 0.875rem;
            max-width: 100%;
            display: block;
            margin: 0 0 0 0;
        }
    }

    div.comment-form-rating {
        grid-row:5;
        grid-column: 1 / span 3;
        margin: 0 0 0 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        @media (max-width:1024px) {
            grid-row:5;
            grid-column: 1 / span 1;
        }

        label {
            text-transform: uppercase;
            font-size: 0.75rem;
            line-height: 1.125rem;
        }

        .star-rating {
            display: flex;
            gap: 0.5rem;

            span {
                width: max-content;
                height: max-content;

                svg {
                    width: max-content;
                    height: max-content;
                }
            }
        }
    }
}