.heading-comments {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heading-comments {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 24px;
}

.heading-comments .heading-h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.heading-comments .heading-h2 span {
    background: var(--thunderbird-500);
    color: var(--white);
    line-height: 24px;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
}

.heading-comments .zp-btn {
    font-size: 16px;
    padding: 0 24px;
    height: 48px;
}

.comment-respond {
    margin-top: 24px;
}

.comment-reply-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 24px;
}

.comment-reply-title .heading-h2 {
    margin-bottom: 0;
}

.comment-form {
    display: grid;
    grid-column-gap: 32px;
    grid-row-gap: 24px;
    padding: 24px;
    background: var(--mirage-100);
    border-radius: 12px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    height: 48px;
    font-size: 16px;
    padding: 0 12px;
    background: var(--mirage-50);
    border-radius: 16px;
    border: 1px solid transparent;
    outline: none;
    transition: border ease .1s;
}

.comment-form textarea {
    height: 160px;
    padding: 12px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: var(--blue-violet-500);
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form textarea::placeholder {
    color: var(--mirage-300);
}

.comment-form p {
    margin-bottom: 0;
}

.form-error {
    width: 100%;
    color: var(--thunderbird-500);
    font-weight: 600;
}

.comment-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-rating label {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
}

.comment-star-rating {
    display: flex;
    align-items: center;
}

.comment-star-rating svg {
    width: 32px;
    height: 32px;
    color: var(--mirage-300);
    cursor: pointer;
    transition: color ease .1s, fill ease .1s;
}

.comment-star-rating svg.active,
.comment-star-rating svg.show {
    color: var(--blue-violet-500);
    fill: var(--blue-violet-500);
}

input.comment-submit {
    width: auto;
    padding: 0 24px;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    background: var(--blue-violet-500);
    border-radius: 8px;
    cursor: pointer;
    transition: background ease .1s;
}

input.comment-submit:hover {
    background: var(--blue-violet-600);
}

.commentlist li:not(:last-child) {
    margin-bottom: 12px;
}

.commentlist li .comment-respond {
    padding-left: 24px;
}

.commentlist > li ol {
    position: relative;
    padding-left: 12px;
    margin: 12px 0 0 12px;
    border-left: 2px dashed var(--mirage-100);
}

.comment-wrapper {
    padding: 24px;
    background: var(--mirage-100);
    border-radius: 12px;
}

.comment-header {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    grid-gap: 12px;
    margin-bottom: 24px;
}

.comment-avatar {
    height: 48px;
    border: 1px solid var(--mirage-400);
    overflow: hidden;
    border-radius: 12px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-title {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.comment-body {
    font-size: 16px;
    color: var(--grey);
    line-height: 24px;
    margin-bottom: 24px;
}

.comment-awaiting-moderation {
    color: var(--blue-violet-500);
    font-weight: 600;
}

.comment-footer__reply {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.comment-footer__reply a,
#cancel-comment-reply-link {
    color: var(--blue-violet-500);
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
    border-bottom: 1px dashed var(--blue-violet-500);
    transition: color ease .1s, border ease .1s;
}

.comment-footer__reply a:hover,
#cancel-comment-reply-link:hover {
    color: var(--blue-violet-700);
    border-color: var(--blue-violet-700);
}

.comment-reply-count {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 40px;
    color: var(--blue-violet-500);
    border: 1px solid var(--blue-violet-200);
    border-radius: 8px;
}

@media (max-width: 576px) {
    .heading-comments .zp-btn {
        height: 40px;
        padding: 0 16px;
     }
    
    .commentlist > li ol {
        margin-left: 4px;
        padding-left: 4px;
    }

    .comment-rating {
        order: 0;
    }

    .comment-form-author {
        order: 1;
    }

    .comment-form-email {
        order: 2;
    }

    .comment-form-comment {
        order: 3;
    }

    .form-submit {
        order: 4;
    }

    .comment-notes {
        order: 5;
    }
}

@media (min-width: 577px) {
    .comment-rating {
        grid-area: 1 / 1 / 2 / 3;
    }

    .comment-form-author {
        grid-area: 2 / 1 / 3 / 2;
    }

    .comment-form-email {
        grid-area: 2 / 2 / 3 / 3;
    }

    .comment-form-comment {
        grid-area: 3 / 1 / 4 / 3;
    }

    .form-submit {
        grid-area: 4 / 1 / 5 / 3;
    }
    
    .comment-notes {
        grid-area: 5 / 1 / 6 / 3;
    }
}