/* 
@font-face {
    font-family: 'Product Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/productsans/v5/HYvgU2fE2nRJvZ5JFAumwegdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
  }

  h1 {
    font-family: Product Sans, sans-serif;
    font-size: 250%;
  }
  h2, h3 {
    font-family: Product Sans, sans-serif;
    font-weight: lighter;
  } */

.attachButon{
    cursor: pointer;
    color:#666;
}

body, button, input, select {
    font-family: 'Roboto', sans-serif; 
}

body{
    background-color: whitesmoke;        
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
}

body #loading{
    display: none;
}

body.loading #loading{
    display: block;
    position: absolute;
    z-index: 100;
    background-color: #ffffff;
    background-image: url(http://testing.asi.com.uy/img/chat/progress.gif);
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 50px 50px;
    width: 100%;
    height: 100%;    
}



#chat{
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;    
}

.messages{
    flex-grow: 1;
    flex-shrink: 1;
    overflow-x: hidden;
    overflow-y: scroll;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
        
    font-size: 12px;
}


.message{
    padding: 0.2em;
    margin-top: 0.2em;
    word-break: break-word;        
    opacity: 0;
}

.message.show{
    padding: 0.2em;
    margin-top: 0.2em;
    word-break: break-word;
    -webkit-transition: opacity 1s;
    transition:  opacity 1s;        
    opacity: 1;
}

.message .bubble{    
    background-color: #c0c0c0;
    padding: 1em;
    display: inline-block;
    border-radius: 1em;
    margin-right: 2em;
    margin-left: 0px;
}

.message span{
    white-space: pre-line;
}


.message .bubble img{
    max-width: 100%;
    height: auto;    
}

.message .bubble:empty {
    display: none;
}


.message.out .bubble{
    color: whitesmoke;
    background-color: #4080ff;
    float: right;
    clear: both;
    margin-left: 2em;
    margin-right: 0px;
}


.message .buttons{    
    margin-top: 0.2em;
}

.message .list{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.message .list .item{
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: 150px;
    border-bottom: 1px solid #C0C0C0;
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.list .item .btn{
    height: 3em;
    width: max-content;
}

.list .buttons .btn{
    width: 100%;
}

.list img{
    cursor: pointer;
}

.list .item .info{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: nowrap;
    flex-grow: 1;
    flex-shrink: 1;
    margin: 2px;
}

.list .item .info h1{    
    font-size: 12px;
}

.list .item .info h2 {    
    font-size: 11px;
    color: #AAAAAA;

}
 
.list .item img{
    width: 100px;
    height: 100px;
    border-radius: 10px;
    flex-grow: 0;
    flex-shrink: 0;
}

.generic .generic{
    overflow: hidden;    
    display: flex;
    flex-direction: row;
}

.generic .item{
/*    transition: order .8s ease-in-out;*/
    flex-shrink: 0;
    flex-basis: 100%;    
}

.message.endSession.show hr{
	background-color: #fff;
	border-top: 2px dashed #8c8b8b;
}

.generic .info{
    position: relative;
    margin: 1em;
    border: solid #C0C0C0 1px;
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
} 

.generic .info button{
    position: absolute;
    top: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0.4;
} 

.generic .info button:hover{
    opacity: 0.8;
} 

.generic .info button.prev{
    left: 0;
} 

.generic .info button.next{
    right: 0;
} 

.generic img{
    width: calc(100% - 1px);
    height: auto;
    margin: 1px;
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
}

.generic h1{
    font-size: 12px;
    margin: 0.5em;    
}

.generic h2{
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4)
}

.rowbtn{    
    transition: background-color 0.5s ease;
    transition: color 0.5s ease;
    border: 1px solid rgba(0, 0, 0, .20);
    color: #0084ff;
    width: 100%;
    height: 3em;
    cursor: pointer;
    font-size: 1em;

    display: flex;
    align-items: center;
    justify-content: center;
}

.rowbtn:hover{
    color: #fff;
    background-color: #0084ff;
}


.btn{    
    transition: background-color 0.5s ease;
    transition: color 0.5s ease;

    border: 1px solid rgba(0, 0, 0, .20);
    background-color: #fff;
    border-radius: 1.3em;
    color: #0084ff;
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
    margin: 2px;
    height: 3em;
    cursor: pointer;
    font-size: 12px;
}

.btn:hover{
    color: #fff;
    background-color: #0084ff;
}

.btn:focus {
    outline:0;
}

.btn span{
    vertical-align: middle;
    margin-left: 2px;    
}

.btn img{
    vertical-align: middle;
}

.sendBox{
    flex-grow: 0;
    flex-shrink: 0;
    height: 25px;
    display: flex;
    flex-direction: row;
    padding-bottom: 1px;
}

.sendBox i{
    flex-grow: 0;
    flex-shrink: 0;
    user-select: none;
}

.sendBox input{
    flex-grow: 1;    
    flex-shrink: 1;
    width: 100%;
    height: 100%;
    margin-right: 1px;
    margin-left: 1px;
}

.hidden{
    display: none !important;
}

.required{
    color:red;
    font-weight:normal;
}

/*
.popup{
    display: none;
    position: fixed;
    background-color: white;
    width: 100%;
}

.popup .head{
    height: 25px;
    flex-grow: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    background-color: #EEEEEE;
    justify-content: space-between;
}

.popup.show{
    top: 0;
    display: block;    
}

*/

.btnToolbar{
    cursor: pointer;
    transition: color 0.5s ease;    
    color: #C0C0C0
}

.btnToolbar:hover{    
    color: #222222;
}

.popup iframe{
    height: -moz-calc(100% - 25px);
    height: -webkit-calc(100% - 25px);
    height: calc(100% - 25px);
}

.sendBox #menu{
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    background-color: white;
    display: block;
    position: absolute;
    min-width: 60%;
    border-radius: 8px;
    bottom: 25px;
    margin-left: 8px;
    margin-bottom: 4px;
    user-select: none;
}

.sendBox #menu.close{
    display: none;
}

.sendBox #menu ul{
    padding-left: 0px;
    list-style-type: none;
}

.sendBox #menu li{
    border-top: 1px solid #dddfe2;
    font-size: 14px;
    height: 22px;
    padding: 10px 0;
    display: list-item;
}

.sendBox #menu li div{
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.sendBox #menu li i{
    width: 30px;    
}

.sendBox #menu div.title{
    display: block;
    margin: 1em 0;
    padding: 0;
    text-align: center;
}

button img,
.emojione{
    width: 1.4em !important;
    height: 1.4em !important;
    min-width: 1.4em !important;
    min-height: 1.4em !important;
    margin: 0;    
}

