:root {
    --app-select-wine: #971b2f;
    --app-select-ink: #172033;
    --app-select-muted: #6d788c;
    --app-select-line: #d8dde6;
}

.app-select {
    display: block;
    min-width: 0;
    position: relative;
    width: 100%;
}

.input-group > .app-select {
    flex: 1 1 auto;
    min-width: 0;
    width: 1%;
}

.app-select-native {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.app-select-trigger {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-select-line);
    border-radius: 10px;
    color: var(--app-select-ink);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 10px;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 13px;
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    width: 100%;
}

.app-select-trigger:hover {
    border-color: #bbc2ce;
}

.app-select-trigger:focus-visible,
.app-select.is-open .app-select-trigger {
    border-color: var(--app-select-wine);
    box-shadow: 0 0 0 3px rgba(151, 27, 47, .11);
    outline: none;
}

.app-select-trigger:disabled {
    background: #f3f5f7;
    color: #9aa3b1;
    cursor: not-allowed;
}

.app-select-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-select-placeholder .app-select-value {
    color: #8c96a7;
}

.app-select-chevron {
    color: #778296;
    flex: 0 0 auto;
    font-size: .72rem;
    transition: transform .16s ease;
}

.app-select.is-open .app-select-chevron {
    color: var(--app-select-wine);
    transform: rotate(180deg);
}

.app-select-native.is-invalid + .app-select-trigger,
.was-validated .app-select-native:invalid + .app-select-trigger,
.app-select.is-invalid .app-select-trigger {
    border-color: #dc3545;
}

.app-select-native.is-valid + .app-select-trigger,
.was-validated .app-select-native:valid + .app-select-trigger {
    border-color: #198754;
}

.app-select-menu {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(23, 32, 51, .16);
    display: none;
    max-height: min(320px, calc(100vh - 24px));
    min-width: 150px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    position: fixed;
    z-index: 2000;
}

.app-select-menu.is-open {
    display: block;
}

.app-select-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #344056;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 10px;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.app-select-option:hover,
.app-select-option:focus-visible {
    background: #f7f1f3;
    color: #771625;
    outline: none;
}

.app-select-option[aria-selected="true"] {
    background: #f5e8eb;
    color: var(--app-select-wine);
    font-weight: 750;
}

.app-select-option[aria-selected="true"]::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-size: .72rem;
    font-weight: 900;
}

.app-select-option:disabled {
    color: #a5adba;
    cursor: not-allowed;
    opacity: .68;
}

.app-select-group-label {
    color: #8a94a5;
    display: block;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 9px 10px 4px;
    text-transform: uppercase;
}

.app-select-search {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eceef2;
    color: #8b95a5;
    display: flex;
    gap: 8px;
    margin: -1px -1px 5px;
    padding: 6px;
    position: sticky;
    top: -6px;
    z-index: 1;
}

.app-select-search input {
    border: 1px solid #dce0e7;
    border-radius: 8px;
    font: inherit;
    height: 38px;
    min-width: 0;
    outline: none;
    padding: 0 9px;
    width: 100%;
}

.app-select-search input:focus {
    border-color: var(--app-select-wine);
    box-shadow: 0 0 0 3px rgba(151, 27, 47, .09);
}

.app-select-empty,
.app-select-results-note {
    color: #7e899b;
    display: block;
    font-size: .74rem;
    line-height: 1.4;
    padding: 12px 10px;
    text-align: center;
}

.app-select-results-note {
    border-top: 1px solid #eceef2;
    margin-top: 5px;
}

.app-select-menu::-webkit-scrollbar { width: 7px; }
.app-select-menu::-webkit-scrollbar-track { background: transparent; }
.app-select-menu::-webkit-scrollbar-thumb { background: #d5d9e0; border: 2px solid #fff; border-radius: 8px; }

@media (max-width: 575px) {
    .app-select-menu {
        max-height: min(280px, calc(100vh - 20px));
    }
}
