/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.floating_avatar {
    position: fixed;
    display: block;
    right: 50px;
    bottom: 50px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: url(../img/sygnet_white.png) center center no-repeat #2798d5;
    background-size: 42px;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.floating_avatar:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
}
.floating_avatar span {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    content: '';
    width: 20px;
    height: 20px;
    line-height: 20px;
    background: #9db138;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /*FLOATIGN MESSENGER WIDGET*/
}
.floating_msg {
    bottom: 20px;
    position: fixed;
    right: 20px;
    z-index: 1000;
    /*CONTACT*/
}
.floating_msg .msg_wrap {
    background: #fff;
    border-bottom: 4px solid #2798d5;
    box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    padding: 15px;
}
.floating_msg .msg_wrap .close {
    display: none;
}
.floating_msg .msg_wrap .msg_post {
    padding: 10px 0 20px 55px;
    position: relative;
}
.floating_msg .msg_wrap .msg_post .asset {
    bottom: 20px;
    left: 0;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url(../img/sygnet_white.png) center center no-repeat #2798d5;
    background-size: 23px;
}
.floating_msg .msg_wrap .msg_post .asset:before {
    background: url(../img/ico_msg_blyskawica.png) center center no-repeat #0080ff;
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: -2px;
    content: '';
    display: block;
    height: 11px;
    right: -2px;
    position: absolute;
    width: 11px;
}
.floating_msg .msg_wrap .msg_post .msg {
    background: #f0f0f0;
    border-radius: 30px 30px 30px 0;
    color: #575757;
    font-size: 15px;
    font-weight: 300;
    padding: 13px 20px;
}
.floating_msg .msg_wrap .msg_post .msg p {
    margin: 0;
    line-height: 130%;
}
.floating_msg .msg_wrap .msg_widget_wrap {
    border-top: 1px solid #f0f0f0;
    padding: 10px 40px 0px 40px;
}
.floating_msg .msg_wrap .msg_widget_wrap .msg_widget {
    overflow: hidden;
    width: 190px;
}

/* after post content box */
.block_msg {
    display: inline-block;
}
.block_msg .msg_wrap {
    background: #fff;
    padding: 15px;
}
.block_msg .msg_wrap .msg_post {
    padding: 10px 0 20px 55px;
    position: relative;
    float: left;
}
.block_msg .msg_wrap .msg_post .asset {
    bottom: 20px;
    left: 0;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url(../img/sygnet_white.png) center center no-repeat #2798d5;
    background-size: 23px;
}
.block_msg .msg_wrap .msg_post .asset:before {
    background: url(../img/ico_msg_blyskawica.png) center center no-repeat #0080ff;
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: -2px;
    content: '';
    display: block;
    height: 11px;
    right: -2px;
    position: absolute;
    width: 11px;
}
.block_msg .msg_wrap .msg_post .msg {
    background: #f0f0f0;
    border-radius: 30px 30px 30px 0;
    color: #575757;
    font-size: 15px;
    font-weight: 300;
    padding: 13px 20px;
}
.block_msg .msg_wrap .msg_post .msg p {
    margin: 0;
    line-height: 130%;
}
.block_msg .msg_wrap .msg_widget_wrap {
    float: left;
    padding: 30px 0px 0px 40px;
}
.block_msg .msg_wrap .msg_widget_wrap .msg_widget {
    overflow: hidden;
    width: 190px;
}

@media screen and (max-width: 1300px) {
    .floating_msg {
        background: rgba(0, 0, 0, .5);
        bottom: 0;
        display: none;
        height: 100%;
        left: 0;
        overflow: hidden;
        width: 100%;
    }
    .floating_msg .msg_wrap {
        left: 50%;
        max-height: 100%;
        max-width: 100%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
    }
    .floating_msg .msg_wrap .close {
        display: block;
        position: absolute;
        right: 5px;
        top: 5px;
        cursor: pointer;
    }
}
@media screen and (max-width: 640px) {
    .floating_avatar {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        background-size: 30px;
    }
    .floating_avatar span {
        width: 14px;
        height: 14px;
        line-height: 14px;
        font-size: 11px;
        /*FLOATIGN MESSENGER WIDGET*/
    }
    .floating_msg {
        /*GOUP BTN*/
    }
    .floating_msg .msg_wrap {
        bottom: 0;
        top: auto;
        transform: translate(-50%, 0);
        -webkit-transform: translate(-50%, 0);
        -moz-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
    }
}
