.chat-widget-icon {
  position: fixed;
  z-index: 999999999;
  bottom: 20px;
  right: 20px;
}
.chat-widget-icon .open-button-style {
  color: white;
  background: #007788 !important;
}
.chat-widget-icon .closed-button-style {
  background: white !important;
}
.chat-widget-icon .button-styles {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgb(0 0 0 / 30%);
  outline: none;
  cursor: pointer;
  transition: background 0.5s ease;
}
#ccpContainer {
  width: 200px;
  height: 525px;
  overflow: hidden;
  float: left;
  margin-left: 22px;
  padding: 10px;

}

nav {
  width: 690px;
}

.section-main {

  padding: 10px;
  max-width: 669px;
  height: 511px;
  margin-left: 22px;
  float: left;
  overflow: auto;
  position: absolute;
  display: table-cell;
  left: 0;

}

.section-chat, 
  #section-chat, 
  .section-chat #root
  {
    height: 100%;
    z-index: 9999999;
}

.section-chat, #section-chat {
  width: 450px ;
  height: 620px;
  position: absolute;
  left: 710px;
  display: table-cell;
  padding: 0;
  margin-left: 3px;
  float: left;
  border-radius: 18px 18px 0 18px;
  overflow: hidden;
  background-color: white;
  border: #ccc solid 1px !important;

}
.section-chat , #section-chat {
  position: fixed;
  top: unset !important;
  left: unset !important;
  right: 73px;
  bottom: 114px;
}

#chatWrapper #root {
  overflow: auto;

}

#chatWrapper #root>div {
  overflow-y: auto;
  overflow-x: hidden;
  width: 330px;
  height: 100%;
  font-size: 14px;
  background-color: #f6f6f7;
}

#startChat {
  width: auto;
  cursor: pointer;
  position: relative;
  border: 1px solid #282828;
  color: #fff;
  padding: 1px 15px;
  text-decoration: none;
  font-size: 1.1em;
  background: #555;
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0.12, rgb(60, 60, 60)), color-stop(1, rgb(85, 85, 85)));
  background: -moz-linear-gradient(center bottom, rgb(60, 60, 60) 12%, rgb(85, 85, 85) 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.centered {
  text-align: center;
}

.spinner.loading {
  display: none;
  padding: 50px;
  text-align: center;
}

.loading-text {
  width: 90px;
  position: absolute;
  top: 291px;
  left: 181px;
  text-align: center;
}


.spinner.loading:before {
  content: "";
  height: 110px;
  width: 110px;
  /* margin: -15px auto  -15px auto; */
  margin-left: 22px;
  margin-top: 24px;
  position: absolute;
  top: 218px;
  left: 143px;
  border-width: 5px;
  border-style: solid;
  border-color: #2180c0 #ccc #ccc;
  border-radius: 100%;
  animation: rotation .7s infinite linear;
}

@keyframes rotation {
  from {
      transform: rotate(0deg);
  }

  to {
      transform: rotate(359deg);
  }
}

ol.normal {
  list-style-type: disc;
  padding-left: 50px;
}

.wrap {
  white-space: nowrap;

}

#chatWrapper #root .connect-customer-interface {
  background: white;
}
#chatWrapper #root .bNISBb {
  width: 100%;
  margin: 0;
}

#chatWrapper #root .connect-customer-interface .sc-jqCOkK {
  border:  #E5E5E5;
}
#chatWrapper #root .connect-customer-interface .header-wrapper {
  position: relative;
  display: block;
  justify-content: flex-start;
  align-items: center;
  background: white;
  text-align: center;
}
#chatWrapper #root .connect-customer-interface .header-wrapper .dfx5-header-div-without-agent {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 17px 0 19px 14px;
  height: 62px;
  background: #007788 !important;
}
.dfx5-header-div-without-agent #dfx5-header-img-span {
  border-radius: 35px;
  background-color: white;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dfx5-header-div-without-agent #dfx5-header-img-span img#companyLogo {
  width: 23px;
  height: 23px;
}






#chatWrapper #root .connect-customer-interface .header-wrapper span.dfx5-header-widget-explanation {
  font-size: 17px;
  line-height: 17px;
  color: white;
  width: calc( 100% - 64px );
}


