.message-box .message-submit {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

@font-face {
  font-family: "Florencesans";
  src: url("../fonts/florencesans.ttf") format("ttf");
  font-weight: 400;
  font-display: swap;
}
.fab-block {
  position: fixed;
  bottom: 30px;
  right: 45px;
  z-index: 2000;
}
.fab-block > a.fixed-action-btn {
  animation: fabPulse 2.5s ease-in-out infinite;
}
.fab-block:has(.chat-wrapper.open) > a.fixed-action-btn {
  animation: none;
}

.fixed-action-btn {
  display: block;
  width: 65px;
  height: 65px;
  border-radius: 100%;
  background-color: #FCFCFC;
  background-image: url("../images/icons/faq-bot-icon.svg");
  background-position: center;
  background-size: auto;
  background-repeat: no-repeat;
  box-shadow: 0 0 8px rgba(30, 51, 141, 0.5);
}

a.fixed-action-btn {
  animation: fabPulse 2.5s ease-in-out infinite;
}
a.fixed-action-btn:hover {
  transform: scale(1.03);
  transition: transform 0.2s;
}

.chat-wrapper {
  position: fixed;
  right: 120px;
  bottom: 27px;
  width: 320px;
  height: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 12px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 2px 10px 40px rgba(22, 20, 19, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(100px);
  transition: all 0.2s;
  z-index: 2000;
}
.chat-wrapper.expanded {
  width: 80vw;
  height: 80vh;
  right: 10vw;
  bottom: 10vh;
  transform: scale(1);
  transition: all 0.25s ease;
}
@media (max-width: 540px) {
  .chat-wrapper.expanded {
    width: 95vw;
    height: 90vh;
    right: 2.5vw;
    bottom: 5vh;
  }
}
.chat-wrapper .fixed-action-btn {
  width: 40px;
  height: 40px;
  background-size: 68%;
}
.chat-wrapper.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
@media (max-width: 540px) {
  .chat-wrapper {
    right: calc((100dvw - 320px) / 2);
  }
}

.chat-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px;
  background: linear-gradient(273deg, rgb(25, 121, 255) 0%, #132356 100%);
  text-transform: uppercase;
  text-align: center;
  color: #FCFCFC;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
}
.chat-header p {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
}

.chat-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 12px;
  height: calc(100% - 95px);
}

.messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  padding-right: 4px;
}

.message {
  clear: both;
  float: left;
  padding: 6px 10px 7px;
  border-radius: 20px 20px 20px 0;
  background-color: #EFF1F4;
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.4;
  margin-left: 35px;
  position: relative;
  border: 1px solid #EFF1F4;
  color: #1E338D;
  z-index: 2;
  max-width: calc(100% - 35px);
  box-sizing: border-box;
}
.message.message-warning {
  color: #E07800;
}
.message.message-personal {
  float: right;
  text-align: right;
  background-color: #FCFCFC;
  border: 1px solid #D2D6E8;
  border-radius: 20px 20px 0 20px;
  color: #132356;
}
.message .new {
  -webkit-transform: scale(0);
  transform: scale(0);
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  -webkit-animation: bounce 500ms linear both;
  animation: bounce 500ms linear both;
}
.message.loading {
  display: flex;
  align-items: center;
  height: 20px;
  gap: 6px;
  height: 34px;
}
.message.loading span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.message.loading span::before,
.message.loading span::after, .message.loading::before {
  content: "";
  margin-top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #939DC9;
  animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
}
.message.loading::before {
  animation-delay: 0s;
}
.message.loading span::before {
  animation-delay: 0.15s;
}
.message.loading span::after {
  animation-delay: 0.3s;
}

.avatar.fixed-action-btn {
  position: absolute;
  z-index: 1;
  bottom: -10px;
  left: -35px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #1979FF;
  background-color: #FCFCFC;
  border-radius: 100%;
  box-shadow: none;
}

