.sp-float-stack {
    position: fixed;
    right: 40px;
    bottom: 48px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.sp-float-stack #arrowTop {
    position: static;
    right: auto;
    bottom: auto;
    flex-shrink: 0;
}

.sp-float-stack #arrowTop[hidden] {
    display: none !important;
}

.sp-contact-float {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.sp-contact-float__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.sp-contact-float__actions[hidden] {
    display: none !important;
}

.sp-contact-float__item,
.sp-contact-float__toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.sp-contact-float__icon,
.sp-contact-float__toggle {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.16);
    flex-shrink: 0;
}

.sp-contact-float__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.sp-contact-float__icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.sp-contact-float__toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4a5fe6;
    color: #f7f7f7;
    transform-origin: center;
    transition: background-color 0.2s ease;
}

.sp-contact-float__toggle.is-wiggle {
    animation: sp-contact-wiggle 0.7s ease-in-out;
}

.sp-contact-float.is-open .sp-contact-float__toggle.is-wiggle,
.sp-contact-float__toggle:hover.is-wiggle {
    animation: none;
}

@keyframes sp-contact-wiggle {
    0%,
    100% {
        transform: rotate(0deg);
    }
    15% {
        transform: rotate(-12deg);
    }
    30% {
        transform: rotate(10deg);
    }
    45% {
        transform: rotate(-8deg);
    }
    60% {
        transform: rotate(6deg);
    }
    75% {
        transform: rotate(-3deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-contact-float__toggle.is-wiggle {
        animation: none;
    }
}

.sp-contact-float__toggle:hover,
.sp-contact-float.is-open .sp-contact-float__toggle {
    background: #3d50d4;
}

.sp-contact-float__toggle-close {
    display: none;
}

.sp-contact-float.is-open .sp-contact-float__toggle-open {
    display: none;
}

.sp-contact-float.is-open .sp-contact-float__toggle-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-contact-float__label {
    display: none;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.12);
    color: #2c2c2c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.sp-contact-float.is-open .sp-contact-float__label,
.sp-contact-float__item:hover .sp-contact-float__label {
    display: block;
}

.sp-contact-float__item:hover .sp-contact-float__icon {
    transform: translateY(-1px);
}

.sp-contact-float__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .sp-float-stack {
        right: 28px;
        bottom: 36px;
    }

    .sp-float-stack #arrowTop,
    .sp-contact-float__icon,
    .sp-contact-float__toggle {
        width: 52px;
        height: 52px;
    }
}
