.input {
    line-height: 1.5;
    /* Such that the total height of the element lands on a sensible number: https://jxnblk.github.io/formula/ */
    padding: 0.1875em 0.625em;

    /* Explicitly set these in case browsers set their own defaults. */
    border-radius: 0;
    color: var(--color-fg-default);

    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
    font-size: inherit;

    vertical-align: baseline;

    appearance: none;
    -webkit-appearance: none;

    width: 100%;
}
.input--lg {
    padding: 0.4375em 0.625em;
}

.select {
    box-sizing: border-box;

    /* Explicitly set these in case browsers set their own defaults. */
    border-radius: 0;
    color: var(--color-fg-default);

    padding: 0.1875em 1.5em 0.1875em 0.625em;
    line-height: 1.5;

    width: 100%;
}
.select--lg {
    padding: 0.4375em 1.5em 0.4375em 0.625em;
}
.select:not([multiple]) {
    /* Style the select element consistently across browsers. */
    /* Do not apply this styling to selects with the "multiple" attribute. */
    background-image: url("data:image/svg+xml,%3Csvg id='down' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='square' stroke-linejoin='bevel' style='display: block%3B'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    -webkit-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right;
}
.select option, .select optgroup {
    /* Some browsers (e.g., Chrome) will make options take on the color of its select element. */
    color: var(--color-fg-default);
}
.select option:disabled {
    /* Some browsers (e.g., Chrome) do not provide a default styling for disabled options. */
    color: var(--color-fg-subtle);
}

.input, .select {
    background-color: var(--color-bg-default);
    border: 1px solid var(--color-input-border);
    transition: .2s linear;
    transition-property: color, background-color, box-shadow, border-color;
    max-width: 100%;
}
.input:focus, .select:focus {
    background-color: var(--color-bg-default);
    border-color: var(--color-primary-light);
    outline: none;
    box-shadow: inset 0 0 0 1px transparent;
}
.input:focus-visible, .select:focus-visible {
    border-color: var(--color-primary-light);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--color-primary-light);
}
.input::file-selector-button {
    /* Explicitly set color - some browsers set a default color. */
    color: var(--color-fg-default);

    border: none;
    pointer-events: none;
    margin: -0.625em 0.625em -0.625em -0.625em;
    padding: 0.625em;
}

.Radio {
    --radio-input-size: 1em;
    position: relative;
}
    .Radio--lg .Radio_label {
        padding: 0.4375em 0.625em 0.4375em calc(0.625em + var(--radio-input-size) + 0.625em);
    }
    .Radio--lg .Radio_input {
        margin-top: 0.75em;
    }
    .Radio_label {
        display: inline-block;
        border: 1px solid var(--color-input-border);
        padding: 0.1875em 0.625em 0.1875em calc(0.625em + var(--radio-input-size) + 0.625em);
        background-color: var(--color-bg-default);
        width: 100%;
    }
    .Radio_input {
        position: absolute;
        appearance: none;
        -webkit-appearance: none;
        border-radius: 50%;
        height: var(--radio-input-size);
        width: var(--radio-input-size);
        margin-top: 0.5em;
        margin-left: 0.625em;
        background-color: white;
        cursor: pointer;
    }
    .Radio_input:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: white;
    }
    .Radio_input:checked {
        background-color: var(--color-radio-checked);
    }
    :checked + .Radio_label {
        background-color: var(--color-radio-checked-label);
    }

.Check {
    --check-input-size: 1em;
    position: relative;
}
    .Check--lg .Check_label {
        padding: 0.4375em 0.625em 0.4375em calc(0.625em + var(--check-input-size) + 0.625em);
    }
    .Check--lg .Check_input {
        margin-top: 0.75em;
    }
    .Check_label {
        display: inline-block;
        border: 1px solid var(--color-input-border);
        padding: 0.1875em 0.625em 0.1875em calc(0.625em + var(--check-input-size) + 0.625em);
        background-color: var(--color-bg-default);
        width: 100%;
    }
    .Check_input {
        position: absolute;
        appearance: none;
        -webkit-appearance: none;
        height: var(--check-input-size);
        width: var(--check-input-size);
        background-color: white;
        margin-top: 0.5em;
        margin-left: 0.625em;
        cursor: pointer;
    }
    .Check_input:checked {
        background-color: var(--color-check-checked);
    }
    .Check_input:checked:after {
        content: '\2713';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-45%, -50%);
        color: white;
    }
    :checked + .Check_label {
        background-color: var(--color-check-checked-label);
    }

.Check_input, .Radio_input {
    background-color: var(--color-bg-default);
    border: 1px solid var(--color-input-border);
    transition: .1s linear;
    transition-property: color, background-color, border-color;
}
.Check_input:disabled, .Radio_input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input:disabled, .select:disabled, .select--disabled, .Check_input:disabled + .Check_label, .Radio_input:disabled + .Radio_label {
    color: var(--color-fg-subtle);
    background-color: var(--color-input-disabled-bg);
    cursor: not-allowed;
}