.wpwhub-comments {
    width: min(920px, calc(100% - 56px));
    margin: 0 auto 72px;
    padding-top: 48px;
    border-top: 1px solid #e7e7e3;
    color: #111;
}

.wpwhub-comments,
.wpwhub-comments * {
    box-sizing: border-box;
}

.wpwhub-comments__heading {
    margin-bottom: 28px;
}

.wpwhub-comments__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #999;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wpwhub-comments h2,
.wpwhub-comments h3 {
    margin: 0;
    color: #111;
    line-height: 1.15;
}

.wpwhub-comments h2 {
    font-size: clamp(24px, 3vw, 38px);
}

.wpwhub-comments__empty {
    margin: 0 0 28px;
    color: #737373;
    font-size: 13px;
}

.wpwhub-comments__list,
.wpwhub-comments__list .children {
    list-style: none;
}

.wpwhub-comments__list {
    display: grid;
    gap: 16px;
    margin: 0 0 34px;
    padding: 0;
}

.wpwhub-comments__list li {
    margin: 0;
}

.wpwhub-comments__list .children {
    display: grid;
    gap: 14px;
    margin: 16px 0 0 28px;
    padding: 0 0 0 18px;
    border-left: 1px solid #e7e7e3;
}

.wpwhub-comments__list .comment-body {
    padding: 20px 22px;
    border: 1px solid #e7e7e3;
    border-radius: 16px;
    background: #fff;
}

.wpwhub-comments__list .comment-meta {
    padding: 0;
    border: 0 !important;
}

.wpwhub-comments__list .comment-author {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    font-weight: 800;
}

.wpwhub-comments__list .comment-author .says {
    display: none;
}

.wpwhub-comments__list .comment-author .fn {
    font-style: normal;
}

.wpwhub-comments__list .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.wpwhub-comments__list .comment-metadata {
    margin: -6px 0 14px 49px;
    color: #999;
    font-size: 10px;
}

.wpwhub-comments__list .comment-metadata a {
    color: inherit;
}

.wpwhub-comments__list .comment-content {
    margin-left: 49px;
    color: #505050;
    font-size: 14px;
    line-height: 1.65;
}

.wpwhub-comments__list .comment-content p {
    margin-top: 0;
}

.wpwhub-comments__list .comment-content p:last-child {
    margin-bottom: 0;
}

.wpwhub-comments__list .reply {
    margin: 13px 0 0 49px;
    font-size: 11px;
    font-weight: 800;
}

.wpwhub-comments__list .reply a {
    color: #111;
    text-decoration: none;
}

.wpwhub-comments__list .reply a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wpwhub-google-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 26px;
    border: 1px solid #e7e7e3;
    border-radius: 16px;
    background: #f4f4f1;
}

.wpwhub-google-login h3 {
    margin-bottom: 7px;
    font-size: 18px;
}

.wpwhub-google-login p {
    margin: 0;
    color: #737373;
    font-size: 12px;
    line-height: 1.6;
}

.wpwhub-google-status {
    grid-column: 1 / -1;
    min-height: 0;
}

.wpwhub-google-status:not(:empty) {
    min-height: 18px;
    margin-top: -8px;
}

.wpwhub-google-button {
    width: min(320px, 100%);
    min-height: 40px;
}

.wpwhub-google-button:empty {
    position: relative;
    overflow: hidden;
    border: 1px solid #d9d9d4;
    border-radius: 4px;
    background: #fff;
}

.wpwhub-google-button:empty::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 25%,
        rgba(0, 0, 0, .05) 50%,
        transparent 75%
    );
    content: '';
    transform: translateX(-100%);
    animation: wpwhub-google-loading 1.2s infinite;
}

@keyframes wpwhub-google-loading {
    to {
        transform: translateX(100%);
    }
}

.wpwhub-comment-form {
    margin-top: 32px;
    padding: 26px;
    border: 1px solid #e7e7e3;
    border-radius: 18px;
    background: #f4f4f1;
}

.wpwhub-comment-form .comment-reply-title {
    font-size: 20px;
}

.wpwhub-comment-form .logged-in-as {
    margin: 9px 0 20px;
    color: #737373;
    font-size: 12px;
    line-height: 1.5;
}

.wpwhub-comment-form .logged-in-as strong {
    color: #303030;
}

.wpwhub-comment-form .logged-in-as a {
    color: #505050;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wpwhub-comment-form .comment-form-comment {
    margin: 0 0 18px;
}

.wpwhub-comment-form .comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
}

.wpwhub-comment-form textarea {
    width: 100%;
    min-height: 118px;
    padding: 15px;
    border: 1px solid #d9d9d4;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}

.wpwhub-comment-form textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(200, 255, 53, .32);
}

.wpwhub-comment-form .form-submit {
    margin: 0;
}

.wpwhub-comment-submit {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #c8ff35;
    color: #111;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transition: background-color .2s, transform .2s, opacity .2s;
}

.wpwhub-comment-submit:hover:not(:disabled) {
    background: #baf020;
    transform: translateY(-1px);
}

.wpwhub-comment-submit:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.wpwhub-comment-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.wpwhub-comment-ajax-status {
    min-height: 18px;
    margin: 12px 0 0;
    color: #737373;
    font-size: 12px;
}

@media (max-width: 700px) {
    .wpwhub-comments {
        width: calc(100% - 22px);
        margin-bottom: 56px;
        padding-top: 36px;
    }

    .wpwhub-google-login {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .wpwhub-google-button {
        width: 100%;
    }

    .wpwhub-comment-form {
        padding: 20px;
    }

    .wpwhub-comments__list .comment-content,
    .wpwhub-comments__list .reply {
        margin-left: 0;
    }

    .wpwhub-comment-submit {
        width: 100%;
    }

    .wpwhub-comments__list .children {
        margin-left: 12px;
        padding-left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpwhub-comment-submit,
    .wpwhub-comment-form textarea {
        transition: none;
    }

    .wpwhub-google-button:empty::after {
        animation: none;
    }
}
