@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  font-size: 100%;
  background: #f1f1f1;
}

*,
html {
  --primaryGradient: linear-gradient(93.12deg, #6c0200 0.52%, #a8000d 100%);
  --secondaryGradient: linear-gradient(
    268.91deg,
    #6c0200 -2.14%,
    #a8000d 99.69%
  );
  --primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
  --secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, 0.1);
  --primary: #6c0200;
}

/* CHATBOX
=============== */
.chatbox {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
}

.chatbox p {
  color: initial;
}

.chatbox div {
  /* Reset background color */
  background: initial;
  /* Reset width */
  width: initial;
  /* Reset height */
  height: initial;
  /* Reset margin */
  margin: initial;
  /* Reset padding */
  padding: initial;
  /* Reset font size */
  font-size: initial;
  /* Reset text color */
  color: initial;
  /* Reset border */
  border: initial;
  /* Reset any other styles you want to reset */
  line-height: normal;
  position: static;
  transform: none;
  transition: none;
  display: block;
}

.chatbox img {
  /* Reset background color */
  background: initial;
  /* Reset width */
  width: initial;
  /* Reset height */
  height: initial;
  /* Reset margin */
  margin: initial;
  /* Reset padding */
  padding: initial;
  /* Reset font size */
  font-size: initial;
  /* Reset text color */
  color: initial;
  /* Reset border */
  border: initial;
  /* Reset any other styles you want to reset */
  line-height: normal;
  position: static;
  transform: none;
  transition: none;
  display: block;
}

.chatbox button {
  /* Reset background color */
  background: initial;
  /* Reset width */
  width: initial;
  /* Reset height */
  height: initial;
  /* Reset margin */
  margin: initial;
  /* Reset padding */
  padding: initial;
  /* Reset font size */
  font-size: initial;
  /* Reset text color */
  color: initial;
  /* Reset border */
  border: initial;
  /* Reset any other styles you want to reset */
  line-height: normal;
  position: static;
  transform: none;
  transition: none;
  display: block;
}

.chatbox .chatbox__image--header img {
  border-radius: 50% !important;
  width: 100%;
  display: block;
}

/* CONTENT IS CLOSE */
.disabled-msg {
  pointer-events: none;
}
.chatbox .chatbox__support {
  display: flex;
  flex-direction: column;
  z-index: -123456;
  opacity: 0;
  transition: transform 0.5s ease-in-out, height 0.5s ease-in-out;
  background: #f9f9f9;
  height: 546px;
  width: 100%;
  /* width: 377px; */
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  transform: translateY(-20px);
}

/* CONTENT ISOPEN */
.chatbox .chatbox--active {
  transform: translateY(-20px);
  z-index: 123456;
  opacity: 1;
  padding-bottom: 75px;
}

