/* Keep the original label in layout so loading feedback never resizes a button. */
button.is-submitting {
    position: relative;
    color: transparent !important;
    cursor: wait;
}

button.is-submitting > * {
    visibility: hidden;
}

button.is-submitting::after {
    content: 'Submitting...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--submit-foreground, #fff);
    white-space: nowrap;
    pointer-events: none;
}

.form-submit-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
