.vk-community-ask {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1500;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 25px;
    background: #5181b8;
    cursor: pointer;
    font-family: inherit;
}

.vk-community-ask:focus-visible {
    outline: 3px solid #14238d;
    outline-offset: 3px;
}

.vk-community-ask:disabled {
    cursor: progress;
}

.vk-community-ask__flip {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: vk-community-ask-flip 6s infinite;
}

.vk-community-ask__face {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    backface-visibility: hidden;
}

.vk-community-ask__face_icon {
    background-image: url(/img/vk-widget/w_chat_icon_2x.png);
    transform: rotateY(180deg);
}

.vk-community-ask__face_logo {
    background-image: url(/img/vk-widget/w_chat_logo_2x.png);
    transform: rotateY(0deg);
}

.vk-community-ask__tip {
    position: absolute;
    right: 70px;
    top: 5px;
    padding: 11px 12px;
    border-radius: 4px;
    background: #2c2d2e;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.2px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

.vk-community-ask__tip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -16px;
    margin-top: -8px;
    border: 8px solid transparent;
    border-left-color: #2c2d2e;
}

.vk-community-ask:hover .vk-community-ask__tip,
.vk-community-ask:focus-visible .vk-community-ask__tip,
.vk-community-ask[aria-busy="true"] .vk-community-ask__tip {
    opacity: 1;
    transform: translateX(0);
}

.vk-community-ask[aria-busy="true"] .vk-community-ask__flip {
    visibility: hidden;
}

.vk-community-ask[aria-busy="true"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vk-community-ask-spin .7s linear infinite;
}

@keyframes vk-community-ask-flip {
    0% {
        transform: rotateY(0deg);
    }
    42.5% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    92.5% {
        transform: rotateY(180deg);
    }
    to {
        transform: rotateY(0deg);
    }
}

@keyframes vk-community-ask-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vk-community-ask__flip,
    .vk-community-ask[aria-busy="true"]::after {
        animation: none;
    }
}
