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

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(720deg);
  }
}

@keyframes zoom-in-zoom-out {
  0% {
    scale: 100%;
  }

  50% {
    scale: 150%;
  }

  100% {
    scale: 100%;
  }
}

.position-absolute {
  position: absolute;
}

.r-60 {
  right: 60px;
}

.r-50 {
  right: 50px;
}

.r-40 {
  right: 40px;
}

.r-30 {
  right: 30px;
}

.r-20 {
  right: 20px;
}

.r-10 {
  right: 10px;
}

.b-10 {
  bottom: 10px;
}

.gap-10 {
  gap: 10px;
}

.editor-wrapper {
  position: relative;
  display: block;
}

#chatBox * {
  margin-block-start: 0;
  box-sizing: border-box;
}

#chatBox .hide {
  display: none;
}

#chatBox .flex {
  display: flex;
}

#chat-icon {
  margin-block-start: 0;
  box-sizing: border-box;
  position: fixed;
  z-index: 9990;
  bottom: 100px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
}

#chat-icon.hide {
  opacity: 0;
  filter: alpha(opacity=0);
}

#chat-icon img {
  width: 150px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chat-icon img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

#chat-icon img.thumbnail-mini {
  width: 80px;
}

#chat-icon img.thumbnail-medium {
  width: 150px;
}

#chat-icon img.thumbnail-large {
  width: 200px;
}

.chatBox-shortCode {
  position: relative;
  z-index: auto;
}

#chatBox {
  border-radius: 10px;
  margin-block-start: 0;
  box-sizing: border-box;
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 640px;
  max-width: 100%;
  min-height: 180px;
  border: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  background: rgb(0 0 0 / 20%);
}

#chatBox.show {
  z-index: 9991;
  opacity: 1;
  visibility: visible;
  position: fixed !important;
}

.chatBox-shortCode #chatBox.fullwidth,
#chatBox.fullwidth {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 30000px rgba(0, 0, 0, 0.5);
  bottom: auto;
  height: min(80vh, 600px) !important;
  width: 90% !important;
  max-width: 1000px;
  right: auto;
  margin-right: auto;
  z-index: 9991;
}

.chatBox-shortCode #chatBox {
  position: relative !important;
  bottom: auto;
  right: auto;
  margin: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
  z-index: auto;
}

#chatBox.fullwidth.showTranscript {
  max-width: 1300px;
}

#chatBox.fullwidth .transcriptContainer {
  border-radius: 0 10px 10px 0;
  width: 35%;
}

#chat-widget {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  min-height: 180px;
  border: 0;
  box-shadow: unset;
  background: #ffffff;
  border-radius: 10px;
  justify-content: center;
}

.chatBox-fullscreen,
#chatBox-action {
  z-index: 9993;
  color: #ffffff;
  font-size: 14px;
}

.avatarContainer #chatBox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9993;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  padding: 8px !important;
  transition: all 0.3s ease;
}

.chatBox-shortCode #chatBox-close {
  display: none;
}

.chatBox-shortCode .language-switcher {
  right: 10px;
}

#chatBox-close,
.chatBox-fullscreen,
.language-switcher,
.view-transcript-button,
.avatarAndTranscriptWrapper .textInput-wrapper,
.avatarAndTranscriptWrapper .listeningIcon,
.avatarContainer .avatar_name {
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 5px !important;
  padding: 0 !important;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  z-index: 9992;
}

.chatBox-fullscreen,
.view-transcript-button {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 10px !important;
}

.avatarContainer .avatar_name {
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 0 !important;
  font-weight: 700;
  width: auto;
  padding: 5px 15px !important;
  color: #fff;
  height: auto;
  font-size: 15px;
  line-height: 1.4em;
  opacity: 0;
  visibility: hidden;
}

.avatarSessionStarted .avatarContainer .avatar_name {
  opacity: 1;
  visibility: visible;
}

