/*
 * Location picker (Location::components.picker, module/location/js/location-picker.js).
 * The search forms and the vendor dashboard already style .smart-search .bc-autocomplete;
 * this adds the hierarchy line and keyboard highlight on top, plus a complete look for
 * the --standalone variant used in the admin, where nothing else styles it.
 */
.bc-location-picker .bc-location-menu .item {
    display: flex;
    align-items: flex-start;
}
.bc-location-picker .bc-location-menu .item i {
    flex: none;
}
.bc-location-picker .bc-location-text {
    display: block;
    min-width: 0;
}
.bc-location-picker .bc-location-name strong,
.bc-location-picker .bc-location-menu .item.selected .bc-location-name {
    font-weight: 600;
}
.bc-location-picker .bc-location-path {
    display: block;
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.4;
    color: #6c757d;
}
.bc-location-picker .bc-location-menu .item.active {
    background: rgba(14, 127, 178, .12);
    box-shadow: inset 3px 0 0 #0e7fb2;
}
.bc-location-picker .bc-location-hint {
    padding: 8px 15px;
    font-size: 12px;
    color: #6c757d;
}
/* The vendor dashboard's small-screen rule shifts the menu 55px left, which suits
   the search forms' icon column but not this plain field. */
.bc_wrap .bc_user_profile .form-group-smart-search .smart-search.bc-location-picker .bc-location-menu {
    left: 0;
    right: 0;
}

.bc-location-picker--standalone {
    position: relative;
}
.bc-location-picker--standalone .parent_text {
    padding-right: 28px;
}
.bc-location-picker--standalone::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    margin-top: -2px;
    border-top: 5px solid #6c757d;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    pointer-events: none;
}
.bc-location-picker--standalone .bc-location-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 2px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.bc-location-picker--standalone .bc-location-menu.show {
    display: block;
}
.bc-location-picker--standalone .bc-location-menu .item {
    padding: 8px 12px;
    cursor: pointer;
}
.bc-location-picker--standalone .bc-location-menu .item:hover {
    background: #f5f5f5;
}
.bc-location-picker--standalone .bc-location-menu .item i {
    position: relative;
    top: 2px;
    margin-right: 6px;
    color: #888;
}
.bc-location-picker--standalone .bc-location-hint {
    padding: 8px 12px;
}
