.bx-context-toolbar-empty-area {
    min-width: 12px;
}

#bitrix-panel-wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    transform: translateY(calc(-100% + 15px));
    transition: transform 150ms linear;
}

#bitrix-panel-wrap:hover {
    transform: translateY(0);
}

.header-mobile__buttons {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.header-mobile__burger,
.header-mobile__cross {
    position: absolute;
    top: 50%;
    right: 0;
    left: auto;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
}

.header-mobile__burger svg,
.header-mobile__cross svg {
    width: 22px;
    height: 22px;
}

.modal-mobile-menu__top-link--profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
}

.modal-mobile-menu__top-link--profile svg,
.modal-mobile-menu__top-link--profile .i-user {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

@media (max-width: 480px) {
    .header-mobile__burger,
    .header-mobile__cross {
        width: 44px;
        height: 44px;
    }

    .header-mobile__burger svg,
    .header-mobile__cross svg {
        width: 24px;
        height: 24px;
    }
}

.city-confirm {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(25, 30, 40, 0.14);
}

.city-confirm__text {
    color: #252932;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.city-confirm__actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.city-confirm__btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #ffffff;
    color: #252932;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.city-confirm__btn--primary {
    border-color: #e30613;
    background: #e30613;
    color: #ffffff;
}

.city-confirm__btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

body:has(.modal--active) .city-confirm {
    display: none;
}

@media (max-width: 767px) {
    .city-confirm {
        right: 16px;
        bottom: calc(var(--mobile-nav-height, 0px) + 16px);
        left: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .city-confirm__actions {
        width: 100%;
    }

    .city-confirm__btn {
        flex: 1 1 0;
    }
}
