﻿input.textbox {
    background-color: var(--surface-elevated-contrasting);
    /* Explicit: without it the text falls back to the UA field color, not a token. */
    color: var(--text-primary);
    caret-color: var(--text-primary);
    padding: 9px;
    box-sizing: border-box;
    width: 100%;
    min-width: 10em;
    outline: 0;
    border: 1px solid var(--border-soft);
}

input.textbox::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}

input.textbox:focus {
    border-color: var(--brand-primary-sharp);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary-sharp) 30%, transparent);
}

input.textbox:-webkit-autofill,
input.textbox:-webkit-autofill:hover,
input.textbox:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    caret-color: var(--text-primary);
    box-shadow: 0 0 0 1000px var(--surface-elevated-contrasting) inset;
}

/*input.textbox:focus:not([readonly]) {*/
/*    border-bottom: 1px solid #9E9E9E;*/
/*    padding-bottom: 8px;*/
/*}*/
