@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");

.dialogstyle {

  display:none;z-index: 2147483000;
  position: fixed;
  height: 50%;
  width: 368px;
  max-width: 100%;
  bottom: 0;
  right: 0;

  box-shadow: 0 0 4px 1px rgba(0,0,0,.07);
  overflow: auto;
}

.dialog-blue {
  background: aliceblue;
}

.dialog-red {
  background: #FFC7A6;
}

.dialog-yellow {
  background: lightyellow;
}

.dialog-green {
  background: #D6FFB2;
}

@media (min-width:100%) {
  #liveChat {
    font-size:18px !important;
    line-height:25px !important;
    padding:30px 20px !important;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:16px !important;
    padding:10px 22px 10px 22px !important;
  }
}
@media (min-width:700px) and (max-width:899px){
  #liveChat {
    font-size:14px !important;
    line-height:28px !important;
    padding:18px 10px !important;
    right: 100px;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:14px !important;
    padding:10px 22px 10px 22px !important;
  }
}
@media (min-width:580px) and (max-width:699px){
  #liveChat {
    font-size:12px !important;
    line-height:22px !important;
    padding:18px 14px !important;
    right: 100px;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:12px !important;
    padding:10px 22px 10px 22px !important;
  }
}
@media (max-width:579px){
  #liveChat {
    font-size:12px !important;
    line-height:18px !important;
    padding:12px 12px !important;
    right: 1em;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:12px !important;
    padding:10px 22px 10px 22px !important;
  }
}



#liveChat {
  margin-bottom: 0px;
  display: block;
  bottom: 0px;
  position: fixed;
  z-index: 28000000;
  display: block;
  border-radius: 5px 5px 0 0;
  color: #005287;
  font-family: Arial;
  font-size:12px;
  line-height:18px;

}

#liveChat #chatImg {
  cursor:help;
}

#liveChat #InformativaAccetto:hover {
  text-decoration: none;
}

.liveChat-hide {
  display: none !important;
}

.liveChat-show {
  display: block !important;
  padding-right: 15px;
  padding-left: 15px;
  padding-top: 50px;
}

.liveChat-show ul {
  list-style-type: none;
}

.TabellaChatPolicy .NomeChat {
  font-weight: bold;
}

.TabellaChatPolicy th, .TabellaChatPolicy td, .TabellaChatPolicy {
  border: 1px solid #bdbdbd;
  padding: 6px;
}

.TabellaChatPolicy th {
  font-weight:bold;
  font-size:16px;
}

.TabellaChatPolicy .ThNomeChat {
  min-width:120px;
}

.TabellaChatPolicy .LinkChat {
  text-align:center;
}

#liveChat #InformativaClick {
  color:#FFF !important;
  text-decoration: underline;
  background:none;
}

@media screen and (max-width: 1024px) {

  #liveChat #chatImg {
  cursor:help;
}

}

@media (min-width:1400px) {
   #liveChat {
    font-size:18px !important;
    line-height:25px !important;
    padding:18px 20px !important;
    right: 15em;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:16px !important;
    padding:10px 22px 10px 22px !important;
  }
}

@media (min-width:900px) and (max-width:1399px) {
  #liveChat {
    font-size:18px !important;
    line-height:25px !important;
    padding:18px 20px !important;
    right: 5em;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:16px !important;
    padding:10px 22px 10px 22px !important;
  }
}
@media (min-width:700px) and (max-width:899px){
  #liveChat {
    font-size:14px !important;
    line-height:28px !important;
    padding:18px 10px !important;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:14px !important;
    padding:10px 22px 10px 22px !important;
  }
}
@media (min-width:580px) and (max-width:699px){
  #liveChat {
    font-size:12px !important;
    line-height:22px !important;
    padding:18px 14px !important;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:12px !important;
    padding:10px 22px 10px 22px !important;
  }
}
@media (max-width:579px){
  #liveChat {
    font-size:12px !important;
    line-height:18px !important;
    padding:12px 12px !important;
  }
  #liveChat #chatImg {
    cursor:help;
  }
  #liveChat #InformativaAccetto {
    font-size:12px !important;
    padding:10px 22px 10px 22px !important;
  }
}