#chatBox-close:hover,
.chatBox-fullscreen:hover,
.language-switcher:hover,
.view-transcript-button:hover {
  background: rgba(0, 0, 0, 0.75) !important;
}

.fullwidth .chatBox-fullscreen .bi-fullscreen {
  display: none;
}

.fullwidth .chatBox-fullscreen .bi-arrows-angle-contract {
  display: block !important;
}

#chatBox-heading {
  border-radius: 10px 10px 0 0;
  font-size: 18px;
  position: absolute;
  text-align: center;
  top: 0;
  left: 0;
  z-index: 9991;
  width: 100%;
  background: #000000 !important;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  ) !important;
  padding: 10px 10px;
  color: #fff;
  box-sizing: border-box;
}

#chatBox.showTranscript {
  width: 980px;
}

/** */
.avatarAndTranscriptWrapper {
  display: flex;
  align-items: start;
}

.chatBox-shortCode .avatarAndTranscriptWrapper {
  flex-wrap: wrap;
}

.avatarAndTranscriptWrapper .avatarContainer {
  float: left;
  z-index: 9991;
  background: #fff;
  transition: all 0.3s ease;
}

#chatBox .avatarAndTranscriptWrapper .transcriptContainer {
  display: none !important;
  z-index: 9991;
  transition: all 0.3s ease;
}

#chatBox.showTranscript .avatarAndTranscriptWrapper .transcriptContainer {
  display: block !important;
}

.avatarAndTranscriptWrapper .transcriptContainer {
  float: right;
  cursor: default;
}

.showTranscript .avatarAndTranscriptWrapper .avatarContainer {
}

.showTranscript .avatarAndTranscriptWrapper .transcriptContainer {
  width: min(max(428px, 33%), 428px);
  display: block !important;
}

#chatBox .avatarContainer {
  border-radius: 10px;
  border: 0;
}

#chatBox.fullwidth .avatarContainer {
  width: 100%;
  max-width: 100%;
}

#chatBox.fullwidth.showTranscript .avatarContainer {
  width: 65%;
}

.avatarContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  max-width: 992px;
  margin: 0 auto;
  border: 2px solid transparent;
}

#video_holder {
  width: 100%;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  min-width: 250px;
  font-size: 16px;
  isolation: isolate;
  overflow: hidden;
  -webkit-transition: opacity 0.2s ease, height 0.3s ease, width 0.3s ease;
  transition: opacity 0.2s ease, height 0.3s ease, width 0.3s ease;
}

.fullwidth #video_holder {
  height: 600px;
}

.fullwidth.showTranscript #video_holder {
  height: 500px;
}

.avatarContainer #avatarVideo {
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: height 0.3s ease;
}

.userVideoContainer #userVideo {
  width: min(max(120px, 25%), 120px);
  border-radius: 12px;
  position: absolute;
  left: 6px;
  bottom: 30px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.userVideoContainer #userVideo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7),
    0 0 15px rgba(255, 255, 255, 0.4) inset;
}

.userVideoContainer #userVideo::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.6);
  pointer-events: none;
}

.avatarAndTranscriptWrapper .actionContainer {
  position: absolute;
  bottom: 30px;
  left: 0px;
  display: none;
  flex-direction: row;
  gap: 5px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.fullwidth .avatarAndTranscriptWrapper .actionContainer {
  left: 0;
  justify-content: center;
}

.avatarSessionStarted .actionContainer {
  display: flex;
  justify-content: center;
}

.avatarContainer .actionContainer button {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50px !important;
  background-color: rgb(239, 68, 68);
  color: #fff;
}

.avatarContainer button,
.avatarAndTranscriptWrapper button {
  font-weight: 500;
  border-radius: 9999px;
  text-align: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.avatarContainer button:focus,
.avatarAndTranscriptWrapper button:focus {
  outline: none;
}

.avatarContainer button:focus-visible,
.avatarAndTranscriptWrapper button:focus-visible {
  ring: 4px solid rgba(59, 130, 246, 0.3);
}

.avatarAndTranscriptWrapper #interruptTask {
  display: none;
  background-color: #1d4ed8;
  color: white;
}

.avatarAndTranscriptWrapper #interruptTask:hover {
  background-color: #1e40af;
}