#chatWrapper .sc-fAjcbJ
  , 
  #chatWrapper .sc-gisBJw {
  background-color:  white;
  background:  white;
  position: inherit;
  min-height: 500px;
}

#chatWrapper .sc-fAjcbJ {
  background-color: white;
  position: relative;
  background: white;
}

/* 
***** style for cross button
*/
#chatWrapper #root .connect-customer-interface .header-wrapper #cross-icon-button {
  position: absolute;
  right: 16px;
  top: 16px;
  height: 16px;
  width: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
/* From Agent -> to User */
.dfx5-message-item-direction-Incoming
  /* , 
  .dfx5-message-item-type-interactive  */
  {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 34px 14px 14px;
  /* border: 1px solid purple !important; */
  width: 100%;  
}
#chatWrapper .dfx5-message-item-direction-Incoming div[direction="Incoming"]{ 
  border-radius: 3px 25px 25px 25px;
  background: #F5F5F5 !important;
  /* border: 1px green solid; */
}
.eyqfYs::after {
  display: none !important;
}
/* Both Way Chat Element */
#chatWrapper .sc-gipzik span.Linkify {
  font-family: 'InterRegular';  
  /* color: #262626 !important; */
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
}
#chatWrapper .sc-gipzik .sc-hzDkRC {
  margin-top: 8px !important;
}
/* Hide sender name on both sender and receiver */
.sc-gipzik .sc-Rmtcm {
  display: none;
}

/* From User -> to Agent */
.dfx5-message-item-direction-Outgoing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 14px 14px 34x;
  /* border: 1px solid rgb(0, 109, 128) !important; */
  width: 100%;  
}
.dfx5-message-item-direction-Outgoing  div[direction="Outgoing"] {
  background: #007788 !important;
  /* background: red !important; */
  max-width: calc( 100% -  20px);
  border-radius: 25px 3px 25px 25px;;
}
#chatWrapper  div[direction="Outgoing"] span.Linkify {
  color: white !important;
}

#chatWrapper #root .connect-customer-interface .sc-gipzik .iQzifD::after {
  border-bottom: none !important;
}










/* Hide Agent name (and also time) in messages */

#chatWrapper #root .connect-customer-interface .sc-gisBJw .sc-gipzik .sc-csuQGl {
  font-size: 13px;   
  font-family: 'InterRegular'; 
  color: #262626;
  font-weight: 500 !important;
  display: none;
}
.dfx5-show-message-sender-and-time .sc-csuQGl {
  display: inline-block !important;
}




/* Sent at text */
#chatWrapper #root .connect-customer-interface .sc-csuQGl .sc-bRBYWo span.sc-fBuWsC span {
  display: none;
}


/* 
**** hiding end chat button 
*/
#chatWrapper #root .sc-hqyNC {
  display: none;
}
#chatWrapper #root .sc-hqyNC .sc-kvZOFW {
  height: 102px;
  background: white !important;
}
#chatWrapper #root .WKMES > button {
  /* display: none; */
  background: #8226ae !important;
  color: white;
  border-radius: 3px;
  width: 152px;
  height: 52px;
  font-size: 18px;
  font-weight: 500;
  font-family: 'InterRegular';
}

/* 
**** End of hiding end chat button 
*/

/* textfield div */
#chatWrapper #root .ewroOU {
  position: relative;
  width: 100%;
  align-items: center;
  min-height: 58px;
  border: none;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  align-items: center;
}

#chatWrapper #root .sc-hmzhuo {
  justify-content: center;
  align-items: center;
}

img.dfx5-bhd-attachment-image {
  width: 16px;
  height: 15px;
}


/* End of textfield div */

.welcome-text {
  margin: 10px;
  padding-right: 40px;
  padding-left: 10px;
  display: inline;
}

.footer-actions {
  background: #eee;
  height: 85px;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: row;
  height: 100%;
  align-items: center;
  border-radius: 5px;
}

.button-wrapper>button {
  min-width: 85px;
  margin: 6px;
  font-weight: bold;
}

