@media (max-width: 479px) {
    body.chat-visible {
        overflow: hidden;
    }

    #chat {
        right: 8px !important;
        width: 56px;
    }

    #chat.visible {
        width: 100% !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100%;
    }

    #chat.visible .chat-content {
        height: calc(100% - 48px) !important;
    }

    #chat > .chat-wrapper {
        height: 100%;
    }

    #chat .chat-content > .chat-content-wrapper {
        height: calc(100% - 106px);
    }

    #chat .chat-header {
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #chat.visible .chat-header {
        height: 52px;
        padding: 8px 16px 8px 52px;
        position: relative;
        display: block;
    }

    #chat .chat-header > .chat-icon {
        position: static;
    }

    #chat.visible .chat-header > .chat-icon {
        position: absolute;
    }

    #chat .chat-header > .name,
    #chat .chat-header > .text {
        display: none;
    }

    #chat.visible .chat-header > .name,
    #chat.visible .chat-header > .text {
        display: block;
    }

}