.avatarAndTranscriptWrapper #interruptTask:focus-visible {
  background-color: #1d4ed8;
}

.avatarAndTranscriptWrapper #endSession {
  background-color: #1d4ed8;
  color: white;
}

#chat-widget #endSession {
  color: white;
  border: 0 solid #ffffff6c;
  font-weight: 700;
  cursor: pointer;
  background: #1d4ed8;
}

.avatarAndTranscriptWrapper #endSession:hover {
  background-color: #1e40af;
}

.avatarAndTranscriptWrapper #endSession:focus-visible {
  background-color: #1d4ed8;
}

.avatarAndTranscriptWrapper button.dark {
  background-color: #2563eb;
}

.avatarAndTranscriptWrapper button.dark:hover {
  background-color: #1d4ed8;
}

.avatarAndTranscriptWrapper button.dark:focus-visible {
  background-color: #1d4ed8;
}

.avatarContainer .welcomeContainer {
  position: absolute;
  z-index: 9992;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* gap-8 */
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.avatarContainer .chatBtnContainer {
  max-width: 18.75rem;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.avatarContainer button.disclaimer {
  padding: 5px 20px;
  background-color: rgba(29, 78, 216, 0.5);
  color: white;
  border: 0 solid #ffffff6c;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.avatarContainer #startSession {
  padding: 5px 20px;
  background-color: rgba(29, 78, 216, 0.5);
  color: white;
  border: 0 solid #ffffff6c;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.avatarContainer #startSession:hover {
  background-color: rgba(29, 78, 216, 1);
}

.avatarContainer #startSession:focus-visible {
  background-color: #1d4ed8;
}

.avatarContainer #startSession.dark {
  background-color: #2563eb;
}

.avatarContainer #startSession.dark:hover {
  background-color: #1d4ed8;
}

.avatarContainer #startSession.dark:focus-visible {
  background-color: #1d4ed8;
}

.avatarContainer .loadingText {
  display: none;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 30px;
  border-radius: 50px;
  font-size: 16px;
}

.avatarContainer .loading-icon {
  display: none;
  color: teal;
  font-size: 8rem;
  animation: animate 2s infinite;
}

.avatarContainer.loading .loadingText,
.avatarContainer.loading .loading-icon {
  display: block;
}

.avatarContainer.loading .chatBtnContainer {
  display: none !important;
}

.avatarContainer.streamReady .actionContainer {
  display: flex !important;
}

.avatarContainer.streamReady .welcomeContainer {
  display: none !important;
}

.avatarContainer .switchMode {
  width: 40px;
  height: 40px;
  cursor: pointer;
  text-align: center;
  color: #fff;
  font-size: 28px;
  line-height: 40px;
}

.avatarAndTranscriptWrapper .listeningIcon {
  width: 60px;
  height: 30px;
  background-position: center;
  background-size: auto 50px;
  background-repeat: no-repeat;
  border-radius: 50px !important;
  position: absolute;
  bottom: 100%;
  background: transparent !important;
}

.avatarAndTranscriptWrapper .textInput-wrapper {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  width: 100%;
  height: 40px;
}

.avatarAndTranscriptWrapper .textInput-wrapper .textInput {
  width: 100%;
  height: 100%;
  border-radius: 100px;
  background: transparent;
  padding: 5px 45px 5px 15px;
  border: 0;
  color: #111111;
}

.avatarAndTranscriptWrapper .textInput-wrapper .textInput::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

.text_mode .avatarAndTranscriptWrapper .textInput-wrapper {
  display: flex;
  width: 100%;
  border: 1px solid;
  justify-content: center;
}

