/* Shared field caret for portal/admin selects and location autocomplete. */
:root {
    --selection-caret-inset: 16px;
    --selection-caret-size: 16px;
    --selection-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353617f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body :is(select:not([multiple]):not([size]), select:not([multiple])[size="1"], input[data-location-search]):not(:where(.ql-toolbar *, .flatpickr-calendar *)) {
    appearance: none;
    padding-right: calc(var(--selection-caret-inset) + var(--selection-caret-size) + 12px);
    background-image: var(--selection-caret);
    background-position: right var(--selection-caret-inset) center;
    background-repeat: no-repeat;
    background-size: var(--selection-caret-size) var(--selection-caret-size);
}

/* Keep high-contrast system indicators. */
@media (forced-colors: active) {
    body :is(select:not([multiple]):not([size]), select:not([multiple])[size="1"]) {
        appearance: auto;
        background-image: none;
    }
    body input[data-location-search] { background-image: none; }
}
