* {
  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, #581b98 0.52%, #9c1de7 100%);
  --secondaryGradient: linear-gradient(
    268.91deg,
    #581b98 -2.14%,
    #9c1de7 99.69%
  );
  --primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
  --secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, 0.1);
  --primary: #581b98;
}

/* CHATBOX
=============== */
.chatbox {
  position: absolute;
  bottom: 0;
  padding: 10px;
  right: 0;
}

/* CONTENT IS CLOSE */
.chatbox__support {
  display: flex;
  flex-direction: column;
  background: #eee;
  width: 300px;
  height: 350px;
  z-index: -123456;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

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

/* BUTTON */
.chatbox .chatbox__button {
  text-align: right;
}

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

.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: orange;
}

/* MESSAGES */
.chatbox .chatbox__messages {
  margin-top: auto;
  display: flex;
  overflow-y: scroll;
  flex-direction: column-reverse;
}

.chatbox .messages__item {
  background: orange;
  max-width: 60.6%;
  width: fit-content;
}

.chatbox .messages__item--operator {
  margin-left: auto;
}

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

/* FOOTER */
.chatbox .chatbox__footer {
  position: sticky;
  bottom: 0;
}

.chatbox .chatbox__support {
  background: #f9f9f9;
  height: 450px;
  width: 350px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

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

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

.chatbox .chatbox__heading--header {
  font-size: 1.2rem;
  color: white;
}

.chatbox .chatbox__description--header {
  font-size: 0.9rem;
  color: white;
}

/* Messages */
.chatbox .chatbox__messages {
  padding: 0 20px;
}

.chatbox .messages__item {
  margin-top: 10px;
  background: #e0e0e0;
  padding: 8px 12px;
  max-width: 93%;
}

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

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

/* FOOTER */
.chatbox .chatbox__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  background: var(--secondaryGradient);
  box-shadow: var(--secondaryBoxShadow);
  /* border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px; */
  margin-top: 20px;
}

.chatbox .chatbox__footer input {
  width: 80%;
  border: none;
  padding: 10px 10px;
  border-radius: 30px;
  text-align: left;
}

.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;
}
.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 {
  position: relative;
  cursor: pointer;
  margin: 10px 0;
  border: 1px solid #a3a0a0;
  border-radius: 16px;
  background: #fff;
  padding: 16px 9px 16px 26px;
}
.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 {
  font-size: 12px;
  color: #ababab;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
}
.chatbox .joined-text::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: calc(50% - 78px);
  height: 1px;
  background: #ababab;
  z-index: -1;
}
.chatbox .joined-text::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 0;
  width: calc(50% - 78px);
  height: 1px;
  background: #ababab;
  z-index: -1;
}
.chatbot-iframe.chatbot-iframe-active {
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1) !important;
}

/* .chatbox .chatbox--active{
    padding-bottom: 0 !important;
} */
@media screen and (max-width: 767px) {
  /* .chatbox .chatbox--active{
        padding-bottom: 0 !important;
    } */
  .chatbox .messages__item {
    max-width: 100% !important;
  }
  .chatbox .chatbox__footer {
    padding: 15px 12px !important;
  }
  .chatbox .chatbox__send--footer {
    margin-right: 0 !important;
  }
}

@media only screen and (max-device-width: 667px),
  screen and (max-width: 450px) {
}