#liveChat {
  margin-bottom: 0px;
  display: block;
  bottom: 0px;
  position: fixed;
  z-index: 28000000;
  display: block;
  border-radius: 5px 5px 0 0;
  color: #005287;
  font-family: Arial;
  font-size:12px;
  line-height:18px;
}

#liveChat #chatImg {
  cursor:help;
}



#liveChat #InformativaAccetto:hover {
  text-decoration: none;
}

.TabellaChatPolicy .NomeChat {
  font-weight: bold;
}

.TabellaChatPolicy th, .TabellaChatPolicy td, .TabellaChatPolicy {
  border: 1px solid #bdbdbd;
  padding: 6px;
}

.TabellaChatPolicy th {
  font-weight:bold;
  font-size:16px;
}

.TabellaChatPolicy .ThNomeChat {
  min-width:120px;
}

.TabellaChatPolicy .LinkChat {
  text-align:center;
}

#liveChat #InformativaClick {
  color:#FFF !important;
  text-decoration: underline;
  background:none;
}

@media screen and (max-width: 1024px) {

  #liveChat #chatImg {
  cursor:help;
}


}



/* M E N U */

.chat-menu {

    width: 100%;
    height: 40px;
    z-index: 100;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: fixed;

}

.chat-menu-blue {

     background: #005287;
}
.chat-menu-red {

    background: #e16f2c;
}

.chat-menu-yellow {

    background: #ffcd2f;
}

.chat-menu-green {

    background: #8ec549;
}


.chat-back {

    width: 90px;
    top: 0px;
    left: 0px;
    color: #fff;
    line-height: 50px;
    font-size: 30px;
    padding-left: 10px;

}
.chat-back img {

    top: 5px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.98);
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    margin-left: 15px;
    }
.chat-back:active {
    background: rgba(255,255,255,0.2);
}
.chat-name{

    top: 10px;
    left: 110px;
    font-family: 'Lato';
    font-size: 25px;
    font-weight: 300;
    color: rgba(255,255,255,0.98);
    cursor: default;
}
.chat-last{

    font-family: 'Lato';
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    left: 110px;
    padding-left: 300px;
    padding-top: 7px;
    width: 100%;
}

.chat-disabled  {
    cursor: not-allowed;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;
}

.chat-last-element {
    margin-right: 15px;
}

