.floatingButtonWrap {
    display: block;
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999999999;
}

.floatingButtonInner {
    position: relative;
}

.floatingButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff !important;
    position: absolute;
    border-radius: 50%;
    bottom: 0;
    right: 0;
    z-index: 2;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
}

.floatingButton .icon-message,
.floatingButton .fa-close {
    transition: all .3s;
}

.floatingButton .fa-close {
    transform: rotate(-90deg);
}

.floatingButton.open .fa-close {
    transform: rotate(0deg);
}

.floatingButton::before,
.floatingButton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    z-index: -1;
    animation: pulseLines 2s linear infinite;
}

.floatingButton::after {
    animation-delay: 1s;
}

@keyframes pulseLines {
    0% {
        width: 60px;
        height: 60px;
        opacity: .8;
    }
    100% {
        width: 110px;
        height: 110px;
        opacity: 0;
    }
}

/* Изменено: Меню теперь позиционируется над кнопкой и выстраивается в столбик */
.floatingMenu {
    position: absolute;
    bottom: 75px;
    right: 4px;
    display: flex;
    flex-direction: column-reverse;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    visibility: hidden;
    pointer-events: none;
}

.floatingButton.open + .floatingMenu {
    visibility: visible;
    pointer-events: auto;
}

/* Изменено: Анимация появления переведена на вертикальную ось Y */
.floatingMenu li {
    margin-bottom: 10px;
    margin-right: 0;
    opacity: 0;
    transform: translateY(40px) scale(.5);
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
}

.floatingButton.open + .floatingMenu li {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Задержки появления для всех 4-х кнопок мессенджеров */
.floatingButton.open + .floatingMenu li:nth-child(1) { transition-delay: .05s; }
.floatingButton.open + .floatingMenu li:nth-child(2) { transition-delay: .1s; }
.floatingButton.open + .floatingMenu li:nth-child(3) { transition-delay: .15s; }
.floatingButton.open + .floatingMenu li:nth-child(4) { transition-delay: .2s; }

.floatingMenu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.floatingMenu li a:hover {
    transform: scale(1.08); /* Изменено: наведение теперь просто слегка увеличивает кнопку */
    filter: brightness(1.1);
}

.floatingMenu li a svg {
    width: 32px;
    height: 32px;
}
