/* Iframe */
iframe { 
  width: 100%;
  min-height: 640px;
  border: none;
}
/* End of Iframe */

/*Chat Header*/
.imghead {
  border-radius: 30px;
  max-width: 55px;
  display: block;
  margin: 10px auto;
}

.panel-body, #panel-hist .panel-body {
    padding: 0 !important;
}

.head .imgwrapper { display: none; }

.history_listing .message {
    height: auto;
}

/*Chat head*/
.imgwrapper { width: 8%; padding-left: 10px; }
.detailwrapper {
  float: left;

}

div#chatprocess {
    margin-top: 30px;
}

.sm-cf { display: none; }
#endsession, #dropsession { width: unset; }
/*End of chat head*/

.headBtn {
    text-align: right;
    padding-bottom: 10px;
    padding-right: 49px;
    margin-top: 25px;
}

.headBtn button.btn-info {
    background-color: #18A3E3;
    border: 0px;
    border-radius: 40px;
}

.headBtn button.btn-danger {
    background-color: #de363c;
    border: 0px;
    border-radius: 40px;
}

.headBtn button.btn-success {
    background-color: #36c75a;
    border: 0px;
    border-radius: 40px;
}

.headBtn.stu span{line-height: 30px;} /*Added by M 02122020 */

.chat_ui {
    border: 0px;
    background: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.message .head p {
    vertical-align: top;
    text-align: left;
    color: #222;
    padding-top: 23px;
    padding-right: 15px;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 0;
}

.chat .head { /* Edited 26022025 */
    background: #B8E3F9;
    overflow: hidden;
    border-top-left-radius: 30px;
    border-top-right-radius: 40px;
}

/*End of Chat Header*/

/*Chat content*/
/*.message{ height: 70%; }*/

.message {
    height: 472px;
}

.message .head p { padding-left:10px; }

.message .body{
  width: 100%;
  height: 420px;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 10px 0;
  background: white;
  padding-bottom: 30px;
}

.message .body::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.message .body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    height: 40px;
    cursor: pointer;
}

.message .body::-webkit-scrollbar-thumb {
  background-color: #94a5a6;
  border-radius: 10px;
  cursor: pointer;
}

.message .body:hover { overflow-y: scroll; }
.message .body ul li img { float: left; }
.message .body ul li img.headicon { float: left; width: 40px !important; }
.message .body ul li{ overflow:hidden; margin: 0px 15px 0px 15px; padding: 5px; }
.message .body ul li img.mehead { float: right; width: 32px; }
.message .body ul li img.chatrotate { float: none; }