/* BUTTON */
.chatbox .chatbox__button {
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

.chatbox .send__button {
  padding: 6px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  margin-right: 7px;
  /* display: block !important; */
}

.chatbox .exit__button {
  padding: 6px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: none;
}

.chatbox .exit__button.show-btn {
  display: block;
}

/* HEADER */
.chatbox .chatbox__header {
  position: sticky;
  top: 0;
  background: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  /* border-top-left-radius: 20px;
  border-top-right-radius: 20px; */
  box-shadow: var(--primaryBoxShadow);
  padding: 20px 20px 10px 20px;
}

/* MESSAGES */
.chatbox .chatbox__messages {
  margin-top: auto;
  display: flex;
  overflow-y: scroll;
  flex-direction: column-reverse;
  position: relative;
  padding: 0 20px;
  font-family: "open-sans", sans-serif;
}

.chatbox .messages__item {
  width: fit-content;
  margin-top: 10px;
  background: #f1f1f1;
  padding: 14px 12px;
  max-width: 93%;
  font-family: "Open Sans", sans-serif;
  font-size: 17px;
  line-height: 22px;
}

.chatbox .messages__item--operator {
  margin-left: auto;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  background: var(--primary);
  color: white;
}

.chatbox .messages__item--visitor {
  margin-right: auto;
}

.chatbox .chatbox__loading {
  display: flex;
  margin: 6px 0 0 0;
}

.chatbox .chatbox__loading img {
  display: block;
  width: 31px;
}

/* FOOTER */
.chatbox .chatbox__footer {
  position: absolute;
  width: 100%;
  z-index: 99999999999999;
  bottom: 0;
  /* position: sticky;*/
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  /* background: var(--secondaryGradient); */
  background: var(--primary);
  box-shadow: var(--secondaryBoxShadow);
  /* border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px; */
  margin-top: 20px;
}

/* .chatbox .chatbox--active .chatbox__footer {
  bottom: 0;
} */

.chatbox .chatbox__support .chatbox__header {
  justify-content: flex-start;
}

.chatbox p {
  font-size: 17px !important;
}
/* HEADER */

.chatbox .chatbox__image--header {
  margin-right: 10px;
  width: 55px;
}

.chatbox .chatbox__heading--header {
  font-size: 19.2px;
  color: white;
  font-family: "open-sans", sans-serif;
}

.chatbox .chatbox__description--header {
  font-size: 14.4px;
  color: white;
  font-family: "open-sans", sans-serif;
}

/* Messages */

.messages__item--visitor,
.messages__item--typing {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* FOOTER */

.chatbox .chatbox__footer input {
  width: 80%;
  border: none;
  padding: 10px 10px;
  border-radius: 30px;
  text-align: left;
  font-size: 15px !important;
  background-color: #fff !important;
  font-family: "open-sans", sans-serif;
  touch-action: manipulation;
}

.chatbox .chatbox__send--footer {
  color: white;
}

.chatbox__button button,
.chatbox__button button:focus,
.chatbox__button button:visited {
  /* padding: 10px; */
  background: white;
  border: none;
  outline: none;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 50px;
  /* box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1); */
  cursor: pointer;
  width: 70px;
  height: 70px;
}
.chatbox__button {
  width: 70px !important;
}
.chatbox--active ~ .chatbox__button {
  width: auto !important;
}

.chatbox__button button img {
  display: block;
  width: 100%;
  height: 100%;
}

.chatbox .tech-btn {
  padding: 6px;
  border: 1px solid #000;
  border-radius: 10px;
  margin: 6px 0;
  cursor: pointer;
}

.chatbox .tech-wrap {
  text-align: center;
}

.chatbox .ques_block {
  text-align: left;
  position: relative;
  cursor: pointer;
  margin: 10px 0;
  border: 1px solid #a3a0a0;
  border-radius: 16px;
  background: #fff;
  padding: 16px 9px 16px 26px;
  line-height: 16px;
  transition: all 0.5s;
  font-family: "open-sans", sans-serif;
}

.chatbox .ques_block:hover {
  background: #e5e5e5;
}

.chatbox .ques_block::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 36px;
  background-color: #fff;
  border-radius: 10px;
  z-index: 1;
}

.chatbox .ques_block::before {
  position: absolute;
  content: "";
  left: 10px;
  top: 19px;
  width: 10px;
  height: 10px;
  background-color: #e1e1e1;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.5s;
}

.chatbox .ques_block:hover::before {
  background-color: #000;
}

.chatbox .joined__text__chatbox {
  font-size: 12px;
  color: #ababab;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
}

.chatbox .joined__text__chatbox::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  width: calc(50% - 125px);
  height: 1px;
  background: #ababab;
  z-index: -1;
}

.chatbox h4 p {
  margin-bottom: 0;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
}

.chatbox .chatbox__para {
  font-size: 15px;
  line-height: 1.6;
  color: #9b9b9b;
}

.chatbox .joined__text__chatbox p {
  font-size: 17px;
}

.chatbox .joined__text__chatbox::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  width: calc(50% - 125px);
  height: 1px;
  background: #ababab;
  z-index: -1;
}

.chatbox .chatbox__messages:after {
  display: none;

  /* DEV----------------------- */
  /* background: url('https://chatboting.devsparxit.com/chat-widget/images/typing-loading-chatbox.gif'); */

  /* UAT--------------------- */
  background: url("https://chatboting.uatsparxit.xyz/chat-widget/images/typing-loading-chatbox.gif");
  /* background: url("https://chatboting.devsparxit.com/chat-widget/images/typing-loading-chatbox.gif"); */

  /* lIVE URL----- */
  /* background: url("https://bot.openchatbot.ai/images/typing-loading-chatbox.gif"); */

  position: absolute;
  bottom: -8px;
  left: 20px;
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background-size: 42px;
  background-repeat: no-repeat;
}

.chatbox .chatbox__messages .messages__item.messages__item--visitor {
  pointer-events: none;
}
.chatbox
  .chatbox__messages
  .messages__item.messages__item--visitor:first-child {
  pointer-events: all;
}

.chatbox .chatbox__messages.active {
  padding-bottom: 39px;
}

.chatbox .active.chatbox__messages::after {
  display: block;
}

.chatbox .chatbox__content--header h4 {
  font-size: 19.2px;
}

.chatbox .chatbox__content--header p {
  font-size: 14.4px;
  margin-bottom: 0;
}