.avatarAndTranscriptWrapper .textInput-wrapper .speakButton {
  width: 40px;
  height: 40px;
  background-position: center;
  background-size: auto 40px;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 1);
  border-radius: 50px;
  cursor: pointer;
  position: absolute;
  right: 0;
  display: inline;
  text-align: center;
  font-size: 30px;
  color: #ffffff;
  line-height: 40px;
}

.text_mode .avatarAndTranscriptWrapper .listeningIcon {
  display: none;
}

.talking #listeningIcon.hide {
  display: block !important;
}

.talking .avatarAndTranscriptWrapper .listeningIcon {
  background-image: url("./../images/streaming-listening-dark.gif") !important;
  background-position: center !important;
  background-size: cover !important;
  background-color: rgb(255 255 255 / 80%) !important;
  box-shadow: 0px 0px 25px #ffffff;
}

#chatBox img.emoji {
  height: 24px !important;
  width: 24px !important;
  margin: 7px !important;
}

button.exportTranscript {
  margin: 10px 0;
  padding: 7px 10px;
}

.transcriptContainer {
  position: relative;
  padding: 0;
  display: none;
  width: 300px;
  margin: 0 auto;
  background: #ffffff;
}

.transcriptContainer p {
  font-size: 14px;
  position: relative;
  min-height: 28px;
}

#transcriptContainer .transcript-inner {
  display: flex;
  align-items: stretch;
  justify-content: start;
  flex-direction: column;
  gap: 0;
  column-gap: 0;
  position: relative;
  padding: 0;
}

#transcriptContainer .actionContainer {
  padding: 15px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
}

#transcriptContainer .actionContainer .textInput-wrapper {
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
}

#transcriptContainer .actionContainer .textInput-wrapper input {
  background: #ffffff;
  border: 0 !important;
  border-radius: 0;
  padding-left: 0 !important;
  outline: none !important;
  font-size: 16px;
}

#transcriptContainer .transcript-heading {
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  padding: 15px;
  margin: 0;
  height: 60px;
  border-bottom: 1px solid #dddddd;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

#transcriptContainer .transcript-heading h4 {
  width: 100%;
  margin: 0;
  font-weight: 700;
}

#transcriptContainer .transcript-heading button {
  padding: 6px;
  font-size: 13px;
  color: #111111;
  border: 1px solid #ddd;
  margin: 0 0 0 15px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  cursor: pointer;
  gap: 5px;
}

#transcriptContainer .transcript-heading button:hover {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

#transcriptContainer #voiceTranscript {
  margin: 60px 0 70px;
  overflow-y: auto;
  padding: 15px;
  width: 100%;
  border-bottom: 1px solid #dddddd !important;
  color: #000;
  transition: height 0.3s ease;
}

.fullwidth #chat-widget #transcriptContainer #voiceTranscript,
.fullwidth #chat-widget.text_mode #transcriptContainer #voiceTranscript {
  height: 370px;
}

#chat-widget.voice_mode #transcriptContainer #voiceTranscript {
  height: 300px;
  max-height: 300px;
  margin-bottom: 0;
}

.fullwidth #chat-widget.voice_mode #transcriptContainer #voiceTranscript {
  height: 440px;
  max-height: 440px;
}

#voiceTranscript .replica.transcript,
#voiceTranscript .avatar.transcript {
  padding: 10px !important;
  margin: 0 0 10px !important;
  border-radius: 0 10px 10px !important;
  color: #111111 !important;
  background: #ffffff !important;
  max-width: 80%;
  border: 1px solid #dddddd;
}

#voiceTranscript .user.transcript {
  padding: 10px !important;
  border-radius: 10px !important;
  background: #f3f3f3 !important;
  border: 0;
  width: auto;
  display: flex;
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: end;
  max-width: 80%;
  justify-self: end;
  margin-bottom: 10px !important;
}

.text_mode .micToggler,
.text_mode .cameraToggler {
  display: none !important;
}

