.location-dropdown-field {
    position: relative;
}

.location-dropdown-field-input {
    height: 1px;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 2rem;
    width: 1px;
}

.location-dropdown-field-toggle {
    align-items: center;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    text-align: left;
    width: 100%;
}

.location-dropdown-field-toggle .dropdown-btn-label {
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-dropdown-field-toggle .dropdown-btn-label:not(.selected) {
    color: var(--gray);
}

.location-dropdown-field-toggle .chev-up {
    display: none;
}

.location-dropdown-field-toggle.active .chev-down {
    display: none;
}

.location-dropdown-field-toggle.active .chev-up {
    display: flex;
}

.location-dropdown-field-content {
    background-color: #fff;
    left: 0;
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 3;
}

.location-dropdown-field-item {
    background-color: #fff;
    border: 0;
    border-bottom: 1px solid var(--gray);
    border-left: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
    color: inherit;
    font-weight: 400;
    text-align: left;
    width: 100%;
}

.location-dropdown-field-item:hover,
.location-dropdown-field-item:focus,
.location-dropdown-field-item.active,
.location-dropdown-field-item span:hover {
    background-color: #c4c4c4;
    color: inherit;
    opacity: 1;
    outline: none;
}

.was-validated
    .location-dropdown-field-input:invalid
    ~ .location-dropdown-field-toggle,
.location-dropdown-field-input.is-invalid ~ .location-dropdown-field-toggle {
    border-color: var(--error);
}
