/* spinner overlay inside button */
.htmx-loading::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.25rem;  /* 20px */
    height: 1.25rem; /* 20px */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* make button text fade while loading */
.htmx-loading > * {
    opacity: 0.5;
}
