#fergubot-root,
#fergubot-root * {
  box-sizing: border-box;
}

#fergubot-root {
  font-family: "Roboto", sans-serif;
  position: relative;
  z-index: 2147483640;
  isolation: isolate;
}

#fergubot-root .chat-button {
  position: fixed;
  bottom: 25px;
  right: 35px;
  z-index: 2147483647;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: #B3003C;
  outline: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

#fergubot-root .chat-button span {
  position: absolute;
  transform: translateY(6%);
}

body.show-fergubot #fergubot-root .chat-button {
  transform: rotate(90deg);
}

#fergubot-root .chat-button span:last-child,
body.show-fergubot #fergubot-root .chat-button span:first-child {
  opacity: 0;
}
body.show-fergubot #fergubot-root .chat-button span:last-child {
  opacity: 1;
}

#fergubot-root .fergubot {
  position: fixed;
  z-index: 2147483646;
  background: #fff;
  right: 35px;
  bottom: 90px;
  height: 84vh;
  max-height: 700px;
  width: 380px;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

body.show-fergubot #fergubot-root .fergubot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#fergubot-root .fergubot header {
  min-height: 60.5px;
  padding: 16px 0px;
  text-align: center;
  color: #ffffff;
  background-color: #B3003C;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

#fergubot-root .fergubot header h2 {
    display: block;
    font-size: 1.7em;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    padding: 0;
}

#fergubot-root .fergubot header .close-btn {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  z-index: 3;
  line-height: 1;
}

#fergubot-root .fergubot .chatbox {
  overflow-y: auto;
  overflow-wrap: break-word;
  text-align: justify;
  height: 100%;
  padding: 30px 7px 110px;
}

#fergubot-root .access {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  border-radius: 0px 10px 10px 10px;
  color: #000;
  background: none;
  max-width: 75%;
  margin-left: 42px;
  margin-bottom: 10px;
}
#fergubot-root .access button {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 20px;
  margin: 3px;
  padding: 6px 10px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  background-color: #f2f2f2;
  border: 2px solid #888888;
  color: #111111;
  text-decoration: none;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}
#fergubot-root .access button:hover {
  background-color: #e0e0e0;
  border-color: #666666;
  color: #111111;
}

#fergubot-root .fergubot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
#fergubot-root .fergubot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 25px;
}
#fergubot-root .fergubot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 25px;
}

#fergubot-root .fergubot .chat {
  display: flex;
  list-style: none;
}

#fergubot-root .chatbox .outgoing {
  margin: 10px 0;
  justify-content: flex-end;
  font-size: 13px;
  text-align: left;
}

#fergubot-root .chatbox .incoming span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #B3003C;
  color: #ffffff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-start;
  margin-right: 10px;
}

#fergubot-root .chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 14px;
  border-radius: 10px 0px 10px 10px;
  max-width: 75%;
  color: #ffffff;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  border: none;
  box-shadow: 0 1px 3px #999;
  background-color: #B3003C;
}

#fergubot-root .chatbox .incoming p {
  border-radius: 0px 10px 10px 10px;
  color: #111111;
  font-weight: 400;
  background-color: #f2f2f2;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px #999;
  font-size: 13px;
  text-align: left;
  border: none;
}

#fergubot-root .chatbox .incoming p ul,
#fergubot-root .chatbox .incoming p ol,
#fergubot-root .chatbox .outgoing p ul,
#fergubot-root .chatbox .outgoing p ol {
  margin: 0.4em 0 0.4em 0;
  padding-left: 1.35em;
  list-style-position: outside;
}

#fergubot-root .chatbox .incoming p ul,
#fergubot-root .chatbox .outgoing p ul {
  list-style-type: disc;
}

#fergubot-root .chatbox .incoming p ol,
#fergubot-root .chatbox .outgoing p ol {
  list-style-type: decimal;
}

#fergubot-root .chatbox .incoming p li,
#fergubot-root .chatbox .outgoing p li {
  display: list-item;
  margin: 0.2em 0;
  padding-left: 0.15em;
}

#fergubot-root .fergubot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 0px 20px;
  border-top: 1px solid #ddd;
}

#fergubot-root .chat-input textarea {
  height: 55px;
  width: 100%;
  border: none;
  border-radius: 0;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 15px 15px 15px 0;
  font-size: 15px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  line-height: 1.4;
  color: #222222;
  background-color: #ffffff;
  box-shadow: none;
}

#fergubot-root .chat-input #send-btn {
  display: flex;
  align-self: flex-end;
  color: #B3003C;
  cursor: pointer;
  height: 55px;
  align-items: center;
  visibility: hidden;
  transform: rotateZ(45deg);
}

#fergubot-root .chat-input textarea:not(:placeholder-shown) ~ #send-btn {
  visibility: visible;
}

#fergubot-root .bi-chat-right-dots-fill,
#fergubot-root .bi-x {
  color: white;
  font-size: x-large;
}

#fergubot-root .bi-send {
  font-size: x-large;
}

#fergubot-root .close-btn {
  color: white;
}

#fergubot-root .close-indicator {
  position: absolute;
  top: -4px;
  left: -3px;
  text-align: center;
}

#fergubot-root #close-div {
  background-color: red;
  border-radius: 50%;
  font-size: small;
}
#fergubot-root .indicator {
  height: 60px;
  line-height: 1em;
  width: 200px;
  cursor: pointer;
  position: fixed;
  z-index: 2147483645;
  bottom: 20px;
  right: 95px;
  background-color: #fff;
  padding: 15px;
  font-size: 13px;
  border-radius: 10px 0 10px 10px;
  box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.05), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#fergubot-root span.a {
  position: absolute;
  top: -1.8px;
  right: -15px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #ffffff;
  transform: rotate(-45deg);
}

#fergubot-root .c {
  display: none;
}

@media (max-width: 615px) {
  #fergubot-root .chat-button {
    right: 20px;
    bottom: 20px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: rotate(0deg);
    transition: opacity 0.45s ease, transform 0.5s ease, visibility 0s;
  }

  body.show-fergubot #fergubot-root .chat-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: rotate(90deg);
    transition: opacity 0.45s ease, transform 0.5s ease, visibility 0s linear 0.45s;
  }

  #fergubot-root .indicator {
    position: fixed;
    bottom: 15px;
    right: 80px;
  }

  #fergubot-root .fergubot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
    transform: scale(1);
  }
  #fergubot-root .fergubot .chatbox {
    height: 100%;
    padding: 25px 15px 124px;
  }
  #fergubot-root .fergubot .chat-input {
    padding: 5px 15px;
  }

  #fergubot-root .fergubot header .close-btn {
    display: flex;
    font-size: 1.85rem;
    margin-right: 4px;
  }
}