.message .body ul li .speak{
    background-color: #d7f3ff;
    padding: 14px;
    border-radius: 5px;
    display: inline-block;
    color: #333;
    margin-left: 10px;
    max-width:75%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    /* Adds a hyphen where the word breaks, if supported (No Blink) */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.message .body ul li .mespeak{
    float: right;
    background-color: #f7f7f7;
    padding: 14px;
    border-radius: 5px;
    display: inline-block;
    color: #333;
    margin-right: 10px;
    max-width:75%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    /* Adds a hyphen where the word breaks, if supported (No Blink) */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.chat-msg, .posted-chat-msg, demo-chat-msg { padding-left: 0; }
.chat-msg .chatimage, .posted-chat-msg .chatimage, .demo-chat-msg .chatimage { max-width:100%; cursor:pointer; }

.chat-dttime { font-size: 12px; font-style: italic; }
.mechat.chat-dttime { margin: 8px 0 0 0; float: right; }
.oppchat.chat-dttime { margin: 8px 0 0 0; float: right; }
/*End of chat content*/

/*Message Input*/
.input{
  max-width: calc(100% - 30px);
  min-width: calc(100% - 30px);
  max-height: 15px;
  min-height: 15px;
  font-size: 1.5em;
  font-weight: 500;
  padding: 15px;
  border: 0;
  background-color: transparent;
}

.input:focus { outline: 0; box-shadow: none; }

#inputfield, #postedinputfield, .displayinputfield {
  max-height: 80px;
  height: 85px;
  overflow-y: auto;
  max-width: 100%;
  font-size: 15px;
  font-weight: unset;
  border: 1px solid #ececec;
  border-radius: 8px;
  margin-top: 8px;
  background-color: transparent;
  margin-top: 20px;
  margin-bottom: 15px;
}

#inputfield:focus, #postedinputfield:focus { outline: 0; box-shadow:none; }
#inputfield .chatimage, #postedinputfield .chatimage { max-width:20%; }
/*End of Message Input*/

/*Chat Footer*/
.chat .main .chat-footer{
  position: relative;
  bottom: 0;
  width: 100%;
  border-top: 1px solid rgb(236,236,236);
  background: transparent;
}

.chat-footer .box{
  position: relative;
  width: 100%;
  height: auto;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  background: #fff;
}

.chat-footer .box .chat-head{
  padding: 0px 10px 0 15px;
  display: inline-block;
  width: 10%;
  vertical-align: top;
  text-align: center;
  position: relative;
  top: 50px;
}

.chat-footer .box .chat-head i { cursor: pointer; }

.chat-footer .box .chat-head input#imginput { 
  opacity: 0;
  width: 20px; 
  position: relative; 
  top: -26px; 
}

.chat-footer .box .chat-body { display: inline-block; width: 78%; }

.chat-footer .box .chat-foot{
  display: inline-block;
  width: 10%;
  vertical-align: top;
  text-align: center;
  position: relative;
  top: 50px;
}

.chat-footer.disabled #inputfield, .chat-footer.disabled #postedinputfield, .chat-footer.disabled .displayinputfield { background-color: #ecf0f1; opacity: 1; }
.chat-footer.disabled a.send { cursor: default; }
.chat-footer.disabled #imginput, .chat-footer.disabled .glyphicon-paperclip { pointer-events: none; cursor: default; }
.chat-footer.disabled .openmathkeyboard { pointer-events: none; cursor: default; }

.send {
  float: right;
  display: block;
  color: #7a7b7a;
  text-decoration: none;
  padding: 0 15px 10px 0;
}

.send img { width: 15px; }

.openmathkeyboard img { width: 18px; }

.outline{
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: #000;
  opacity: 0.5;
}
/*End of Chat Footer*/

/*History Tab*/
.back-hist-btn {
  display: inline-block;
  float: left;
  margin: 20px 0px 20px 20px;
}

.back-hist-btn a {
    font-size: 20px;
}

#chat-hist .imgwrapper {width: 15%; }
#chat-hist .detailwrapper { width: 77%; }
#chat-hist .chat .main .chat-footer, #chat-history .chat .main .chat-footer { position: relative; }
/*End of History Tab*/

/*Loader*/
.holder {
  left: 0px;
  top: 0px;
  bottom: 0px;
  right: 0px;
  width: 100%;
  height: 100%;
}

.preloader {
  width: 100px;
  height: 100px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  animation: rotatePreloader 2s infinite ease-in;
}

@keyframes rotatePreloader {
  0% { transform: translateX(-50%) translateY(-50%) rotateZ(0deg); }
  100% { transform: translateX(-50%) translateY(-50%) rotateZ(-360deg); }
}
.preloader div {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.preloader div:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0%;
  width: 10%;
  height: 10%;
  background-color: #95a5a6;
  transform: translateX(-50%);
  border-radius: 50%;
}

.preloader div:nth-child(1) {
  transform: rotateZ(0deg);
  animation: rotateCircle1 2s infinite linear;
  z-index: 9;
}