.action-button {
  width: 43%;
  line-height: 1.465;
  font-weight: normal;
  white-space: nowrap;
  color: rgb(255, 255, 255);
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  padding-right: 10px;
  padding-left: 10px;
  font-family: AmazonEmber_Md, Helvetica, sans-serif;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  max-width: 260px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.875rem;
  box-shadow: rgba(0, 0, 0, 0.1) 1px 2px 3px 0px;
  border-width: 0px;
  border-style: solid;
  background: linear-gradient(rgb(208, 2, 27), rgb(208, 2, 27) 80%, rgb(233, 2, 30));
  border-color: rgb(208, 2, 27);
}



/* HANDLE AGENT JOINED CHAT */
.dfx5-bhd-agent-joined-additional-div {
  display: none;
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined {
  align-items: flex-start;
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined span.dfx5-header-widget-explanation {
  color: white;
  font-family: 'InterRegular';
  padding-top: 2px;

}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined button#cross-icon-button svg path {
  fill: white !important;
}
#chatWrapper .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 52px;
  background-color: #580a73
  ;
}
.dfx5-bhd-agent-joined-text-span {
  padding-left: 14px;
}
#chatWrapper .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-text-span {
  color: white;
  padding-top: 20px;
  font-family: 'InterRegular';
  font-size: 12px;
}

/* Agent Joined Message  */
.dfx5-agent-joined-message-div {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}
.dfx5-agent-joined-message-div .dfx5-agent-joined-message-time-span {
  color: #909090 !important;
  font-family: 'InterRegular';
  font-size: 12px;
  margin-top: 25px;
}
/* End of Agent Joined Message  */

.dfx5-agent-joined-chime-active-explanation-span
  , 
  #dfx5-agent-joined-chime-active-agent-name-span  {
  display: none;
}
.chime-active .dfx5-agent-joined-chime-active-explanation-span
  , 
  .chime-active  #dfx5-agent-joined-chime-active-agent-name-span{
  display: inline;
}
.chime-active .dfx5-agent-joined-explanation-span {
  display: none;
}


.chime-active .dfx5-bhd-agent-joined-text-span {
  padding-top: 18px !important;
  padding-left: 20px !important;
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div .dfx5-bhd-header-audio-div {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding-right: 13px;  
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div .dfx5-bhd-header-audio-div-text-span {
  text-transform: capitalize;
  font-family: 'InterRegular';
  font-size: 13px;
  font-weight: 500;

}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div #dfx5-temp-start-chime-button-div {
  margin-left: 9px;
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div  a#dfx5-bhd-chime-button {
  display: inline-block;
  padding-top: 7px;
  border-radius: 60px;
  width: 31px;
  height: 31px;
  background-color: #63D744
  ;
}

#dfx5-bhd-chime-button {
  cursor: pointer;
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div .chime-active a#dfx5-bhd-chime-button {
  background-color: #FF5A43;
  margin-top: 1px;
}
.dfx5-bhd-chime-call-icon {
  display: inline;
  line-height: 14px !important;
  max-width: 16px !important;
  vertical-align: unset !important;
  width: 16px;
  height: 16px;
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div .chime-active .dfx5-bhd-chime-call-icon {
  display: none;
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div .dfx5-bhd-chime-stop-call-icon {
  display: none;
}
#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div .chime-active .dfx5-bhd-chime-stop-call-icon {
  display: inline-block;
  /* Below is added because of Mercasid */
  /* vertical-align: text-top !important; */
  vertical-align: unset !important;
  font-size: 10px !important;
  line-height: 10px !important;
  max-width: 21px !important;
  text-size-adjust: none !important;
  margin-top: 3px !important;
  /* Above is added because of Mercasid */
}



#chatWrapper #root .connect-customer-interface .dfx5-bhd-header-agent-joined .dfx5-bhd-agent-joined-additional-div .dfx5-bhd-header-audio-div-text-span {
  color: white;
}

#chatWrapper #root .connect-customer-interface .chime-active .dfx5-bhd-header-audio-div-text-span {
  display: none;
}

.chime-active #dfx5-temp-start-chime-button-div {
  display: flex !important;
  justify-content: end;
  flex-direction: row-reverse;
  
}

#dfx5-bhd-chime-mic-and-speaker-div .dfx5-bhd-chime-speaker-img {
  height: 17px;
  width: 20px;
}

