/* Shared arrow spacing. Important declarations keep scoped page background and
   padding shorthands from restoring the native arrow or removing its inset. */
select:not([multiple]):not([size]),
select:not([multiple])[size="1"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 3rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2318353a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1rem 1rem !important;
}

.rz-dropdown,
.rz-multiselect {
    --rz-dropdown-trigger-icon-width: 1rem;
    --rz-dropdown-trigger-icon-height: 1rem;
    --rz-dropdown-trigger-icon-margin-inline: 0;
    --rz-dropdown-label-padding-inline: 0;
    justify-content: center;
    padding-inline-end: 3rem;
}

.rz-dropdown-trigger,
.rz-multiselect-trigger {
    width: 3rem;
    inset-inline-end: 0;
    justify-content: center;
}

.rz-dropdown-trigger .rzi,
.rz-multiselect-trigger .rzi {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    margin-inline: 0;
}

/* Draw the same chevron without depending on the Material icon font. */
.rz-dropdown-trigger .rzi-chevron-down::before,
.rz-multiselect-trigger .rzi-chevron-down::before {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background-color: currentColor;
    mask: 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='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rz-dropdown-clear-icon {
    inset-inline-end: 3rem;
}

.rz-dropdown:has(.rz-dropdown-clear-icon) {
    padding-inline-end: 4.5rem;
}

@media (forced-colors: active) {
    select:not([multiple]):not([size]),
    select:not([multiple])[size="1"] {
        appearance: auto !important;
        -webkit-appearance: auto !important;
        background-image: none !important;
    }
}

