.sbubble-widget,
.sbubble-widget * {
    box-sizing: border-box;
}

.sbubble-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    font-family: inherit;
}

.sbubble-main {
    position: relative;
    min-width: 116px;
    min-height: 56px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff8a00, #ff5a00);
    box-shadow: 0 14px 35px rgba(255, 111, 0, 0.35);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sbubble-main::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    background: rgba(255, 138, 0, 0.18);
    animation: sbubble-pulse 1.9s infinite;
    z-index: -1;
}

.sbubble-main:hover,
.sbubble-widget.is-open .sbubble-main {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 44px rgba(255, 111, 0, 0.45);
}

.sbubble-main:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.24), 0 18px 44px rgba(255, 111, 0, 0.45);
}

.sbubble-main-text {
    display: inline-block;
    white-space: nowrap;
}

.sbubble-menu {
    position: absolute;
    right: 3px;
    bottom: calc(100% + 16px);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.sbubble-item {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(22px) scale(0.55) rotate(-16deg);
    transition:
        opacity 0.25s ease,
        transform 0.45s cubic-bezier(0.2, 0.95, 0.2, 1.25),
        box-shadow 0.25s ease;
    transition-delay: calc(var(--sbubble-index) * 55ms);
    text-decoration: none !important;
    overflow: hidden;
}

.sbubble-widget.is-open .sbubble-item {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1) rotate(0);
}

.sbubble-item:hover {
    transform: translateY(-4px) scale(1.07) rotate(0) !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.sbubble-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.sbubble-item.sbubble-bale {
    background: #00a884;
}

.sbubble-item.sbubble-bale img,
.sbubble-item.sbubble-rubika img {
    width: 74%;
    height: 74%;
    object-fit: contain;
}

.sbubble-item.sbubble-telegram img,
.sbubble-item.sbubble-instagram img,
.sbubble-item.sbubble-eitaa img {
    object-fit: cover;
}

@keyframes sbubble-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .sbubble-widget {
        right: 16px;
        bottom: 16px;
    }

    .sbubble-main {
        min-height: 52px;
        min-width: 102px;
        padding: 0 18px;
        font-size: 14px;
    }

    .sbubble-item {
        width: 50px;
        height: 50px;
    }
}
