.area-select {
    position: relative;
}

.area-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.area-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    cursor: pointer;
    background-color: #fff;
}

.area-select-trigger:focus,
.area-select-trigger:focus-visible {
    outline: 2px solid #00aaf0;
    outline-offset: 2px;
}

.area-select-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #767676;
}

.area-select-has-value > .area-select-trigger .area-select-value {
    color: #001a37;
}

.area-select-value-description {
    font-weight: 400;
}

.area-select-arrow {
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease-in-out;
}

.area-select-open .area-select-arrow {
    transform: rotate(225deg);
}

.area-select-options {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    background-color: #fff;
    border: 1px solid #d3d3d3;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
}

.area-select-option {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 0;
    padding: 10px 20px;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.area-select-option-name {
    font-weight: 700;
}

.area-select-option-description {
    font-weight: 400;
    color: #555;
}

.area-select-option:hover,
.area-select-option-active {
    background-color: #fff4ea;
    border-left-color: #ff6000;
}

[data-color-scheme="dark"] .area-select-trigger {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

[data-color-scheme="dark"] .area-select-value {
    color: #b2b2b2;
}

[data-color-scheme="dark"] .area-select-has-value > .area-select-trigger .area-select-value {
    color: #fff;
}

[data-color-scheme="dark"] .area-select-options {
    background-color: #333;
    border-color: #555;
}

[data-color-scheme="dark"] .area-select-option-description {
    color: #ccc;
}

[data-color-scheme="dark"] .area-select-option:hover,
[data-color-scheme="dark"] .area-select-option-active {
    background-color: #444;
}