#dfx5-bhd-chime-mic-and-speaker-div {
  display: none;
}


.chime-active #dfx5-bhd-chime-mic-and-speaker-div {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  margin-right: 15px;
  margin-top: 2px;
}

#dfx5-chime-timer-id {
  display: none;
}


.chime-active #dfx5-chime-timer-id {
  display: inline;
  font-size: 12px !important;
  color: white !important;
  font-family: 'InterRegular';
  font-weight: 600;
}

.chime-active .dfx5-bhd-agent-joined-additional-div {
  background: white !important;
  box-shadow: 0px 2.89224px 17.3534px rgba(0, 0, 0, 0.09);
}
.chime-active .dfx5-agent-joined-chime-active-explanation-span
  ,
  .chime-active  #dfx5-chime-timer-id
  ,
  #dfx5-agent-joined-chime-active-agent-name-span {
  color: #262626 !important;
}
#dfx5-agent-joined-chime-active-agent-name-span {
  font-weight: 600 !important;
}

.dfx5-bhd-chime-mic-cross-svg {
  position: relative;
  left: -13px;
  bottom: 2px;
}



/* End of HANDLE AGENT JOINED CHAT */


/* Microphone Div */
#dfx5-bhd-chime-microphone-div
  , 
  #dfx5-bhd-chime-speaker-div {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.dfx5-chime-muted #dfx5-bhd-chime-microphone-div path , .dfx5-chime-muted #dfx5-mic-text-span {
  fill: red;
  color: red !important;
}
 #dfx5-bhd-chime-speaker-div {
  display: flex;
  flex-direction: column;
  margin-left: 13px;
}
#dfx5-mic-icon-span  {
  padding-left: 3px !important;
  padding-bottom: 2px !important;
}
.dfx5-bhd-chime-speaker-span {
  padding-bottom: 0px;
  margin-left: -7px;
  margin-bottom: 3px;
}
.dfx5-bhd-chime-microphone-svg  {
  margin-left: 3px;
}
.dfx5-bhd-chime-speaker-span svg {
  margin-top: 0px;
}
.dfx5-chime-microphone-svg-mic-path {
  height: 17px  !important;
  width: 11px  !important;
  font-size: 9px !important;
  box-sizing: content-box !important;
}
.dfx5-chime-output-muted   #dfx5-bhd-chime-speaker-div path, .dfx5-chime-output-muted #dfx5-speaker-text-span {
  fill: red;
  color: red !important;
}
#dfx5-microphone-bottom-row, #dfx5-speaker-bottom-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding-left: 0 !important;
  font-size: 9px !important;
}
#dfx5-mic-text-span, #dfx5-speaker-text-span {
  padding-left: 0 !important;
  color: #262626;
  font-size: 9px;
}
#dfx5-microphone-bottom-row-button-span , #dfx5-speaker-bottom-row-button-span {
  padding-left: 3px !important;
  font-size: 9px !important;
}
#dfx5-microphone-bottom-row-button-span  svg {
 margin-bottom: 1px;
}
#dfx5-speaker-bottom-row #dfx5-speaker-options-button svg {
  margin-bottom: 1px ;
}

/* End of Microphone Div */

/* video prompt */
.video-call-prompt{
  font-size: 12px!important;
  background-color: #580a73;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
}
.dfx5-video-call-button-container{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color:#fff;
  gap: 8px;
}
.dfx5-video-button{
  height: 36px;
  /* position: relative;
  left: calc(100% - 90px); */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #63D744!important;
  padding: 4px;
  margin: 4px;
  border-radius: 8px;
}
.dfx5-video-button:disabled{
  background-color: #350446!important;
  color:#000;
}
.dfx5-video-button-image{
  max-height: 36px; 
}
#rl-video-container{
  position:fixed;
  z-index: 99999!important;
  padding: 0!important;
  margin: 0!important;
  min-width: 80%!important;
  width: 80%!important;
  min-height: 760px; 
  max-height: 760px; 
  height: auto!important;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  overflow: hidden;
}
#rl-video-container video{
  border-radius: 18px;
}
#rl-video-container #local-video-tile{
  border: 2px solid transparent;
  border-radius: 18px;
  position:absolute;
  left:9px;
  top:9px;
}
#rl-video-container #local-video-tile:hover{
  border: 2px #ededed60 solid;
}
/* #remote-video-tile{
  width: 100%!important;
} */
/* Video controls */

