.zhiva-bee-companion {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 108px;
    height: 78px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0) perspective(760px) rotateY(0deg) rotateZ(0deg);
    transform-origin: 48% 50%;
    transform-style: preserve-3d;
    filter: drop-shadow(0 5px 5px rgba(19, 40, 76, .2));
    will-change: transform, opacity;
    transition: opacity .2s ease, filter .2s ease;
}

.zhiva-bee-companion::before {
    position: absolute;
    z-index: -1;
    top: 27%;
    left: 21%;
    width: 58%;
    height: 46%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 185, 73, .62), rgba(255, 154, 38, .16) 48%, transparent 74%);
    filter: blur(8px);
    content: "";
    opacity: .58;
    animation: zhivaBeeAura 1.8s ease-in-out infinite;
}

.zhiva-bee-companion.is-ready { opacity: 1; }
.zhiva-bee-companion.is-header-target { z-index: 1305; }
.zhiva-bee-companion.is-header-target .zhiva-bee-hit-area { pointer-events: none; }
.zhiva-bee-companion.is-shelved { z-index: 1402; pointer-events: none; transform-origin: 50% 50%; }
.zhiva-bee-companion.is-shelved .zhiva-bee-hit-area { pointer-events: auto; cursor: pointer; }
.zhiva-bee-companion.is-hover { filter: drop-shadow(0 6px 7px rgba(19, 40, 76, .24)) drop-shadow(0 0 9px rgba(255, 180, 70, .72)); }
.zhiva-bee-companion.is-pressed { filter: drop-shadow(0 0 16px rgba(255, 156, 45, .9)) drop-shadow(0 0 28px rgba(255, 203, 96, .72)); }
.zhiva-bee-companion.is-pressed::before { opacity: 1; animation: zhivaBeeFlashHalo .46s ease-out; }
.zhiva-bee-companion.is-chat-open { z-index: 1401; filter: drop-shadow(0 8px 12px rgba(19, 40, 76, .28)) drop-shadow(0 0 12px rgba(255, 180, 70, .68)); }
.zhiva-bee-hit-area { position: absolute; z-index: 5; inset: 2px 4px 4px; display: block; width: auto; height: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; }
.zhiva-bee-hit-area:focus-visible { outline: none; }
.zhiva-bee-hit-area:disabled { pointer-events: none; }
.zhiva-bee-sprite { position: relative; width: 100%; height: 100%; animation: zhivaBeeHover 1.05s ease-in-out infinite; transform-style: preserve-3d; --bee-depth-opacity: .08; --bee-edge-shift: 0px; }
.zhiva-bee-depth,
.zhiva-bee-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.zhiva-bee-depth { opacity: 0; transform: translateZ(-8px); filter: brightness(.54) saturate(.76) blur(.15px); }
.zhiva-bee-frame { opacity: 0; transform: translateZ(0); filter: drop-shadow(var(--bee-edge-shift) 0 0 rgba(70, 47, 27, .2)) drop-shadow(calc(var(--bee-edge-shift) * -1) 0 0 rgba(70, 47, 27, .12)); }
.zhiva-bee-companion.is-pressed .zhiva-bee-frame { filter: brightness(1.5) drop-shadow(var(--bee-edge-shift) 0 0 rgba(255, 198, 93, .72)); }
.zhiva-bee-depth--up { animation: zhivaBeeDepthUp .052s steps(1, end) infinite; }
.zhiva-bee-depth--down { animation: zhivaBeeDepthDown .052s steps(1, end) infinite; }
.zhiva-bee-frame--up { animation: zhivaBeeFrameUp .052s steps(1, end) infinite; }
.zhiva-bee-frame--down { animation: zhivaBeeFrameDown .052s steps(1, end) infinite; }
.zhiva-bee-companion.is-hover .zhiva-bee-depth--up,
.zhiva-bee-companion.is-hover .zhiva-bee-depth--down { animation-duration: .035s; }
.zhiva-bee-companion.is-hover .zhiva-bee-frame--up,
.zhiva-bee-companion.is-hover .zhiva-bee-frame--down { animation-duration: .035s; }
.zhiva-bee-companion.is-landed .zhiva-bee-depth--up { animation: none; opacity: 0; }
.zhiva-bee-companion.is-landed .zhiva-bee-depth--down { animation: none; opacity: var(--bee-depth-opacity); }
.zhiva-bee-companion.is-landed .zhiva-bee-sprite { animation: none; }
.zhiva-bee-companion.is-landed .zhiva-bee-frame--up { animation: none; opacity: 0; }
.zhiva-bee-companion.is-landed .zhiva-bee-frame--down { animation: none; opacity: 1; }
.zhiva-bee-companion.is-shelved.is-landed.is-shelved-wing-flick .zhiva-bee-depth--up { animation: zhivaBeeShelfWingFlickUp .38s steps(1, end) both; }
.zhiva-bee-companion.is-shelved.is-landed.is-shelved-wing-flick .zhiva-bee-depth--down { animation: zhivaBeeShelfWingFlickDown .38s steps(1, end) both; }
.zhiva-bee-companion.is-shelved.is-landed.is-shelved-wing-flick .zhiva-bee-frame--up { animation: zhivaBeeShelfWingFlickUp .38s steps(1, end) both; }
.zhiva-bee-companion.is-shelved.is-landed.is-shelved-wing-flick .zhiva-bee-frame--down { animation: zhivaBeeShelfWingFlickDown .38s steps(1, end) both; }
.zhiva-bee-companion.is-landed.is-card-wing-flick .zhiva-bee-depth--up { animation: zhivaBeeShelfWingFlickUp .38s steps(1, end) both; }
.zhiva-bee-companion.is-landed.is-card-wing-flick .zhiva-bee-depth--down { animation: zhivaBeeShelfWingFlickDown .38s steps(1, end) both; }
.zhiva-bee-companion.is-landed.is-card-wing-flick .zhiva-bee-frame--up { animation: zhivaBeeShelfWingFlickUp .38s steps(1, end) both; }
.zhiva-bee-companion.is-landed.is-card-wing-flick .zhiva-bee-frame--down { animation: zhivaBeeShelfWingFlickDown .38s steps(1, end) both; }
.zhiva-bee-chat { position: fixed; z-index: 1400; width: min(304px, calc(100vw - 24px)); box-sizing: border-box; padding: 16px 17px 15px; border: 1px solid rgba(19, 40, 76, .16); border-radius: 18px 18px 18px 6px; background: #f7f0e2; box-shadow: 0 18px 42px rgba(19, 40, 76, .2), 0 3px 0 rgba(255, 185, 73, .75); color: #13284c; font-family: inherit; pointer-events: auto; transform-origin: 24px 100%; animation: zhivaBeeChatIn .22s cubic-bezier(.22, .8, .24, 1) both; }
.zhiva-bee-chat::after { position: absolute; left: var(--zhiva-bee-chat-tail-x, 25px); bottom: -9px; width: 17px; height: 17px; border-right: 1px solid rgba(19, 40, 76, .16); border-bottom: 1px solid rgba(19, 40, 76, .16); background: #f7f0e2; content: ""; transform: rotate(45deg); }
.zhiva-bee-chat[hidden] { display: none !important; }
.zhiva-bee-chat__topline { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.zhiva-bee-chat__close { display: inline-grid; width: 26px; height: 26px; place-items: center; margin: -5px -5px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #13284c; cursor: pointer; font-size: 23px; line-height: 1; }
.zhiva-bee-chat__close:hover { background: rgba(19, 40, 76, .08); }
.zhiva-bee-chat__close:focus-visible { outline: none; }
.zhiva-bee-chat__message { max-width: 255px; margin: 0; color: rgba(19, 40, 76, .86); font-size: 16px; font-weight: 400; line-height: 1.38; white-space: normal; }
.zhiva-bee-chat__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.zhiva-bee-chat__actions a,
.zhiva-bee-chat__action { display: inline-flex; min-height: 29px; align-items: center; padding: 0 10px; border: 1px solid rgba(19, 40, 76, .14); border-radius: 999px; background: rgba(255, 255, 255, .56); color: #13284c; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.zhiva-bee-chat__actions a:hover,
.zhiva-bee-chat__action:hover { border-color: rgba(255, 168, 38, .72); background: #fffdf7; transform: translateY(-1px); }
.zhiva-bee-chat__actions a:focus-visible,
.zhiva-bee-chat__action:focus-visible { outline: 2px solid rgba(255, 177, 46, .96); outline-offset: 2px; }

@keyframes zhivaBeeHover {
    0%, 100% { transform: translate3d(0, 1.5px, 0) rotateZ(-.8deg) scale(1); }
    50% { transform: translate3d(0, -3px, 0) rotateZ(1.2deg) scale(1.035); }
}
@keyframes zhivaBeeFrameUp { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes zhivaBeeFrameDown { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes zhivaBeeDepthUp { 0%, 49.9% { opacity: var(--bee-depth-opacity); } 50%, 100% { opacity: 0; } }
@keyframes zhivaBeeDepthDown { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: var(--bee-depth-opacity); } }
@keyframes zhivaBeeShelfWingFlickUp { 0%, 40%, 80%, 100% { opacity: 0; } 20%, 60% { opacity: 1; } }
@keyframes zhivaBeeShelfWingFlickDown { 0%, 40%, 80%, 100% { opacity: 1; } 20%, 60% { opacity: 0; } }
@keyframes zhivaBeeAura { 0%, 100% { transform: scale(.74); opacity: .34; } 50% { transform: scale(1.08); opacity: .78; } }
@keyframes zhivaBeeFlashHalo { 0% { transform: scale(.72); opacity: .42; } 35% { transform: scale(1.16); opacity: 1; } 100% { transform: scale(1.02); opacity: .58; } }
@keyframes zhivaBeeChatIn { from { opacity: 0; transform: translateY(7px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .zhiva-bee-companion::before,
    .zhiva-bee-sprite,
    .zhiva-bee-depth,
    .zhiva-bee-frame,
    .zhiva-bee-chat { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media (pointer: coarse) {
    .zhiva-bee-companion { width: 96px; height: 70px; }
    .zhiva-bee-hit-area { inset: -4px 0 0; touch-action: manipulation; }
    .zhiva-bee-chat { width: min(304px, calc(100vw - 16px)); padding: 15px 15px 14px; }
    .zhiva-bee-chat__actions a,
    .zhiva-bee-chat__action { min-height: 36px; }
}
