.app-custom-select {
    position: relative;
    display: inline-block;
    min-width: 92px;
}

.app-custom-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.app-custom-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 36px;
    padding: 7px 10px 7px 12px;
    gap: 12px;
    color: var(--ink, #19231e);
    background: var(--white, #fff);
    border: 1px solid #cbd5cf;
    border-radius: 8px;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.app-custom-select-button:hover,
.app-custom-select-button[aria-expanded="true"] {
    color: var(--green-700, #2d6a4f);
    background: var(--green-50, #f2f7f4);
    border-color: #a9c8b8;
}

.app-custom-select-button:focus-visible {
    border-color: var(--green-700, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.13);
    outline: 0;
}

.app-custom-select.has-error .app-custom-select-button,
.app-custom-select-button[aria-invalid="true"] {
    border-color: #c86a6a;
}

.app-custom-select-button svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 150ms ease;
}

.app-custom-select-button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.app-custom-select-menu {
    position: fixed;
    z-index: 140;
    display: grid;
    max-height: min(280px, calc(100vh - 24px));
    padding: 5px;
    gap: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white, #fff);
    border: 1px solid #d4dfd9;
    border-radius: 9px;
    box-shadow: 0 14px 38px rgba(16, 42, 31, 0.2);
}

.app-custom-select-menu[hidden] {
    display: none;
}

.app-custom-select-options {
    display: grid;
    gap: 2px;
}

.app-custom-select-search-wrap {
    position: sticky;
    z-index: 2;
    top: -5px;
    padding: 5px 3px 7px;
    background: var(--white, #fff);
}

.app-custom-select-search {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--ink, #19231e);
    background: #f8faf9;
    border: 1px solid #cbd8d1;
    border-radius: 7px;
    font: inherit;
    font-size: 0.74rem;
    outline: 0;
}

.app-custom-select-search:focus {
    background: var(--white, #fff);
    border-color: var(--green-700, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.11);
}

.app-custom-select-empty {
    padding: 13px 10px;
    margin: 0;
    color: #78857e;
    font-size: 0.7rem;
    text-align: center;
}

.app-custom-select-empty[hidden] {
    display: none;
}

.app-custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    gap: 9px;
    color: #415149;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 650;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}

.app-custom-select-option[hidden] {
    display: none;
}

.app-custom-select-option:hover,
.app-custom-select-option:focus-visible {
    color: var(--green-700, #2d6a4f);
    background: var(--green-50, #f2f7f4);
    outline: 0;
}

.app-custom-select-option:disabled {
    color: #9aa49e;
    cursor: not-allowed;
}

.app-custom-select-option[aria-selected="true"] {
    color: #fff;
    background: var(--green-700, #2d6a4f);
}

.app-custom-select-option[aria-selected="true"]::after {
    flex: 0 0 auto;
    content: "✓";
    font-weight: 850;
}
