/* =========================================================
   FLOATING CHAT
========================================================= */

.floating-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: inherit;
}


/* =========================================================
   BUTTON
========================================================= */

.floating-chat-button {
    width: 58px;
    height: 58px;

    border: 0;
    border-radius: 50%;

    background: #0b6cff;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 8px 24px rgba(11, 108, 255, .28);

    font-size: 27px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.floating-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(11, 108, 255, .34);
}


/* =========================================================
   MENU
========================================================= */

.floating-chat-menu {
    position: absolute;

    right: 0;
    bottom: 72px;

    width: 310px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 16px 45px rgba(11, 34, 57, .18);

    border: 1px solid #e7edf3;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(10px)
        scale(.98);

    transform-origin: bottom right;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}


/* OPEN */

.floating-chat.is-open .floating-chat-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   HEADER
========================================================= */

.floating-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 70px;
    padding: 12px 18px;

    background: #0b2742;
    border-radius: 22px 22px 0 0;

    box-sizing: border-box;
}

.floating-chat-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-chat-header-title img {
    width: 42px;
    height: 42px;

    object-fit: contain;
    display: block;
}

.floating-chat-header-title strong {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.floating-chat-close {
    width: 34px;
    height: 34px;

    padding: 0;
    border: 0;
    background: transparent;

    color: #fff;
    font-size: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.floating-chat-close {
    width: 30px;
    height: 30px;

    border: 0;
    background: transparent;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    border-radius: 50%;

    font-size: 15px;
}

.floating-chat-close:hover {
    background: rgba(255,255,255,.12);
}


/* =========================================================
   LIST
========================================================= */

.floating-chat-list {
    padding: 8px;
}

.floating-chat-item-text small {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 5px;

    color: #71839a;
    font-size: 14px;
}

.floating-chat-online-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    display: inline-block;

    background: #22c55e;
    border-radius: 50%;

    animation: floatingChatOnlinePulse 2s ease-in-out infinite;
}

@keyframes floatingChatOnlinePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(.78);
    }

}
/* =========================================================
   ITEM
========================================================= */

.floating-chat-item {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 12px;

    border-radius: 11px;

    text-decoration: none;

    transition: background .18s ease;
}

.floating-chat-item:hover {
    background: #f3f7fb;
}


/* =========================================================
   ICON
========================================================= */

.floating-chat-item-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    border-radius: 50%;

    background: #0b6cff;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}


/* =========================================================
   TEXT
========================================================= */

.floating-chat-item-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.floating-chat-item-text strong {
    color: #0b2239;

    font-size: 14px;
    font-weight: 700;
}

.floating-chat-item-text small {
    color: #718096;

    font-size: 11px;
}


/* =========================================================
   ARROW
========================================================= */

.floating-chat-arrow {
    margin-left: auto;

    color: #9aa8b5;

    font-size: 11px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .floating-chat {
        right: 16px;
        bottom: 16px;
    }

    .floating-chat-button {
        width: 54px;
        height: 54px;

        font-size: 25px;
    }

    .floating-chat-menu {
        width: min(300px, calc(100vw - 32px));

        bottom: 67px;
    }
}