.voice_mode .micToggler {
  display: flex !important;
}

.micToggler {
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  padding: 8px 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: none;
}

/* Main toggle button */
.view-transcript-button {
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  color: #ffffff;
  font-size: 14px;
  vertical-align: top;
}

.showTranscript .view-transcript-button {
  background: #ffffff !important;
  color: #000000 !important;
}

.view-transcript-button.active {
  background-color: #e63946;
}

.chatBox-shortCode .view-transcript-button .icon {
  rotate: 90deg;
}

.showTranscript .view-transcript-button .icon-hide,
.view-transcript-button .icon-view {
  display: block !important;
}

.showTranscript .view-transcript-button .icon-view,
.view-transcript-button .icon-hide {
  display: none !important;
}

.streamingCountdown-container {
  position: absolute;
  top: 20px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.51);
  border: none;
  border-radius: 10px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  z-index: 9992;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 5px 10px;
  font-weight: bold;
}

.streamingCountdown-container.session_ended,
.streamingCountdown-container.session_expired {
  color: #ffffff !important;
  background: #ff00004d !important;
}

.language-switcher {
  position: absolute;
  top: 10px;
  right: 50px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9993;
  font-size: 14px;
  color: #ffffff;
}

.language-switcher .lang-icon {
  cursor: pointer;
  user-select: none;
  margin: 0px !important;
  display: flex;
  font-size: inherit;
  align-items: center;
  justify-content: center;
  padding: 5px 5px;
}

#chatBox .language-switcher .lang-icon img.emoji {
  margin: 0 !important;
}

#chatBox #selectedLanguage img {
  vertical-align: middle !important;
  position: relative;
}

.language-switcher .dropdown {
  display: none;
  position: absolute;
  top: 0px;
  right: 50px;
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid #ffffff2f;
  border-radius: 4px;
  min-width: 100px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.language-switcher .dropdown a {
  padding: 0px;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  display: flex;
  justify-content: start;
  align-items: center;
}

.language-switcher .dropdown img.emoji {
  height: 20px !important;
  width: 20px !important;
  margin: 0px 5px 0px 0px !important;
  z-index: 2;
  position: relative;
}

.language-switcher .dropdown a:hover {
  background-color: #000000;
}

/*
*
*/
.disclaimer-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9996;
  color: #fff;
}

.disclaimer-container.show {
  display: flex !important;
}

.disclaimer-content {
  background-color: rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.7);
  animation: fadeInUp 0.3s ease-out;
}

.disclaimer-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #7e7e7e;
}

.disclaimer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.closeDisclaimer {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #f00;
  transition: color 0.2s ease;
  padding: 5px;
  line-height: 1;
  margin-left: auto;
}

.closeDisclaimer:hover {
  color: #e00;
}

.disclaimer-body {
  padding: 20px;
  font-size: 14px;
  overflow-y: scroll;
  height: 70vh;
}

.disclaimer-action {
  padding: 10px;
  text-align: right;
}

.disclaimer-action .submit-button {
  background-color: #4caf50;
  color: white;
  padding: 6px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.disclaimer-action .submit-button:hover {
  background-color: #45a049;
}

.disclaimer-body .wp-video,
.disclaimer-body .mejs-container {
  margin: auto;
}

/*
* instruction
*/
.instruction-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9996;
  color: #fff;
}

.instruction-container.show {
  display: flex !important;
}

.instruction-content {
  background-color: rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.7);
  animation: fadeInUp 0.3s ease-out;
}

.instruction-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #7e7e7e;
}

.instruction-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.closeInstruction {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #f00;
  transition: color 0.2s ease;
  padding: 5px;
  line-height: 1;
  margin-left: auto;
}

.closeInstruction:hover {
  color: #e00;
}

.instruction-body {
  padding: 20px;
  font-size: 14px;
  overflow-y: scroll;
  max-height: 70vh;
}

.instruction-action {
  padding: 10px;
  text-align: right;
}

