[data-nexa-comment-thread] {
    position: relative;
}

[data-nexa-comment-thread].is-loading {
    opacity: .72;
    pointer-events: none;
}

.nexa-comment-thread-message {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
    padding: 10px 12px;
}

.nexa-comment-thread-message[hidden] {
    display: none;
}

/* Admin theme form styles override the HTML [hidden] attribute on <form>. */
[data-nexa-comment-edit-form][hidden],
[data-nexa-comment-reply-form][hidden] {
    display: none !important;
}

.nexa-comment-thread-message.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.nexa-comment-meta-action {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 2px 10px;
    text-decoration: none;
    transition: opacity .15s ease, transform .15s ease;
}

.nexa-comment-meta-action:hover,
.nexa-comment-meta-action:focus {
    opacity: .88;
    outline: 0;
    text-decoration: none;
    transform: translateY(-1px);
}

.nexa-comment-meta-action--edit {
    background: #fef3c7;
    color: #b45309;
}

.nexa-comment-meta-action--delete {
    background: #fee2e2;
    color: #b91c1c;
}

.nexa-comment-meta-action-form {
    display: inline-flex;
    margin: 0;
}

.nexa-comment-action {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    line-height: 1.2;
    min-height: 28px;
    padding: 5px 12px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.nexa-comment-action:hover,
.nexa-comment-action:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    text-decoration: none;
}

.nexa-comment-action:focus {
    box-shadow: 0 0 0 3px rgba(26, 42, 108, .16);
    outline: 0;
}

.nexa-comment-action--reply {
    background: #eef4ff;
    border-color: #c7d2fe;
    color: #1a2a6c;
}

.nexa-comment-action--reply:hover,
.nexa-comment-action--reply:focus {
    background: #e0e7ff;
    border-color: #a5b4fc;
    color: #111f5e;
}

.nexa-comment-action--danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.nexa-comment-action--danger:hover,
.nexa-comment-action--danger:focus {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.nexa-comment-action-form {
    display: inline-flex;
    margin: 0;
}

.nexa-comment-action-form .nexa-comment-action {
    margin: 0;
}
