/* Keep the pending state visible with each button theme. */
[data-post-pending]:disabled,
[data-upload-disabled]:disabled {
    background: #e2e5e9 !important;
    border-color: #adb5bf !important;
    color: #34404f !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: none !important;
    cursor: wait;
}

.post-submit-status::before {
    content: "";
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-inline-end: 0.4em;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    vertical-align: -0.1em;
    animation: post-submit-spin 0.85s linear infinite;
}

@keyframes post-submit-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .post-submit-status::before { animation: none; }
}
