.location-tree-widget {
    margin-bottom: 16px;
    margin-top: 12px;
}

.location-tree-search {
    margin-bottom: 10px;
}

ul.location-tree,
ul.location-tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.location-tree {
    background-color: white;
    padding-top: 15px;
    padding-bottom: 10px;
    padding-left: 10px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
}

ul.location-tree-children {
    padding-left: 18px;
}

.location-tree-node {
    display: block;
}

.location-tree-toggle,
.location-tree-toggle-spacer {
    display: inline-block;
    width: 18px;
    text-align: center;
}

.location-tree-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #767a86;
}

/* Plain CSS triangle so the toggle never depends on an icon font that may
   not be loaded on the front-end theme (unlike the admin panel's Tabler
   icons). */
.location-tree-toggle::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #767a86;
    transition: transform 0.15s ease;
    vertical-align: middle;
}

.location-tree-toggle.expanded::before {
    transform: rotate(90deg);
}

.location-tree-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    font-weight: normal;
}

.location-tree-count {
    color: #767a86;
    font-size: 13px;
}

.location-tree-all-option .location-tree-name {
    font-style: italic;
    color: #767a86;
}

.location-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.location-filter-chips .chip-group-label {
    font-weight: 600;
    font-size: 13px;
    color: #767a86;
}

.location-filter-chips .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f4f6;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
}

.location-filter-chips .chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: #767a86;
}

.location-filter-chips .chip-clear-all {
    background: none;
    border: none;
    color: var(--tp-primary-color, #e04a4a);
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
}
