/* Consistent native dropdown treatment across the public and admin sites. */
:where(.portal-body, .public-body, .auth-body, .home-body) select:not([multiple]):not([size]):not([hidden]) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    padding-inline-end: 2.5rem;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%23603085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 1rem 1rem;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

:where(.portal-body, .public-body, .auth-body, .home-body) select:not([multiple]):not([size]):not([hidden]):hover:not(:disabled) {
    border-color: #b89dca;
}

:where(.portal-body, .public-body, .auth-body, .home-body) select:not([multiple]):not([size]):not([hidden]):focus-visible {
    outline: 3px solid rgba(96, 48, 133, .16);
    outline-offset: 1px;
    border-color: #75429a;
}

:where(.portal-body, .public-body, .auth-body, .home-body) select:not([multiple]):not([size]):not([hidden]):disabled {
    opacity: 1;
    cursor: not-allowed;
}

:where(.portal-body, .public-body, .auth-body, .home-body) select option {
    background: #fff;
    color: #302139;
}

@media (max-width: 1024px) {
    :where(.portal-body, .public-body, .auth-body, .home-body) select:not([multiple]):not([size]):not([hidden]) {
        min-height: 2.75rem;
        background-position: right .75rem center;
    }
}

@media (max-width: 767px) {
    :where(.portal-body, .public-body, .auth-body, .home-body) select:not([multiple]):not([size]):not([hidden]) {
        font-size: 16px !important;
    }
    :where(.portal-body, .public-body, .auth-body, .home-body) :is(.field, .filters, .form-grid) select:not([multiple]):not([size]):not([hidden]) {
        width: 100%;
    }
}

/* The compact-screen list is rendered in body so modal and panel overflow cannot clip it. */
.premium-select-menu {
    position: fixed;
    z-index: 100001;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .3rem;
    border: 1px solid #ded2e7;
    border-radius: .8rem;
    background: #fff;
    box-shadow: 0 18px 42px rgba(43, 24, 57, .2), 0 2px 8px rgba(43, 24, 57, .08);
    -webkit-overflow-scrolling: touch;
}

.premium-select-menu .premium-select-option {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: .65rem .85rem;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: #302139;
    font: inherit;
    font-size: .875rem;
    font-weight: 550;
    line-height: 1.35;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.premium-select-menu .premium-select-option:hover,
.premium-select-menu .premium-select-option:focus-visible {
    outline: none;
    background: #f5effa;
    color: #54227d;
}

.premium-select-menu .premium-select-option.is-selected {
    background: #f0e5f8;
    color: #54227d;
    font-weight: 700;
}

.premium-select-menu .premium-select-option:disabled {
    color: #9a90a1;
    cursor: not-allowed;
}

.premium-select-menu .premium-select-group {
    padding: .75rem .85rem .25rem;
    color: #81718b;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

:where(.portal-body, .public-body, .auth-body, .home-body) select.premium-select-open {
    border-color: #75429a;
    box-shadow: 0 0 0 3px rgba(96, 48, 133, .13);
}
