:root {
    --public-input-font-size: 13px;
}

@media (max-width: 767px) {
    :root {
        --public-input-font-size: 16px;
    }
}

/* Keep the security widget horizontal and centered, including narrow account forms. */
.turnstile-verification { display: flex; justify-content: center; width: 100%; min-width: 0; margin: 8px 0 14px; }
.turnstile-verification__widget { flex: 0 0 300px; width: 300px; min-width: 300px; line-height: 1.5; color: #505967; font-size: 12px; }

/* Keep typography consistent with the checkout across page, theme and plugin styles. */
input:not([type]),
input:is([type="text"], [type="search"], [type="email"], [type="password"], [type="tel"],
    [type="url"], [type="number"], [type="date"], [type="time"], [type="datetime-local"],
    [type="month"], [type="week"], [type="file"]),
select,
textarea,
.select2-selection,
.select2-selection__rendered,
.select2-dropdown {
    font-size: var(--public-input-font-size) !important;
}

:is(input, textarea)::placeholder {
    font-size: inherit !important;
}