.instruction-action .submit-button {
  background-color: #4caf50;
  color: white;
  padding: 6px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.instruction-action .submit-button:hover {
  background-color: #45a049;
}

#chatBox .wp-video * {
  box-sizing: initial;
}

.instruction-body .wp-video,
.instruction-body .mejs-container {
  margin: auto;
}

/* Overlay Background */
.overlayQuestion-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9996;
}

.overlayQuestion-container.show {
  display: flex !important;
}

.overlayQuestion-content {
  background-color: rgba(255, 255, 255, 0.9);
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.3s ease-out;
}

.overlayQuestion-header {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.overlayQuestion-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.closeOverlayQuestion {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
  padding: 5px;
  line-height: 1;
  margin-left: auto;
}

.closeOverlayQuestion:hover {
  color: #e00;
}

.overlayQuestion-body {
  padding: 20px;
  font-size: 14px;
  color: #333;
}

.overlayQuestion-body .radio-option {
  display: flex;
  gap: 10px;
}

.overlayQuestion-body .radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlayQuestion-action {
  padding: 10px;
  text-align: right;
}

.overlayQuestion-action .submit-button {
  background-color: #4caf50;
  color: white;
  padding: 6px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.overlayQuestion-action .submit-button:hover {
  background-color: #45a049;
}

.avatarSessionStarted .language-switcher {
  display: none;
}

.avatarSessionStarted .view-transcript-button,
.avatarSessionStarted .micToggler {
  display: inline;
}

.avatarSessionStarted .micToggler {
  top: 60px;
  font-size: 22px;
}

div#streamingStatus {
  position: relative;
  font-size: 13px;
  height: 100px;
  overflow-y: scroll;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 936px) {
  #chatBox.showTranscript {
    margin-right: min(max(428px, 33%), 428px);
  }

  .showTranscript:not(.fullwidth)
    .avatarAndTranscriptWrapper
    .transcriptContainer {
    width: min(max(428px, 33%), 428px);
    position: absolute;
    left: calc(100% - 10px);
    z-index: 9991;
    border: 1px solid #ddd;
  }

  .chatBox-shortCode #chatBox {
    margin: auto;
  }

  .chatBox-shortCode
    .showTranscript:not(.fullwidth)
    .avatarAndTranscriptWrapper
    .transcriptContainer {
    width: 100%;
    position: relative;
    left: auto;
  }
}

