.select-control {
    position: relative;
    width: 100%;
    min-width: 0;
}

.enhanced-select {
    display: none;
}

.select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    text-align: left;
    background: var(--white);
    border: 1px solid #cdd3d6;
    border-radius: var(--radius);
    gap: 12px;
}

.select-button::after {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
}

.select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(420px, 85vw);
    max-height: 300px;
    overflow-y: auto;
    z-index: 30;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px #222b3020;
    border-radius: var(--radius);
    padding: 5px;
}

.select-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 13px;
    border: 0;
    background: white;
}

.select-options.is-right {
    left: auto;
    right: 0;
}

.select-options.is-above {
    top: auto;
    bottom: calc(100% + 4px);
}

.select-option:hover,
.select-option:focus,
.select-option[aria-selected="true"] {
    background: var(--brand-pale);
    color: var(--brand);
}