.message-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.message-box .message-input {
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
  resize: none;
  font-size: 14px;
  height: auto;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 62px 10px 10px;
  border-radius: 12px;
  border: 1px solid #EFF1F4;
  background-color: #FCFCFC;
  overflow-y: auto;
  transition: height 0.1s ease;
  box-sizing: border-box;
  overflow-y: hidden;
}
.message-box .message-input:focus:-webkit-placeholder {
  color: transparent;
}
.message-box .message-input::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}
.message-box .message-input::-webkit-scrollbar-thumb {
  border-radius: 2px;
}
.message-box ::placeholder {
  color: #939DC9 !important;
}
.message-box .message-submit {
  position: absolute;
  right: 12px;
  z-index: 1;
  color: #1979FF;
  background: transparent;
  border: none;
  text-transform: uppercase;
  line-height: 1;
  outline: none !important;
  cursor: pointer;
}

.btn-full-screen {
  position: absolute;
  left: 6px;
  top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
}
.btn-full-screen::after {
  content: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M4%2020H3.5V20.5H4V20ZM9.35355%2015.3536C9.54882%2015.1583%209.54882%2014.8417%209.35355%2014.6464C9.15829%2014.4512%208.84171%2014.4512%208.64645%2014.6464L9.35355%2015.3536ZM3.5%2014V20H4.5V14H3.5ZM4%2020.5H10V19.5H4V20.5ZM4.35355%2020.3536L9.35355%2015.3536L8.64645%2014.6464L3.64645%2019.6464L4.35355%2020.3536Z%22%20fill%3D%22%23fcfcfc%22/%3E%3Cpath%20d%3D%22M20%204H20.5V3.5H20V4ZM14.6464%208.64645C14.4512%208.84171%2014.4512%209.15829%2014.6464%209.35355C14.8417%209.54882%2015.1583%209.54882%2015.3536%209.35355L14.6464%208.64645ZM20.5%2010V4H19.5V10H20.5ZM20%203.5H14V4.5H20V3.5ZM19.6464%203.64645L14.6464%208.64645L15.3536%209.35355L20.3536%204.35355L19.6464%203.64645Z%22%20fill%3D%22%23fcfcfc%22/%3E%3C/svg%3E");
  width: 20px;
  height: 20px;
  transform: scaleX(-1);
}
@media (min-width: 761px) {
  .btn-full-screen {
    transform: scale(0.9);
    opacity: 0.8;
    transition: transform 0.2s;
  }
  .btn-full-screen:hover {
    cursor: pointer;
    transform: scale(1.1);
    opacity: 1;
  }
}

body.chat-modal-open {
  overflow-y: scroll;
  overscroll-behavior: none;
  position: fixed;
  left: 0;
  right: 0;
}

/* Markdown heading sizes for bot messages */
.message .message-text h1 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0.4em 0 0.2em;
}
.message .message-text h2 {
  font-size: 1em;
  font-weight: 700;
  margin: 0.4em 0 0.2em;
}
.message .message-text h3,
.message .message-text h4,
.message .message-text h5,
.message .message-text h6 {
  font-size: 0.95em;
  font-weight: 600;
  margin: 0.3em 0 0.2em;
}

/* Markdown table styles for bot messages */
.message .message-text {
  max-width: 100%;
  display: block;
  overflow: hidden;
}

.message .message-text table {
  border-spacing: 0;
  border-collapse: collapse;
  margin: 0.75em 0;
  font-size: 13px;
  /* do not set width:100% — let table size to content, then scroll if needed */
}

/* Wrap table in a scrollable container */
.message .message-text .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  display: block;
}

.message .message-text table th,
.message .message-text table td {
  padding: 5px 10px;
  border: 1px solid #dfe2e5;
  text-align: left;
  white-space: nowrap;
}

.message .message-text table th {
  font-weight: 600;
  background-color: #f0f3fa;
}

.message .message-text table tr {
  background-color: #ffffff;
  border-top: 1px solid #c6cbd1;
}

.message .message-text table tr:nth-child(even) {
  background-color: #f6f8fa;
}

/*# sourceMappingURL=chatbot.css.map */
