:root {
    --site-blue-button: #0074d4;
    --site-blue-button-hover: #005ebb;
    --site-blue-button-shadow: inset 0 0 0 1px rgb(50 50 93 / 10%), 0 2px 5px rgb(50 50 93 / 10%), 0 1px 1px rgb(0 0 0 / 7%);
    --site-blue-button-shadow-hover: inset 0 0 0 1px rgb(50 50 93 / 10%), 0 6px 15px rgb(50 50 93 / 20%), 0 2px 2px rgb(0 0 0 / 10%);
    --site-blue-button-shadow-focus: inset 0 0 0 1px rgb(50 50 93 / 10%), 0 6px 15px rgb(50 50 93 / 20%), 0 2px 2px rgb(0 0 0 / 10%), 0 0 0 1px #9fd7ff, 0 0 0 3px #5b8fc9;
}

/* Use submit-button--custom for destructive actions and administrative utilities. */
:is(body.public-site, body[data-submit-theme="blue"])
    :is(button[type="submit"], input[type="submit"]):not(.submit-button--custom) {
    border: 0;
    border-radius: 6px;
    background: var(--site-blue-button);
    box-shadow: var(--site-blue-button-shadow);
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.08s ease-in;
}

:is(body.public-site, body[data-submit-theme="blue"])
    :is(button[type="submit"], input[type="submit"]):not(.submit-button--custom):hover:not(:disabled) {
    background: var(--site-blue-button-hover);
    box-shadow: var(--site-blue-button-shadow-hover);
}

:is(body.public-site, body[data-submit-theme="blue"])
    :is(button[type="submit"], input[type="submit"]):not(.submit-button--custom):focus-visible {
    outline: none;
    box-shadow: var(--site-blue-button-shadow-focus);
}

:is(body.public-site, body[data-submit-theme="blue"])
    :is(button[type="submit"], input[type="submit"]):not(.submit-button--custom):disabled {
    background: #ccc;
    box-shadow: none;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
    :is(body.public-site, body[data-submit-theme="blue"])
        :is(button[type="submit"], input[type="submit"]):not(.submit-button--custom) {
        transition: none;
    }
}
