.bgh-wa-float {
    position: fixed;
    bottom: 22px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-family: inherit;
    direction: rtl;
}

.bgh-wa-float--right { right: 18px; }

.bgh-wa-float--left { left: 18px; }

.bgh-wa-float.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.bgh-wa-float.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

/* ---- main (large) button ---- */

.bgh-wa-float__main {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: #25D366;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    text-decoration: none;
    line-height: 1;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bgh-wa-float__main:hover {
    background: #1ebe5b;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
    color: #fff;
}

.bgh-wa-float__main[data-channel="telegram"]   { background: #229ED9; box-shadow: 0 8px 24px rgba(34, 158, 217, 0.35); }
.bgh-wa-float__main[data-channel="telegram"]:hover { background: #1a8bc0; }
.bgh-wa-float__main[data-channel="instagram"]  { background: #D62976; box-shadow: 0 8px 24px rgba(214, 41, 118, 0.35); }
.bgh-wa-float__main[data-channel="instagram"]:hover { background: #b92067; }
.bgh-wa-float__main[data-channel="call"]       { background: #1f9d6b; box-shadow: 0 8px 24px rgba(31, 157, 107, 0.35); }
.bgh-wa-float__main[data-channel="call"]:hover { background: #188056; }

.bgh-wa-float__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.bgh-wa-float__icon svg {
    width: 30px;
    height: 30px;
}

.bgh-wa-float__label {
    font-size: 14px;
    font-weight: 600;
    padding-left: 20px;
    white-space: nowrap;
}

/* ---- submenu (channels) ---- */

.bgh-wa-float__menu {
    position: absolute;
    bottom: calc(100% + 10px);
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.bgh-wa-float.is-open .bgh-wa-float__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bgh-wa-float__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.bgh-wa-float__item:hover { transform: translateY(-2px); color: #fff; }

.bgh-wa-float__item .bgh-wa-float__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.bgh-wa-float__item .bgh-wa-float__icon svg { width: 18px; height: 18px; }

.bgh-wa-float__item--whatsapp  { background: #25D366; }
.bgh-wa-float__item--telegram  { background: #229ED9; }
.bgh-wa-float__item--instagram { background: #D62976; }
.bgh-wa-float__item--call      { background: #1f9d6b; }

.bgh-wa-float__item-label { padding-left: 4px; }

/* ---- bounce reminder ---- */

.bgh-wa-float.bounce .bgh-wa-float__main { animation: bghWaBounce 1s ease 2; }

@keyframes bghWaBounce {
    0%, 100% { transform: translateY(0); }
    30%      { transform: translateY(-10px) scale(1.03); }
    60%      { transform: translateY(0); }
    80%      { transform: translateY(-4px); }
}

@media (max-width: 480px) {
    .bgh-wa-float__label { display: none; }
    .bgh-wa-float__main { padding: 0; }
    .bgh-wa-float__item-label { display: none; }
    .bgh-wa-float__item { min-height: 36px; padding: 4px; }
    .bgh-wa-float__item .bgh-wa-float__icon { width: 28px; height: 28px; flex: 0 0 28px; }
}
