:root {
     --chat2-padding: 10px;
    }
.chat2{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1px 50px;
    grid-gap: 0px;
    align-items: stretch;
    gap: 0px;
    padding: 0px;
    /* background-color: var(--color-box-transparent-background); */
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
    }
.chat2 .hide{
    display: none;
    }
.chat2.input_active{
    grid-template-rows: auto 14px 80px;
    }
.chat2.input_active .chat2-info{
    display: block;;
    }
.chat2-stage,
.chat2-info,
.chat2-input{
    position: relative;
    width: 100%;
    height: 100%;
    }
.chat2-alert{
    position: absolute;
    left: 0px;
    bottom: 55px;
    width: 100%;
    text-align: center;;
    }
.chat2.input_active .chat2-alert{
    bottom: 95px;
    }
.chat2-alert > label{
    height: 0px;
    opacity: 1;
    display: inline-table;
    padding: 0px 8px 0px 8px;
    font-size: 10px;
    -moz-border-radius: 5px; 
    -webkit-border-radius: 5px;
    background-color: var(--color-alert);
    color: rgba(0,0,0,0.8);
    -moz-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); 
    -webkit-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); 
    box-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    cursor: pointer;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
    }
@keyframes chat2-alert-animate {
  from {
    bottom: 65px;
    }
  to {
    bottom: 85px;
    }
}
.chat2-alert.active{
    bottom: 85px;
    animation-name: chat2-alert-animate;
    animation-duration: 0.4s;
    }
.chat2-alert.active > label{
    height: 14px;
    opacity: 1;
    display: inline-table;
    padding: 0px 8px 0px 8px;
    font-size: 10px;
    -moz-border-radius: 5px; 
    -webkit-border-radius: 5px;
    background-color: var(--color-alert);
    color: rgba(0,0,0,0.8);
    -moz-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); 
    -webkit-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); 
    box-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    cursor: pointer;
    }
.chat2-stage{
    display: block;
    padding: 10px;
    /*border: solid 5px #DBDBCF;*/
    background-color: rgba(255, 255, 255, 0.85);
    overflow: auto;
    scroll-behavior: smooth;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
    -moz-box-shadow: inset 0px 0px 5px rgba(0,0,0,0.1);
    -webkit-box-shadow: inset 0px 0px 5px rgba(0,0,0,0.1);
    box-shadow: inset 0px 0px 5px rgba(0,0,0,0.1);
    /* border-top-left-radius: 15px; */
    /* border-top-right-radius: 15px; */
    }
.chat2-msg-item{
    text-align: left;
    margin: 0px 0px 5px 0px;
    position: relative;
    display: block;
    padding: var(--chat2-padding);
    animation-duration: 0.5s;
	animation-name: chat2Msg;
	animation-timing-function: ease-in-out;
	animation-fill-mode: forwards; 
	opacity: 0;
    background-color: rgba(120, 120, 120, 0.1);
    }
.chat2-msg-item:hover{
    -moz-box-shadow: 1px 1px 3px rgba(0,0,0,0.1); 
    -webkit-box-shadow: 1px 1px 3px rgba(0,0,0,0.1); 
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    }

@keyframes chat2Msg {
	    0% {
			opacity: 0;
            transform: translatey(15px);
	    	}
	    100% {
	      opacity: 1;
          transform: translatey(0px);
	    }
	}

.chat2-msg-item > p{
    color: #000;
    font-family: var(--font-ui) !important;
    font-size: 0.9em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 140%;
    word-break: break-word;
    margin: 0;
    }
.chat2-msg-item > p > strong{
    display: block;
    font-family: var(--font-ui) !important;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-transform: uppercase;
    width: 100%;
    color: var(--color-primary);
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    }
.chat2-msg-item > label{
    position: absolute;
    top: -15px;
    right: -5px;
    color: rgba(0,0,0,0.6);
    background-color: #FFF;
    font-size: 0.65em;
    font-family: var(--font-ui);
    display: none;
    margin: 0px;
    padding: 2px 3px;
    -moz-box-shadow: 1px 1px 3px rgba(0,0,0,0.3); 
    -webkit-box-shadow: 1px 1px 3px rgba(0,0,0,0.3); 
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    -moz-border-radius: 5px; 
    -webkit-border-radius: 5px;
    z-index: 2;
    }
