/* Styled dropdown (see assets/js/custom-select.js). The button carries the select's own classes,
 * so the look of each form (inventory filters, hero search, application, contact) is inherited. */
.vcu-select {
    position: relative;
    display: block;
}

/* The real <select> stays for forms and scripts but is invisible. */
.vcu-select__native {
    position: absolute !important;
    left: 0;
    bottom: 0;
    width: 1px !important;
    height: 1px !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.vcu-select__btn {
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcu-select__btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.vcu-select.is-open .vcu-select__btn {
    border-color: #fdd700;
    box-shadow: 0 0 0 3px rgba(253, 215, 0, 0.35);
}

.vcu-select__list {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    z-index: 1050;
    min-width: 100%;
    width: max-content;
    max-width: min(24rem, 90vw);
    max-height: 16rem;
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e9e9e7;
    border-radius: 0.6rem;
    box-shadow: 0 0.75rem 1.75rem rgba(20, 22, 26, 0.14);
}

.vcu-select__list[hidden] {
    display: none;
}

.vcu-select.is-up .vcu-select__list {
    top: auto;
    bottom: calc(100% + 0.3rem);
}

.vcu-select__opt {
    position: relative;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.92rem;
    line-height: 1.3;
    color: #14161a;
    cursor: pointer;
    white-space: nowrap;
}

.vcu-select__opt.is-active {
    background: #fff6c2;
}

.vcu-select__opt[aria-selected="true"] {
    font-weight: 700;
}

.vcu-select__opt[aria-selected="true"]::after {
    content: "";
    position: absolute;
    right: 0.7rem;
    top: 50%;
    width: 0.9rem;
    height: 0.9rem;
    transform: translateY(-50%);
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2314161A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}

.vcu-select__opt[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Scrollbar inside the list */
.vcu-select__list::-webkit-scrollbar { width: 8px; }
.vcu-select__list::-webkit-scrollbar-thumb { background: #d8dbe3; border-radius: 8px; }
