@font-face {
  font-family: "FiraSans Regular";
  src: url("../fonts/FiraSans-Bold.ttf") format("truetype");
}
 
@font-face {
  font-family: "FiraSans Medium";
  src: url("../fonts/FiraSans-Medium.ttf") format("truetype");
}

.chatbot-container {
  font-family: "FiraSans Regular", sans-serif !important;
}

.minimize-chat {
  flex-grow: 1;
  cursor: pointer;
  display: flex;
  justify-content: end;
  align-items: center;
  text-align: center;
  background: transparent;
}

.minimize {
  width: 30px;
  height: 30px;
  background: transparent;
}

.chat-wrapper-off, .chat-on{
  position: fixed;
  z-index: 10;
  bottom: 15px;
  right: 10px;
  width: 197px;
  height: 56px;
  border-radius: 28px;
  cursor: pointer;
  background: #19405B;
  border: 3px solid #19405B;
  display: flex;
  align-items: center;
  box-shadow: 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.3),
    /* lighter shadow to the right */ 0rem 0.3rem 0.3rem rgba(0, 0, 0, 0.3);
}

.chat-on:hover,.chat-wrapper-off:hover {
  opacity: 1;
  background: #19405BD9;
  border: 3px solid #19405B;
}

.close-chat {
  position: fixed;
  z-index: 10;
  bottom: 15px;
  right: 10px;
  /* margin: -1px -1px -3px 0 !important; */
  width: 56px;
  height: 56px;
  color: #ffffff;
  border-radius: 28px;
  cursor: pointer;
  background: #19405B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.headerbox-chat-off, .headerbox-on {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 10px;
}

.headertext-chat-off, .headertext-on {
  flex: 1;
  display: flex;
  /* flex-direction: column; */
  /* align-items: center; */
  /* justify-content: center; */
  /* opacity: 0;
  width: 0; */
  /* transition: width 0.3s, opacity 0.3s; */
  /* overflow: hidden; */
  opacity: 1;
  width: auto;
}

/* .headertextsub-chat-off {
  font-size: 10px;
  padding: 3px 8px 3px 3px;
  margin: 0vw 0vw 0vw 0.5vw;
  color: #ffffff;
  font-family: "Inter Medium";
  text-align: right;
  white-space: normal;
  max-width: 0;
  max-height: 0;
  /* overflow: hidden; */
  /* visibility: visible; */
/* } */ 

.headertextsub-chat-off, .headertextsub-on {
  display: inline-block;
  color: #ffffff;       
  font-family: "Arial"; 
  font-size: 14px;
  white-space: normal;
  opacity: 1;
  visibility: visible;
  text-align: right;
}

/* .chat-icon {
  display: inline-block;
  vertical-align: middle;
} */


@keyframes showChatBot {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hideChatBot {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}



.chat-wrapper-on {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 10;
  overflow: hidden;
  bottom: 84px;
  right: 15px;
  width: 319px;
  height: calc(100vh - 175px);
  max-height: 600px;
  background-color: #000;
  color: #ffffff;
  font-family: "FiraSans Medium", sans-serif;
  box-shadow: 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.3),
    /* lighter shadow to the right */ 0rem 0.3rem 0.3rem rgba(0, 0, 0, 0.3);
  /* darker shadow at the bottom */
  opacity: 0;
  animation: showChatBot 0.2s ease-in-out forwards;
}

.hide-content-with-animation {
  animation: hideChatBot 0.2s ease-in-out forwards;
}

