.asbt-bee-chat {
    position: fixed;
    bottom: var(--asbt-bottom-offset, 18px);
    z-index: var(--asbt-z-index, 999999);
    width: var(--asbt-desktop-size, 74px);
    height: var(--asbt-desktop-size, 74px);
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    line-height: 1;
    isolation: isolate;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.asbt-position-right {
    right: var(--asbt-side-offset, 18px);
}

.asbt-position-left {
    left: var(--asbt-side-offset, 18px);
}

.asbt-bee-chat__image-wrap {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transition: transform 180ms ease, filter 180ms ease;
}

.asbt-bee-chat img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.20));
}

.asbt-bee-chat:hover .asbt-bee-chat__image-wrap,
.asbt-bee-chat:focus-visible .asbt-bee-chat__image-wrap {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.04);
}

.asbt-bee-chat:focus-visible {
    outline: 3px solid rgba(255, 190, 30, 0.75);
    outline-offset: 4px;
}

.asbt-bee-chat__tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: max-content;
    max-width: 220px;
    padding: 9px 12px;
    border-radius: 14px;
    color: #111111;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    pointer-events: none;
    white-space: normal;
}

.asbt-position-left .asbt-bee-chat__tooltip {
    right: auto;
    left: 0;
}

.asbt-bee-chat:hover .asbt-bee-chat__tooltip,
.asbt-bee-chat:focus-visible .asbt-bee-chat__tooltip,
.asbt-bee-chat.is-loading .asbt-bee-chat__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.asbt-bee-chat.is-chat-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
}

.asbt-bee-chat.is-loading .asbt-bee-chat__image-wrap {
    animation: asbt-bee-pulse 900ms ease-in-out infinite alternate;
}

@keyframes asbt-bee-pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

@media (max-width: 767px) {
    .asbt-bee-chat {
        width: var(--asbt-mobile-size, 56px);
        height: var(--asbt-mobile-size, 56px);
    }

    .asbt-bee-chat__tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asbt-bee-chat,
    .asbt-bee-chat *,
    .asbt-bee-chat__image-wrap {
        animation: none !important;
        transition: none !important;
    }
}
