/* Public forms share the existing input treatment. Loaded only outside dashboards.
 * Keep field widths, heights and spacing in their existing layout components.
 * The specificity/important declarations supersede older page-specific resets.
 */
html body :is(
    input:not([type]),
    input[type="text"], input[type="search"], input[type="email"],
    input[type="password"], input[type="number"], input[type="tel"],
    input[type="url"], input[type="date"], input[type="datetime-local"],
    input[type="month"], input[type="week"], input[type="time"], textarea,
    select:not(.listing_type):not(.select2-hidden-accessible):not(#ot-languages):not(.currency-switcher),
    .select2-container.select2-container--default:not(.dval-language-selector *) .select2-selection
):not(.select2-search__field):not(.note-editor *):not(.currency-switcher *):not(#footer *) {
    border: 1px solid #dfe3ed !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .12) !important;
    background-color: #fff;
}

html body .select2-container.select2-container--default:not(.dval-language-selector *) .select2-selection--single {
    height: 48px !important;
    min-height: 48px !important;
    box-sizing: border-box;
}

html body .select2-container.select2-container--default:not(.dval-language-selector *) .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-inline-start: 20px !important;
    padding-inline-end: 34px !important;
    font-size: 16px;
    font-weight: 500;
    color: #808080;
}

html body .select2-container.select2-container--default:not(.dval-language-selector *) .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

html body .select2-container.select2-container--default:not(.dval-language-selector *) .select2-selection--multiple {
    min-height: 48px;
}

/* Search inside a dropdown and inline multi-select searches are not outer fields. */
html body .select2-container .select2-search--inline .select2-search__field {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
}