.headerbox-chat-on {
  display: flex;
  cursor: pointer;
  padding-bottom: 5px;
  padding-left: 5px;
  text-align: left;
  box-sizing: border-box;
  flex: none;
  background: linear-gradient(90deg, #19405B 0%, #3588C1 100%);
}

/* .headerbox-chat-off {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
} */

.headertext-chat-on {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.headertextmain-chat-on {
  font-size: 15px;
  margin: 11px 0px 0px 5px !important;
  padding: 0px !important;
  color: white;
  font-weight: normal;
  text-transform: none !important;
}

.chat-window {
  flex: auto;
  background-color: white;
}

.chat-frame {
  width: 100%;
  height: 100%;
}

.hide-content {
  display: none;
}

.logo_on {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50%;
  margin-top: 6px;
}

.hover-icon {
  width: 57px;
  height: 57px;
  margin: -1px -1px -5px 0;
  border: none;
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease-in-out;
}

.chat-icon {
  width: 56px;
  height: 56px;
  /* margin: -1px -1px -5px 0 !important; */
  margin: 0;
  display: block;
  border: none;
}

/* .chat-wrapper-off:hover {
  opacity: 1;
  visibility: visible;
} */

.close-icon {
  width: 56px;
  height: 56px;
  margin: 0;
  border: none;
  /* position: absolute; */
  visibility: visible;
  top: 0;
  left: 0;
  opacity: 1;
  transition: opacity 0.5s linear, transform 0.5s linear;
}

.logo-on-anim,
.close-icon-anim {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.2s linear;
}

.cross-animation .logo-on-anim,
.cross-animation-show .close-icon-anim {
  opacity: 0;
  visibility: hidden;
  left: 0;
}

.cross-animation .close-icon-anim,
.cross-animation-show .close-icon-final {
  opacity: 1;
  visibility: visible;
  left: 0;
  transition: visibility 0.2s, opacity 0.2s linear;
}

@media (pointer: coarse) {
  .chat-wrapper-off:not(:hover) .chat-icon {
    display: block;
  }
}



.chat-wrapper-off:focus-within .headertextsub-chat-off {
  max-width: none;
  max-height: none;
  visibility: visible;
  opacity: 1;
}

.chat-wrapper-off:focus-within .headertext-chat-off {
  width: auto;
  opacity: 1;
}

/* BUG-314840 START */
 .chat-title {
/* BUG-314840 END */
  font-size: 45px;
  color: #fff;
  font-weight: 700;
  text-wrap: wrap;
  position: relative;
  top: 35vh;
  font-family: sans-serif;
}

@media only screen and (min-width: 1480px) {
  
  .headerbox-chat-off, .headerbox-on {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 10px;
  }

  /* .chat-wrapper-off:hover {
    height: 75px;
    width: 235px;
  } */

  #chat-wrapper-off .chat-icon {
    height: 56px !important;
    width: 56px !important;
  }

  #close-chat .close-icon {
    height: 56px !important;
    width: 56px !important;
  }

  .hover-icon {
    height: 75px !important;
    width: 75px !important;
    margin-top: 2px !important;
  }

  .chat-wrapper-off:focus-within .headertextsub-chat-off {
    max-width: none !important;
    max-height: none !important;
    visibility: visible;
    opacity: 1;
    
  }
  
  .headertext-chat-off, .headertext-on {
    flex: 1;
    display: flex;
    opacity: 1;
    
}
  
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  @media only screen and (max-device-width: 812px) {
    .chat-wrapper-on {
      max-height: 500px;
    }
  }
}

@media (max-width: 500px) {
  .logo_on {
    margin-top: 5px !important;
  }
  
  .chat-wrapper-on {
      bottom: 0em;
      right: 0em;
      top: 0em;
      left: 0em;
      width: auto;
      height: auto;
      max-height: none;  
      overflow: hidden;
  }

  .headertextmain-chat-on {
    font-size: 18px !important;
    margin: 9px 0px 0px 5px !important;
  }
}

@media (min-width: 501px) and (max-width: 1200px) {
  .headertextmain-chat-on {
    font-size: 14.5px !important;
    margin: 12px 0 0 5px !important;
  }

  .headerbox-chat-off {
    display: flex;
  }

  .headertext-chat-off {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-around;
    text-align: center;
    width: auto !important;
    margin: 0;
  }
  
  .chat-wrapper-off .headertextsub-chat-off {
    max-width: none !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media screen and (max-width: 1100px) {
/* BUG-314840 START */
  .chat-title {
/* BUG-314840 END */
      font-size: 30px;
      top: 35vh;
  }
}

/* PBI-302027 START */
@media (max-width: 768px) {
  .chat-wrapper-on.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    z-index: 9999;
  }

  .chat-wrapper-on.fullscreen .chat-frame {
    height: 100%; 
    width: 100%;
  }
}
/* PBI-302027 END */