.pses-jimmy {
    position: fixed;
    left: 18px;
    bottom: 96px;
    z-index: 99990;
    transform-origin: center bottom;
    animation: pses-jimmy-sway 3.6s ease-in-out infinite;
}

.pses-jimmy__button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: block;
}

.pses-jimmy__button:focus-visible {
    outline: none;
}

.pses-jimmy__avatar {
    display: block;
    width: 92px;
    max-width: 22vw;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter:
        drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18))
        drop-shadow(0 2px 8px rgba(255, 255, 255, 0.22));
}

.pses-jimmy__button:focus-visible .pses-jimmy__avatar,
.pses-jimmy__button:hover .pses-jimmy__avatar {
    filter:
        drop-shadow(0 12px 28px rgba(0, 0, 0, 0.22))
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.pses-jimmy__bubble {
    position: absolute;
    left: 82px;
    bottom: 78px;
    width: min(260px, calc(100vw - 130px));
    max-width: 260px;
}

.pses-jimmy__bubble[hidden] {
    display: none !important;
}

.pses-jimmy__bubble-inner {
    position: relative;
    background: #ffffff;
    color: #111827;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.22),
        0 2px 10px rgba(0, 0, 0, 0.08);
}

.pses-jimmy__bubble-inner::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: -10px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    transform: rotate(45deg);
    border-radius: 3px;
}

.pses-jimmy__text {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes pses-jimmy-sway {
    0% {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }
    20% {
        transform: translate3d(2px, -3px, 0) rotate(2deg);
    }
    40% {
        transform: translate3d(-2px, -6px, 0) rotate(-3deg);
    }
    60% {
        transform: translate3d(2px, -4px, 0) rotate(3deg);
    }
    80% {
        transform: translate3d(-1px, -2px, 0) rotate(-2deg);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }
}

@media (max-width: 782px) {
    .pses-jimmy {
        left: 12px;
        bottom: 84px;
    }

    .pses-jimmy__avatar {
        width: 74px;
        max-width: 24vw;
    }

    .pses-jimmy__bubble {
        left: 68px;
        bottom: 64px;
        width: min(220px, calc(100vw - 100px));
        max-width: 220px;
    }

    .pses-jimmy__bubble-inner {
        border-radius: 16px;
        padding: 12px 14px;
    }

    .pses-jimmy__text {
        font-size: 13px;
    }
}