.tools-tabbar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    background: #262626;
    pointer-events: auto;
}

.tools-tabbar.is-open {
    display: flex;
}

.tools-tabbar__btn {
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    background: #262626;
    cursor: pointer;
}

.tools-tabbar__row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tools-tabbar__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    display: none;
}

.tools-tabbar.has-secondary .tools-tabbar__divider {
    display: block;
}

.tools-tabbar__row--secondary {
    display: none;
}

.tools-tabbar.has-secondary .tools-tabbar__row--secondary {
    display: flex;
}

.tools-tabbar__spacer {
    flex: 1;
}

.tools-tabbar__btn--icon {
    padding: 10px;
}

.tools-tabbar__btn--icon .map-control-btn__label {
    display: none;
}

.tools-tabbar__btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.tools-tabbar__btn .map-control-btn__inner {
    height: auto;
    width: auto;
    flex-direction: row;
    gap: 8px;
}

.tools-tabbar__btn .map-control-btn__label {
    font-size: 10px;
    line-height: 1;
}

.tools-tabbar__btn .map-control-btn__icon img {
    width: 18px;
    height: 18px;
}

.tools-tabbar__btn.map-control-btn--active .map-control-btn__icon img {
    filter: invert(33%) sepia(94%) saturate(2466%) hue-rotate(196deg) brightness(101%) contrast(103%);
}

.img-upside-down {
    transform: scaleY(-1);
}