/* chatbox */
.vertical-right .chatbox__button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.vertical-right-frame.chatbot-iframe-active .vertical-right .chatbox__button {
  /* transform: translateY(-100%); */
}

.vertical-right {
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.vertical-right .chatbox__support {
  margin: 0 auto;
}

.vertical-right .chatbox__footer {
  bottom: 0;
}
.chatbox__support.chatbox--active {
  box-shadow: -1px 0px 11px rgb(0 0 0 / 15%);
}
.bot_btn_wrap {
  margin-left: 15px !important;
  display: flex !important;
  gap: 10px;
  position: absolute !important;
  top: 16px;
  right: 4px;
}
.bot_btn_wrap button {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7499%)
    hue-rotate(184deg) brightness(96%) contrast(101%);
  cursor: pointer;
  border: none;
  outline: none;
}
.refresh-bot {
  /* live ------------- */
  /* background: url("https://bot.openchatbot.ai/images/refresh.svg") no-repeat center !important; */

  /* DEV----------------------------- */
  /* background: url("https://chatboting.devsparxit.com/chat-widget/images/refresh.svg") no-repeat center !important;*/

  /* UAT------------------------------- */
  background: url("https://chatboting.uatsparxit.xyz/chat-widget/images/refresh.svg")
  /* background: url("https://chatboting.devsparxit.com/chat-widget/images/refresh.svg") */
    no-repeat center !important;
}
.cross-bot {
  /* live----------------- */
  /* background: url("https://bot.openchatbot.ai/images/close.svg") no-repeat center !important; */

  /* DEV---------------------------- */
  /* background: url("https://chatboting.devsparxit.com/chat-widget/images/close.svg") no-repeat center !important; */

  /* UAT----------------------------------- */
  background: url("https://chatboting.uatsparxit.xyz/chat-widget/images/close.svg")
  /* background: url("https://chatboting.devsparxit.com/chat-widget/images/close.svg") */
    no-repeat center !important;
}
/* @media screen and (max-width: 480px) {
  .chatbox__support.chatbox--active {
    height: 100%;
  }
  #chatbox .chatbox--active {
    height: 100vh;
  }
  .chatbox .chatbox__header {
    border-radius: 0;
  }
  .chatbox {
    width: 100%;
  }
  .chatbox .chatbox__footer{
    border-radius: 0;
  }
  .chatbox .chatbox__support{
    transform: translateY(0);
  }
  .chatbox__support.chatbox--active~ #chatbox__button{
    display: none;
  }
} */
/* 
.baseChatBody .chatbox{
  display:none;
} */
body .chatbox .chatbox__button {
  position: absolute;
  right: 0;
  bottom: 25px;
}
body .chatbox__support.chatbox--active {
  height: 100%;
  position: relative;
}
body .chatbox {
  bottom: -20px;
  height: 100%;
  padding: 0 !important;
  display: flex;
  align-items: flex-end;
}
body .chatbox .chatbox__header {
  padding: 9px 60px 10px 20px;
}
body .bot_btn_wrap {
  top: 8px;
}
.send__button {
  /* live----------------- */
  /* background: url("https://bot.openchatbot.ai/images/send.svg") no-repeat center !important; */

  /* DEV--------------------------- */
  /* background: url("https://chatboting.devsparxit.com/chat-widget/images/send.svg") no-repeat center !important; */

  /* UAT----------------------------------- */
  background: url("https://chatboting.uatsparxit.xyz/chat-widget/images/send.svg")
  /* background: url("https://chatboting.devsparxit.com/chat-widget/images/send.svg") */
    no-repeat center !important;

  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7499%)
    hue-rotate(184deg) brightness(96%) contrast(101%);
  width: 56px !important;
  height: 35px !important;
  background-size: 50px 35px !important;
  display: block;
}
.chatbox .chatbox__footer input:focus-visible {
  outline: none !important;
}
input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
.chatbox__support {
  opacity: 0;
}
.chatbox__support.chatbox--active {
  opacity: 1;
}

#dynamicPositionImage {
  display: none;
}

body.desktop-chat .chatbox {
  height: auto;
  display: block;
  padding: 0 !important;
  bottom: 0;
}
body.desktop-chat .chatbox .chatbox__button {
  position: static;
}
body.desktop-chat .chatbox__support.chatbox--active,
.desktop-chat .chatbox .chatbox__support {
  height: 476px;
}
/*** iPhone and iOS Form Input Zoom Fixes ***/

/* Fix Input Zoom on devices older than iPhone 5: */
@media screen and (max-device-width: 991px) {
  .chatbox .chatbox__footer input[type="text"] {
    font-size: 16px !important;
  }
}
