@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.min.css");

#sapochatBox {
    display: none;
    position: fixed;
    width: 20rem;
    height: auto;
    bottom: 15px;
    right: 15px;
    z-index: 99999999999;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
    border-radius: 1rem
}

#sapochatBox.is_mobile_device {
    width: calc(100vw - 30px) !important;
    box-shadow: none;
    left: 15px !important;
}

#sapochatBox .chat_header {
    display: flex;
    position: relative;
    width: 100%;
    height: 5rem;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to right, #FF7303, #ff7403d6);
    padding: 15px;
    border-radius: 1rem 1rem 0 0;
    color: #ffffff;
    transition: all .5s;
    user-select: none;
}

#sapochatBox.is_mobile_device.is_chat_box_close .chat_header{
    display: none;
}


#sapochatBox .chat_header:after {
    content: '';
    display: block;
    position: absolute;
    background-color: #ffffff;
    height: 13px;
    width: 6rem;
    top: 0;
    left: calc(50% - 3rem);
    border-radius: 0 0 .8rem .8rem;
    opacity: 0.85;
}

#sapochatBox .chat_header .chat_header-thumb {
    display: flex;
    position: relative;
    width: 4rem;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#sapochatBox .chat_header .chat_header-thumb img {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 50%;
    margin: 0;
}

#sapochatBox .chat_header .chat_header-info {
    display: block;
    position: relative;
    width: calc(100% - 5rem);
    /*height: 100%;*/
}

#sapochatBox .chat_header .chat_header-info div {
    display: none;
}

#sapochatBox .chat_header .chat_header-info span,
#sapochatBox .chat_header .chat_header-info small {
    display: block;
    width: 100%;
}

#sapochatBox .chat_body {
    display: block;
    position: relative;
    height: 50vh;
    overflow: hidden;
    transition: all .5s;
}

#sapochatBox.is_mobile_device .chat_body{
    margin-bottom: 1rem;
    border-radius: 0 0 0 1rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
    border: 1px solid #ddd;
}

#sapochatBox.is_mobile_device.is_chat_box_close .chat_body{
    border-color: transparent;
    box-shadow: none;
}

#sapochatBox .chat_footer {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
}

#sapochatBox .chat_footer a {
    display: flex;
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2rem;
    font-weight: 200;
    left: calc(-3.5rem - 15px);
    top: -3.5rem;
    background-color: #FF7303;
    color: #ffffff;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    transition: all .5s;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
}

#sapochatBox.is_mobile_device .chat_footer a {
    position: relative;
    float: right;
    right: 0rem;
    bottom: 1rem;
    left: 0;
    top: 0 !important;
}

#sapochatBox #iframeSapochat {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* CHAT FECHADO */

#sapochatBox.is_chat_box_close .chat_header {

    background-image: linear-gradient(to right, rgb(245, 255, 245), rgb(255, 255, 255));
    border: 2px solid #FF7303;
    border-radius: 1rem;
    color: #ffffff;
    transition: all .5s;
}

#sapochatBox.is_chat_box_close .chat_header .chat_header-info div {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: #FF7303;
    font-size: 1.25rem;
}

#sapochatBox.is_chat_box_close .chat_header .chat_header-thumb img {
    width: 85%;
    border: 2px solid #FF7303;
}

#sapochatBox.is_chat_box_close .chat_header .chat_header-info span,
#sapochatBox.is_chat_box_close .chat_header .chat_header-info small {
    display: none;
}

#sapochatBox.is_chat_box_close .chat_body {
    height: 0;
    overflow: hidden;
    transition: all .5s;
}

#sapochatBox.is_chat_box_close .chat_footer a {
    top: calc(-3.5rem - 11px);
    transition: all .5s;
}

#sapochatBox iframe {
    border: none;
    margin: 0;
}