#video-chat-control-panel{

  position: absolute;
  bottom:18px;
  left:30%;
  background-color: rgba(41, 41, 41, 0.8);
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  border-radius: 18px;
  width: 40%;
  height: 60px;
  padding: 9px;
  border: 1px solid #e0e0e040;

}
#video-chat-control-panel button{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: transparent;
  border: 0 solid transparent;
  color: #fff;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  row-gap: 2px;
  transition: transform ease-in-out 0.085s;
}
#video-chat-control-panel button:hover{
  transform: scale(1.1);
}
#video-chat-control-panel button.toggled{
  color:#FF5A43!important;
}
#video-chat-control-panel .video-chat-mic-control-button.toggled path{
  fill: #FF5A43 !important;
  color: #FF5A43!important;
}
#video-chat-control-panel .video-chat-camera-control-button.toggled path{
  stroke: #FF5A43 !important;
  color: #FF5A43!important;
}
#video-chat-control-panel button svg{
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
}
#video-chat-control-panel, #local-video-tile{
  z-index: 999;
}

#video-chat-session-control-button{
  padding: 12px;
  background-color: #FF5A43!important;
  border-radius: 100%;
}
#section-chat{
  transition: opacity 0.5s ease; /* Transition property */}
.sc-fAjcbJ.oTOcm.sc-kjoXOD.fGOqmk{
  max-height: none!important;
}

#toggle-chat-during-video-call-button{
  height: 30px;
  width: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99999999999;
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 2px;
  background-color: #ddd;
  border: 2px solid #ffffff60;
  border-radius: 100%;
  transition: transform 0.3s ease-in-out;
}
#toggle-chat-during-video-call-button span{
  max-width: 18px;
  max-height: 18px;
}

#toggle-chat-during-video-call-button:hover{
  transform: scale(0.9);
}

#connect-animation-container {
  position: absolute;
  left: calc(50% - 69px);
  top: calc(50% - 20px);
  display: flex;
  align-items: center;
}

#connect-animation-container span {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 3px;
  background-color: #580A73;
  border-radius: 50%;
  animation: loading 1.4s infinite;
}

#connect-animation-container span:nth-child(1) {
  animation-delay: 0s;
}

#connect-animation-container span:nth-child(2) {
  animation-delay: 0.2s;
}

#connect-animation-container span:nth-child(3) {
  animation-delay: 0.4s;
}
.dfx5-message-item-direction-Outgoing.dfx5-message-item-click-handler-added a{
  color:#fff!important;
}
.sc-hzDkRC.iQzifD{
  color: white!important;
}

@keyframes loading {
  0%, 80%, 100% {
      transform: scale(0);
  }
  40% {
      transform: scale(1);
  }
}

.message-loader-2 {
  align-items: center;
  border: 1px solid #007788;
  border-radius: 15px;
  display: flex;
  height: 14px;
  justify-content: space-between;
  padding: 0 5px;
  width: 34px;
  position: absolute;
  bottom: 13px;
  left: 8px;
}
.message-loader-2 .loader-bar-2 {
  background: #007788;
  border-radius: 5px;
  height: 5px;
  position: relative;
  width: 5px;
}
.message-loader-2 .loader-bar-2:first-of-type {
  animation: chat-typing-indicator 1.5s infinite;
}
.message-loader-2 .loader-bar-2:nth-of-type(2) {
  animation: chat-typing-indicator 1.5s infinite 0.2s;
}
.message-loader-2 .loader-bar-2:nth-of-type(3) {
  animation: chat-typing-indicator 1.5s infinite 0.4s;
}
@keyframes chat-typing-indicator {
  0% {
    top: 0;
  }
  6.25% {
    top: -1px;
  }
  12.5% {
    top: 0;
  }
  18.75% {
    top: 1px;
  }
  25% {
    top: 0;
  }
  12.5% {
    background: #b1cbcf;
  }
}