.widgets {
    position: fixed;
    bottom: 110px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 38px;

    z-index: 3;
}

.widgets .action-popup {
    position: relative;
    bottom: 0;
    right: 0;

    @media (max-width: 768px) {
        right: 14px;
    }
}

.chat-widget {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 64px;
}

.chat-widget--open .chat-widget__toggler {
    background-color: #ffffff;
    transform: rotate(90deg);
}

.chat-widget--open .chat-widget__toggler-pulse {
    display: none;
}

.chat-widget--open .chat-widget__toggler-icon {
    background-image: url(/images/icon-close.png);
}

.chat-widget--open .chat-widget__links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;

    margin-bottom: 30px;

    animation: openChat linear 0.3s;
}

.chat-widget__toggler {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 46px;
    height: 46px;

    border: none;
    background-color: #ffffff;
    border-radius: 50%;
    outline: 10px solid rgb(180 214 253 / 37%);
    box-shadow: 0 4px 30px 0 rgba(0, 0, 0, .1), 0 2px 8px 0 rgba(0, 0, 0, .08);

    transition: all 0.3s;
    cursor: pointer;
}

.chat-widget__toggler-pulse {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    margin: auto;
    display: block;
    width: 100%;
    height: 100%;

    border: 1px solid rgb(12 78 153);
    border-radius: 50%;

    animation: chatPulse infinite 1.5s;
}

.chat-widget__toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url(/images/widget.png);
    background-repeat: no-repeat;
    background-position: center;
}

.chat-widget__links-list {
    display: none;

    margin: auto;
    padding-left: 0;

    list-style: none;
}

.chat-widget__list-item {
    width: 50px;
    height: 50px;

    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

.chat-widget--open .chat-widget__list-item {
    animation: openChatItem 0.3s ease-out forwards;
}

.chat-widget__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;

    text-decoration: none;

    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 30px 0 rgba(0, 0, 0, .1), 0 2px 8px 0 rgba(0, 0, 0, .08);
}

.chat-widget__link-icon {
    display: flex;
    align-items: center;

    color: #000000;
    font-size: 25px;
}

@keyframes chatPulse {
    50% {
        transform: scale(3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes openChat {
    0% {
        bottom: 0;
        opacity: 0;
    }
    100% {
        bottom: calc(100% + 38px);
        opacity: 1;
    }
}

@keyframes show {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes openChatItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}