@media only screen and (max-width: 935px) {
  .left-content,
  div[data-elementor-id="205164"] {
    z-index: 5 !important;
  }

  #chat-icon {
    bottom: 100px;
  }

  #chat-widget {
    min-height: 180px;
  }

  #chatBox.fullwidth #chat-widget {
    position: relative;
    bottom: auto;
    height: 100%;
  }

  #chatBox.fullwidth #chat-widget .avatarAndTranscriptWrapper {
    position: relative;
  }

  #chatBox {
    margin: auto;
  }

  #chatBox,
  #chatBox .avatarContainer,
  #chat-widget,
  #chatBox-heading {
    border-radius: 0;
  }

  .avatarAndTranscriptWrapper .actionContainer {
    bottom: 60px;
  }

  #chatBox.fullwidth .language-switcher,
  #chatBox.fullwidth #chatBox-close,
  #chatBox.fullwidth .streamingCountdown-container,
  #chatBox.show .language-switcher,
  #chatBox.show #chatBox-close,
  #chatBox.show .streamingCountdown-container {
    top: 70px;
  }

  .avatarSessionStarted .micToggler {
    top: 110px;
  }

  .chatBox-shortCode #chatBox.show,
  #chatBox.show,
  .chatBox-shortCode #chatBox.fullwidth,
  #chatBox.fullwidth {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 0 0 30000px rgba(0, 0, 0, 0.5) !important;
    bottom: auto !important;
    height: calc(100vh - 50px) !important;
    width: 100% !important;
    max-width: 1000px !important;
    right: auto !important;
    z-index: 9995;
  }

  .show #video_holder,
  .fullwidth #video_holder {
    height: 100vh;
  }

  #userVideo {
    width: 22%;
    bottom: 80px;
  }

  #chatBox.show .avatarAndTranscriptWrapper {
    flex-direction: column;
  }

  #chatBox.fullwidth.showTranscript
    .avatarAndTranscriptWrapper
    .avatarContainer,
  #chatBox.show.showTranscript .avatarAndTranscriptWrapper .avatarContainer,
  .show.showTranscript #video_holder,
  .fullwidth.showTranscript #video_holder {
    height: calc(60vh - 50px);
    width: 100%;
  }

  #chatBox.fullwidth.showTranscript
    .avatarAndTranscriptWrapper
    .transcriptContainer,
  #chatBox.show.showTranscript
    .avatarAndTranscriptWrapper
    .transcriptContainer {
    height: 40vh;
    width: 100%;
  }

  #transcriptContainer .actionContainer,
  #transcriptContainer .transcript-heading,
  #transcriptContainer #voiceTranscript {
    width: 100%;
  }

  #transcriptContainer .actionContainer {
    padding-bottom: 50px;
  }

  #transcriptContainer #voiceTranscript {
    margin-bottom: 100px;
  }

  #chat-widget.voice_mode #transcriptContainer #voiceTranscript {
    padding-bottom: 70px;
  }

  #chatBox.show .welcomeContainer .action-view-transcript {
    right: 10px;
  }

  #chatBox .chatBox-fullscreen {
    display: none !important;
    visibility: hidden;
    opacity: 0;
  }

  .chatBox-shortCode #chatBox .chatBox-fullscreen {
    display: block !important;
    visibility: visible;
    opacity: 1;
  }

  .instruction-body {
    padding: 10px;
  }
}

@media screen and (max-device-width: 935px) and (orientation: landscape) {
  #chatBox.show .avatarAndTranscriptWrapper {
    flex-direction: row;
  }

  #chatBox.show.showTranscript .avatarAndTranscriptWrapper .avatarContainer,
  .show.showTranscript #video_holder,
  .fullwidth.showTranscript #video_holder,
  #chatBox.show.showTranscript
    .avatarAndTranscriptWrapper
    .transcriptContainer {
    height: 100vh;
  }

  #transcriptContainer .actionContainer,
  #transcriptContainer .transcript-heading,
  #transcriptContainer #voiceTranscript {
    width: 100%;
  }

  #transcriptContainer .transcript-heading {
    padding-top: 50px;
    height: 90px;
  }

  #transcriptContainer .actionContainer {
    padding: 15px 15px 60px;
  }

  #transcriptContainer #voiceTranscript {
    margin: 90px 0 115px;
  }

  #chat-widget.voice_mode #transcriptContainer #voiceTranscript {
    padding-bottom: 50px;
  }

  #chatBox.show.showTranscript .avatarAndTranscriptWrapper .avatarContainer {
    width: 65%;
  }

  #chatBox.show.showTranscript
    .avatarAndTranscriptWrapper
    .transcriptContainer {
    width: 35%;
  }

  #chat-widget #transcriptContainer #voiceTranscript,
  #chat-widget.text_mode #transcriptContainer #voiceTranscript,
  #chat-widget.voice_mode #transcriptContainer #voiceTranscript {
    max-height: unset;
  }
}

@media (max-width: 400px) {
  #chat-icon {
    bottom: 100px;
  }

  #chatBox {
    bottom: 105px;
    width: 370px;
    right: 10px;
  }

  #chat-widget {
  }

  #chatBox.fullwidth #chat-widget {
    position: relative;
    bottom: auto;
  }

  #chatBox.show .userVideoContainer #userVideo,
  #chatBox.fullwidth .userVideoContainer #userVideo {
    bottom: 110px;
  }
}