.chat2-msg-item:hover > label{
    display: block;
    }
.chat2-msg-item-me{
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: rgba(100,100,200,0.15);
    }
.chat2-msg-item-me > label,
.chat2-msg-item-me > p{
    
    }
.chat2-msg-item-me > strong{
    font-weight: bold;
    }
.chat2-info{
    display: block;
    padding: 0px 0px 0px 40px;
    background-color: var(--color-primary);
    height: 20px;
    overflow: hidden;
    }
.chat2-info > label{
    font-family: Arial, 'sans-serif';
    font-size: 11px;
    line-height: 18px;
    color: #FFF;
    }
.chat2-input{
    display: grid;
    grid-template-columns: 30px 1fr 40px;
    grid-gap: 5px;
    gap: 5px;
    padding: 5px;
    background-color: var(--color-primary);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    }
.chat2-input-icons{
    position: relative;
    }
.chat2-input-icons > span{
    cursor: pointer;
    height: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    }
.chat2-input-icons > span > svg{
    fill: var(--color-alert);
    height: 18px;
    width: 18px;
    }
.chat2-input-icons-list{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 3px;
    gap: 3px;
    position: absolute;
    bottom: 100%;
    left: 0px;
    padding: 10px;
    width: 260px;
    max-height: 200px;
    overflow-y: auto;
    background-color: #FFF;
    -moz-box-shadow: 2px 2px 7px rgba(0,0,0,0.3); 
    -webkit-box-shadow: 2px 2px 7px rgba(0,0,0,0.3); 
    box-shadow: 2px 2px 7px rgba(0,0,0,0.3);
    -moz-border-radius: 5px; 
    -webkit-border-radius: 5px;
    }
.chat2-input-icons-list > div{
    padding: 3px;
    cursor: pointer;
    }
.chat2-input-form-field{
    display: block;
    width: 100%;
    height: 100%;
    margin: 0px;
    }
.chat2-input-button{
    position: relative;
    cursor: pointer;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    }
.chat2-input-button{
    background-color: var(--color-primary);
    }
.chat2-input-button:hover{
    background-color: var(--color-primary-dark);
    }
.chat2-input-button > span,
.chat2-input-button svg{
    color: #FFF;
    height: 28px;
    width: 28px;
    }
.chat2-msg-wait,
.chat2-msg-closed{
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    }
.chat2 .loading_icon{
    -webkit-animation:loading_rotate_icon_chat 1700ms linear infinite;
    -moz-animation:loading_rotate_icon_chat 1700ms linear infinite;
    animation:loading_rotate_icon_chat 1700ms linear infinite;
    }

@-moz-keyframes loading_rotate_icon_chat { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes loading_rotate_icon_chat { 100% { -webkit-transform: rotate(360deg); } }
@keyframes loading_rotate_icon_chat { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

.chat2-msg-wait > span,
.chat2-msg-closed > span{
    width: 100%;
    font-family: var(--font-ui);
    color:  #FFF;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.20);
    }
.chat2-msg-closed > span{
    text-align: center;
    }

@media (max-width: 1600px) {

}
@media (max-width: 1200px) {

}
@media (max-width: 1024px) {
    
}
@media (max-width: 840px) {
    .chat2-msg-item > p > strong,
    .chat2-msg-item > label,
    .chat2-msg-item > p{
        font-size: 0.8em;
        }
}
@media (max-width: 720px) {

}
@media (max-width: 600px) {
    :root {
        --chat2-padding: 5px;
        }
    /* .chat2{
        grid-template-rows: auto 50px;
        } */
    .chat2-input textarea{
        font-size: 90% !important;
        }
}
@media (max-width: 480px) {
    /* .reactions-icons{
        width: 24px !important;
        height: 24px !important;
        } */
}
@media (max-width: 320px) {

}