/** ===== Comment Template ===== **/
.comments-area {
    margin-top: 80px;

    .comments-title,
    .comment-reply-title {
        position: relative;
        font-size: 28px;
        padding: 0 0 15px;
        margin: 0 0 40px;

        &::before,
        &::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 60px;
            height: 1px;
            background-color: $color-primary;
        }

        &::after {
            width: 5px;
            left: 45px;
            background-color: $color-white;
            z-index: 2;
        }
    }

    .comment-respond {
        .comment-notes {
            display: none;
        }

        form {
            display: flex;
            flex-wrap: wrap;
        }

        .comment-form-comment,
        .comment-form-url,
        .comment-form-cookies-consent,
        .comment-form-author,
        .comment-form-email {
            margin-bottom: 30px;
        }

        .comment-form-comment,
        .comment-form-url,
        .comment-form-cookies-consent {
            flex: 0 0 100%;
        }

        .comment-form-author,
        .comment-form-email {
            flex: 0 0 50%;
            order: -2;

            @include respond-below(c480) {
                flex: 0 0 100%;
            }
        }

        .comment-form-url {
            order: -1;
        }

        .comment-form-author {
            padding-right: 15px;

            @include respond-below(c480) {
                padding: 0;
            }
        }

        .comment-form-email {
            padding-left: 15px;

            @include respond-below(c480) {
                padding: 0;
            }
        }

        .comment-form-cookies-consent {
            display: flex;
            align-items: flex-start;
            line-height: 1.4;

            #wp-comment-cookies-consent {
                flex: 0 0 auto;
                margin-right: 10px;
                position: relative;
                top: 3px;
            }
        }

        .form-submit {
            margin: 0;
        }

        .logged-in-as {
            font-weight: 500;
            flex: 0 0 100%;
            margin: -15px 0 20px;

            a {
                color: $color-heading;

                &:hover {
                    color: $color-primary;
                }
            }
        }

        input:not([type="submit"]),
        textarea {
            border: {
                width: 0 0 2px 0;
                color: #ebebeb;
                radius: 0;
            }
            padding: 0 25px;
            background-color: transparent;

            &:focus {
                background-color: #fbfbfb;
            }
        }

        textarea {
            padding-top: 25px;
            height: 140px;
        }
    }

    .comment-list {
        margin: 0 0 80px;
        padding: 0;
        list-style: none;

        li {
            &:not(:last-child) {
                margin: 0 0 40px;
                padding: 0 0 40px;
                border-bottom: 1px dashed #cecece;
            }
        }

        .children {
            margin: 0;
            padding: 0;
            list-style: none;

            li {
                &:first-child {
                    padding-top: 40px;
                    margin-top: 40px;
                    border-top: 1px dashed #cecece;
                }
            }
        }

        li.depth-2 > .comment-body {
            padding-left: calc( 100px * 1 );
        }

        li.depth-3 > .comment-body {
            padding-left: calc( 100px * 2 );
        }

        li.depth-4 > .comment-body {
            padding-left: calc( 100px * 3 );
        }

        li.depth-5 > .comment-body {
            padding-left: calc( 100px * 4 );
        }

        .comment-body {
            display: flex;

            @include respond-below(md) {
                flex-direction: column;
            }

            .comment-avatar {
                flex: 0 0 80px;
                margin-right: 20px;

                @include respond-below(md) {
                    margin-right: 0;
                    margin-bottom: 25px;
                }

                img {
                    border-radius: 50%;
                }
            }

            .comment-content {
                p:last-of-type {
                    margin: 0;
                }

                img {
                    margin: 15px 0;
                }

                li {
                    margin-bottom: 10px;
                    border: none;
                    padding: 0;
                }

                .author-info {
                    line-height: 1;
                    padding-left: 20px;
                }

                .name {
                    font-size: 18px;
                    margin: 0 0 20px;
                }

                .date {
                    line-height: 1;
                    font-size: 14px;
                    margin-bottom: 10px;
                }

                .comment-text {
                    border-radius: 5px;
                    padding: 15px 20px;
                    background-color: $color-light;
                    font: {
                        size: 15px;
                    }
                    line-height: 1.8;
                }

                .comment-reply-wrapper {
                    padding-left: 20px;
                    margin-top: 15px;
                    line-height: 1.4;
                }

                .comment-reply-link {
                    font: {
                        size: 14px;
                        weight: 500;
                    }
                    text-transform: uppercase;
                    color: $color-body;

                    &:hover {
                        color: $color-primary;
                    }
                }
            }
        }

        .comment-respond {
            margin-top: 50px;
        }
    }

    .no-comments {
        margin: 40px 0 0;
        font-weight: 600;
        color: $color-heading;
    }
}