.chat-btn {
    display: inline-block;
    font-weight: normal;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.chat-btn-rounded {
    border-radius: 100px !important;
    max-width: 100%;
}

.chat-btn-outline-primary {
    color: #005287;
    background-image: none;
    background-color: transparent;
    border-color: #005287;
}

/* M E S S A G E S */

.chat {
    list-style: none;
    background: none;
    margin: 0;
    padding: 0 0 50px 0;
    margin-top: 60px;
    margin-bottom: 10px;
}
.chat li {
    padding: 0.5rem;
    overflow: hidden;
    display: flex;
}

.chat form {
    margin-left: 15px !important;
    margin-right: 15px !important;
}

.chat form input {

    width: 100% !important;
    padding: 0.50rem 0 0.50rem 0.50rem  !important;
    border: 1px solid #cacaca !important;
    margin: 0 0 1.25rem !important;
    font-family: inherit !important;
    font-size: 1.25rem !important;
    color: #8a8a8a ;
    background-color: #fefefe !important;

}

.chat form input[type=button] {

    display: inline-block;
    height: 2.5rem;
    font-weight: normal;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    border-radius: 100px !important;
    max-width: 100%;
    color: #005287;
    background-image: none;
    background-color: transparent;
    border-color: #005287;
    margin-top: 16px;
}
.chat form input[type=submit] {

    display: inline-block;
    height: 2.5rem;
    font-weight: normal;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
border-radius: 100px !important;
    max-width: 100%;
color: #005287;
    background-image: none;
    background-color: transparent;
    border-color: #005287;
    margin-top: 16px;
}

.chat .avatar {
    width: 40px;
    max-width: 40px;
    position: relative;
    display: block;
    z-index: 2;
    margin: 5px;

}
.chat .avatar img {
    width: 40px;
    max-width: 40px;
    border-radius: 100%;

}
.chat .day {
    position: relative;
    display: block;
    text-align: center;
    color: #c0c0c0;
    height: 20px;
    text-shadow: 7px 0px 0px #e5e5e5, 6px 0px 0px #e5e5e5, 5px 0px 0px #e5e5e5, 4px 0px 0px #e5e5e5, 3px 0px 0px #e5e5e5, 2px 0px 0px #e5e5e5, 1px 0px 0px #e5e5e5, 1px 0px 0px #e5e5e5, 0px 0px 0px #e5e5e5, -1px 0px 0px #e5e5e5, -2px 0px 0px #e5e5e5, -3px 0px 0px #e5e5e5, -4px 0px 0px #e5e5e5, -5px 0px 0px #e5e5e5, -6px 0px 0px #e5e5e5, -7px 0px 0px #e5e5e5;
    box-shadow: inset 20px 0px 0px #e5e5e5, inset -20px 0px 0px #e5e5e5, inset 0px -2px 0px #d7d7d7;
    line-height: 38px;
    margin-top: 5px;
    margin-bottom: 20px;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.other .msg {
    order: 1;
    border-radius: 15px;
    box-shadow: -1px 2px 0px #D4D4D4;
}

.self {
    justify-content: flex-end;
    align-items: flex-end;
}
.self .msg {
    order: 1;
    border-radius: 15px;
    box-shadow: 1px 2px 0px #D4D4D4;
}
.self .avatar {
    order: 2;
}


.msg {
    background: white;
    min-width: 50px;
    padding: 10px;
    border-radius: 2px;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07);
}
.msg p {
    font-size: 0.8rem;
    margin: 0 0 0.2rem 0;
    color: #777;
}
.msg img {
    position: relative;
    display: block;
    width: 450px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #eee;
    transition: all .4s cubic-bezier(0.565, -0.260, 0.255, 1.410);
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
@media screen and (max-width: 800px) {
    .msg img {
    width: 300px;
}
}
@media screen and (max-width: 550px) {
    .msg img {
    width: 200px;
}
}

.msg time {
    font-size: 0.7rem;
    color: #ccc;
    margin-top: 3px;
    float: right;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.msg time:before{
    content:"\f017";
    color: #ddd;
    font-family: FontAwesome;
    display: inline-block;
    margin-right: 4px;
}

emoji{
    display: inline-block;
    height: 18px;
    width: 18px;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: -7px;
    margin-right: 2px;
    transform: translate3d(0px, 3px, 0px);
}
emoji.please{background-image: url(https://imgur.com/ftowh0s.png);}
emoji.lmao{background-image: url(https://i.imgur.com/MllSy5N.png);}
emoji.happy{background-image: url(https://imgur.com/5WUpcPZ.png);}
emoji.pizza{background-image: url(https://imgur.com/voEvJld.png);}
emoji.cryalot{background-image: url(https://i.imgur.com/UUrRRo6.png);}
emoji.books{background-image: url(https://i.imgur.com/UjZLf1R.png);}
emoji.moai{background-image: url(https://imgur.com/uSpaYy8.png);}
emoji.suffocated{background-image: url(https://i.imgur.com/jfTyB5F.png);}
emoji.scream{background-image: url(https://i.imgur.com/tOLNJgg.png);}
emoji.hearth_blue{background-image: url(https://i.imgur.com/gR9juts.png);}
emoji.funny{background-image: url(https://i.imgur.com/qKia58V.png);}

@-webikt-keyframes pulse {
  from { opacity: 0; }
  to { opacity: 0.5; }
}


/* T Y P E */

.chat-textarea {

    width: 99% !important;
    border: 1px solid #cacaca !important;
    margin: 0 0 1.25rem !important;
    font-family: inherit !important;
    color: #8a8a8a !important;
    background-color: #fefefe !important;
    padding: 0.50rem 0 0.50rem 0.50rem !important;
    font-size: 1.25rem !important;

}
.emojis {
    position: fixed;
    display: block;
    bottom: 8px;
    left: 7px;
    width: 34px;
    height: 34px;
    background-image: url(https://i.imgur.com/5WUpcPZ.png);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 100;
    cursor: pointer;
}
.emojis:active {
    opacity: 0.9;
}