@keyframes rotateCircle1 {
  0% { opacity: 0; }
  0% { opacity: 1; transform: rotateZ(36deg); }
  7% { transform: rotateZ(0deg); }
  57% { transform: rotateZ(0deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}
.preloader div:nth-child(2) {
  transform: rotateZ(36deg);
  animation: rotateCircle2 2s infinite linear;
  z-index: 8;
}

@keyframes rotateCircle2 {
  5% { opacity: 0; }
  5.0001% { opacity: 1; transform: rotateZ(0deg); }
  12% { transform: rotateZ(-36deg); }
  62% { transform: rotateZ(-36deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}

.preloader div:nth-child(3) {
  transform: rotateZ(72deg);
  animation: rotateCircle3 2s infinite linear;
  z-index: 7;
}

@keyframes rotateCircle3 {
  10% { opacity: 0; }
  10.0002% { opacity: 1; transform: rotateZ(-36deg); }
  17% { transform: rotateZ(-72deg); }
  67% { transform: rotateZ(-72deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}

.preloader div:nth-child(4) {
  transform: rotateZ(108deg);
  animation: rotateCircle4 2s infinite linear;
  z-index: 6;
}

@keyframes rotateCircle4 {
  15% { opacity: 0; }
  15.0003% { opacity: 1; transform: rotateZ(-72deg); }
  22% { transform: rotateZ(-108deg); }
  72% { transform: rotateZ(-108deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}

.preloader div:nth-child(5) {
  transform: rotateZ(144deg);
  animation: rotateCircle5 2s infinite linear;
  z-index: 5;
}

@keyframes rotateCircle5 {
  20% { opacity: 0; }
  20.0004% { opacity: 1; transform: rotateZ(-108deg); }
  27% { transform: rotateZ(-144deg); }
  77% { transform: rotateZ(-144deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}

.preloader div:nth-child(6) {
  transform: rotateZ(180deg);
  animation: rotateCircle6 2s infinite linear;
  z-index: 4;
}

@keyframes rotateCircle6 {
  25% { opacity: 0; }
  25.0005% { opacity: 1; transform: rotateZ(-144deg); }
  32% { transform: rotateZ(-180deg); }
  82% { transform: rotateZ(-180deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}

.preloader div:nth-child(7) {
  transform: rotateZ(216deg);
  animation: rotateCircle7 2s infinite linear;
  z-index: 3;
}

@keyframes rotateCircle7 {
  30% { opacity: 0; }
  30.0006% { opacity: 1; transform: rotateZ(-180deg); }
  37% { transform: rotateZ(-216deg); }
  87% { transform: rotateZ(-216deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}

.preloader div:nth-child(8) {
  transform: rotateZ(252deg);
  animation: rotateCircle8 2s infinite linear;
  z-index: 2;
}

@keyframes rotateCircle8 {
  35% { opacity: 0; }
  35.0007% { opacity: 1; transform: rotateZ(-216deg); }
  42% { transform: rotateZ(-252deg); }
  92% { transform: rotateZ(-252deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}

.preloader div:nth-child(9) {
  transform: rotateZ(288deg);
  animation: rotateCircle9 2s infinite linear;
  z-index: 1;
}

@keyframes rotateCircle9 {
  40% { opacity: 0; }
  40.0008% { opacity: 1; transform: rotateZ(-252deg); }
  47% { transform: rotateZ(-288deg); }
  97% { transform: rotateZ(-288deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}

.preloader div:nth-child(10) {
  transform: rotateZ(324deg);
  animation: rotateCircle10 2s infinite linear;
  z-index: 0;
}

@keyframes rotateCircle10 {
  45% { opacity: 0; }
  45.0009% { opacity: 1; transform: rotateZ(-288deg); }
  52% { transform: rotateZ(-324deg); }
  102% { transform: rotateZ(-324deg); }
  100% { transform: rotateZ(-324deg); opacity: 1; }
}
/*End of loader*/

/* Typing status */ /* Added by CQ 05032025 For Demo */
.typingstat{
  font-size:16px;
  color:#126a9c;
  font-weight: bold;
  font-style: italic;
  animation: blink 3s linear infinite;
}
@keyframes blink{
  0%{opacity: 0;}
  50%{opacity: .5;}
  100%{opacity: 1;}
}

/*Scroll bar*/
#chatprocess::-webkit-scrollbar, #panel-hist ::-webkit-scrollbar { width: 5px; }
#chatprocess::-webkit-scrollbar-track, #panel-hist ::-webkit-scrollbar-track { background: #f1f1f1;  }
#chatprocess::-webkit-scrollbar-thumb, #panel-hist ::-webkit-scrollbar-thumb { background: #888;  }
#chatprocess::-webkit-scrollbar-thumb:hover, #panel-hist ::-webkit-scrollbar-thumb:hover { background: #555;  }
/*End of scroll bar*/



@media screen and (min-width: 700px) {
  .head .imgwrapper { display: inline-block; float: left;}


  .message .body ul li .speak, .message .body ul li .mespeak { max-width: 50%; }

  /*Chat footer*/
  .chat-footer .box .chat-head { width: 10%; }
  .chat-footer .box .chat-head input#imginput { width: 20px; }
  .chat-footer .box .chat-body { width: 83%; }
  .chat-footer .box .chat-foot { width: 5%; }
  /*End of chat footer*/
}
@media screen and (min-width: 992px) {
  /*Chat header*/
  #chat-hist .imgwrapper { display: inline-block; }
  /*End of chat header*/

  /*Chat footer*/
  .chat-footer .box .chat-head { width: 7%; }
  .chat-footer .box .chat-head input#imginput { width: 25px; }
  .chat-footer .box .chat-body { width: 85%; }
  .chat-footer .box .chat-foot { width: 6%; }
  /*End of chat footer*/
}
@media screen and (min-width: 1280px) {
  /*Chat footer*/
  .chat-footer .box .chat-head { width: 4%; }
  .chat-footer .box .chat-head input#imginput { width: 30px; }
  .chat-footer .box .chat-body { width: 91%; }
  .chat-footer .box .chat-foot { width: 4%; }
  /*End of chat footer*/

  #chatbody { background-color: #ffffff; }

/*Panel*/
.panel-body, #panel-hist .panel-body { padding: 0 !important; }
.panel-body.ask-question { padding: 15px !important; }
/*End of Panel*/

.imgwrapper { display: inline-block; float:left; width: 20%; }
.detailwrapper { display: inline-block; float:left; width: 80%; }
a.chat-detail { color: unset; }

.headBtn { 
  text-align: right;
    padding-bottom: 10px;
    padding-right: 9px;
}


.headBtn button.btn-info[disabled] {
    opacity: 0.25;
}

.headBtn.stu span{line-height: 30px;} /*Added by M 02122020 */

.headBtn.stu button.pinnedMsgBtn i{ font-style: normal; }

.message .head p {
    vertical-align: top;
    text-align: left;
    color: #222;
    padding-top: 23px;
    padding-right: 15px;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 0;
}

.message .body{ height: 66vh !important; }
.history_listing .message .body{ height: 380px !important; }

.chat .main .chat-footer{position: relative !important;}
.history_listing .chatMessage .chat .main .chat-footer{ position: relative !important; }
.panel-loading .chat .main .chat-footer{ position: relative !important; }

.footBtn {
  text-align: center;
  padding-top: 25px;
}
}

@media screen and (min-height: 700px) {
  .message .body{ height: 46vh !important; }
}

@media screen and (min-width: 768px) {
  /*Chat head*/
  .imgwrapper { width: 8%; padding-left: 10px; }
  .detailwrapper { width: 55%; }
  .headBtn { width: 36%; display: inline-block; padding-top: 0px; }
    .headBtn.stu { width: 33%;}  /*Added by M 02122020 */
    .headBtn button.btn-danger:focus {
    outline: none;
}
  .sm-cf { display: none; }
  #endsession, #dropsession { width: unset; }
  /*End of chat head*/
}