@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@200;300;400;500;600;700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" );

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    line-height:normal
}


.opacity{
    opacity:0;
}
.show{
    
    display: flex;
    justify-content: space-between;
    align-items: center;
 }
   
 .hide{
     display: none;
 } 
.bg-transparent{
    background: transparent;
}

.bg-no-transparent{
    background: #E15BBA;
}

.box{
    position: fixed;
    bottom:10px;
    right:10px;
    width: 300px;
    height: 60px;
    border-radius: 7px;
    border: 1px solid #fdd5f4;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    z-index:10000;
}



.cerrado{
    width: 300px;
    height: 60px;
    bottom:10px;
}
  
.abierto{
    width: 45%;
    bottom:10px;
    height: auto;
    max-height: 800px;
    border: none;
}



.box-header{
    width: 100%;
    height: 60px;
    padding:0px 7px;
    cursor:pointer;
    border:1px dotted rgb(193, 193, 193);
    box-shadow: 1px 3px rgb(193, 193, 193) !important;
}

.box-header h4{
    font-family:'Roboto' !important;
    font-style: normal;
    font-size: 1.7rem !important;
}
.box-header span{
    font-size: 2rem;
}

.box-header:hover, .box-header:hover h4{
    color:#cd3fae;
}

.box-body{
    width: 100%;
}

.box-titulo{
    color: #fff;
    font-size:1rem;
    font-weight: 500;
    height: 60px;
    padding:0px 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border:none;
    margin: 0;
    
}

.box-titulo h4{
    color: #fff;
    font-family:'Roboto';
    font-style: normal;
    font-size: 1.7rem !important;
}

.box-titulo span{
    cursor:pointer;
}

.box-body{
    width: 100%;
    height: auto;
}

.box-body .form{
    padding: 20px 17px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.box-body .form .inbox{
    width: 100%;
    display: flex;
    align-items: baseline;
}

.box-body .form .user-inbox{
    justify-content: flex-end;
    margin: 13px 0;
}

.box-body .form .inbox .icon{
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-image: url('../img/avatar.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #E15BBA;
}

.box-body .form .inbox .msg-header{
    width: 90%;
    margin-left: 10px;
}

.box-body .form .inbox .msg-header .me{
    color: #000;
    background: #eee;
    border-radius: 10px;
    padding: 10px;
    font-size: 1.5rem;
    position:relative;
    z-index:1;
}

.box-body .form .inbox .msg-header .me::after {   
    content: '';    
    position: absolute;    
    top: 11px;     
    left: -15px;    
    background: transparent;    
    width: 0px; 
    height: 0px;    
    border-top: 15px solid #eee;    
    border-right: 15px solid transparent;   
    border-left: 15px solid transparent;   
    transform: rotate(90deg);    
    z-index: -1;    
}  
.box-body .form .inbox .msg-header .me > p{
    margin-top:1px !important;
    font-size: 1.5rem;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;     /* Sólo WebKit -NO DOCUMENTADO */

    -ms-hyphens: auto;          /* Guiones para separar en sílabas */
    -moz-hyphens: auto;         /*  depende de lang en <html>      */
    -webkit-hyphens: auto;
    hyphens: auto;
}

.box-body .form .inbox .msg-header .me > p:nth-child(2){
    margin-top:1.5rem !important;
}

.box-body .form .inbox .msg-header .user{
    color: #333;
    background: #f9d5ee;
    border-radius: 10px;
    padding: 10px;
    font-size: 1.5rem;
    word-break: break-all;
    position:relative;
    z-index:1;
}

.box-body .form .user-inbox .msg-header .user::after {   
    content: '';    
    position: absolute;    
    bottom: 13px;    
    right: -15px;    
    background: transparent;    
    width: 0px; 
    height: 0px;    
    border-bottom: 15px solid #f9d5ee;    
    border-right: 15px solid transparent;   
    border-left: 15px solid transparent;   
    transform: rotate(90deg);    
    z-index: -1;    
}  

.box-body .typing-field{
    bottom:0;

    display: flex;
    height: 70px;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    background: #eee;
    border-top: 1px solid #eee;
    border-radius: 0 0 5px 5px;
}
.box-body .typing-field .input-data{
    height: 50px;
    width: 96%;
    position: relative;
}
.box-body .typing-field .input-data input{
    height: 100%;
    width: 100%;
    outline: none;
    border: 1px solid transparent;
    padding: 15px;
    border-radius: 3px;
    font-size: 1.5rem;
    background: #fff;
    transition: all 0.3s ease;
}
.typing-field .input-data input:focus{
    border-color: rgba(205, 63, 174, 0.8);
}
.input-data input::placeholder{
    color: #999999;
    transition: all 0.3s ease;
}
.input-data input:focus::placeholder{
    color: #bfbfbf;
}
.typing-field .input-data button{
    position: absolute;
    right: 5px;
    top: 50%;
    height: 50px;
    width: 65px;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    outline: none;
    opacity: 0;
    pointer-events: none;
    background: #E15BBA;
    border: 1px solid #E15BBA;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.typing-field .input-data button span{
    margin-top: 1px;
}
.typing-field .input-data input:valid ~ button{
    opacity: 1;
    pointer-events: auto;
}
.typing-field .input-data button:hover{
    background: #f42dbc;
}




::selection{
    color: #fff;
    background: #E15BBA;
}

::-webkit-scrollbar{
    width: 3px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ddd;
}
::-webkit-scrollbar-thumb:hover{
    background: #ccc;
}



@media screen and (max-width:1333px){
    .abierto{
        width: 45%;
        bottom:10px;
        right:0;
    } 
}

@media screen and (max-width:1024px){
    .abierto{
        width: 85%;
    } 

    .box-header h4{
        font-family:'Roboto' !important;
        font-style: normal;
        font-size: 1.9rem !important;
    }
    .box-header span{
        font-size: 2.5rem;
    }



    .box-titulo h4{
        font-size: 2rem !important;
    }


    .box-body .form .inbox .msg-header .me > p{
        font-size: 1.9rem;
    
    }

    .box-body .form .inbox .msg-header .me > p:nth-child(2){
        margin-top:1.9rem !important;
    }

    .box-body .form .inbox .msg-header .user{
        font-size: 1.9rem;
    }


}
@media screen and (max-width:600px){
    .abierto{
        width: 98%;
        max-height: auto;
    } 
}