:root {
  --feux-chat-blue: #003399;
  --feux-chat-dark-blue: #20196f;
  --feux-chat-font-white: #ffffff;
  --feux-chat-light-gray: #dddddd;
  --feux-chat-gray: #828282;
  --feux-chat-gray-10: rgba(64, 125, 216, 0.1);
  --feux-chat-font-black-80: rgba(27, 27, 27, 0.8);
  --feux-chat-font-black-70: rgba(27, 27, 27, 0.7);
}

#chat-box *,
#chat-box *::before,
#chat-box *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#chat-box p {
  margin-top: 0;
  margin-bottom: 1rem;
}

#chat-box svg {
  vertical-align: middle;
}

/* ============ 1. CHAT BOX ============ */

#chat-box {
  position: fixed;
  bottom: 50px;
  right: 35px;
  font-size: 16px;
  line-height: 22px;
  font-family: Lexend-Regular, sans-serif;
  font-weight: 400;
  z-index: 1000;
}

.chat-box--panel-open #chat-button {
  display: none;
}

.chat-box--panel-open #chat-panel {
  display: block;
}

/* ============ 2. CHAT BUTTON ============ */

#chat-button {
  border: none;
  background-color: var(--feux-chat-blue);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 13px;
  border-radius: 12px;
  cursor: pointer;
  width: 68px;
  height: 68px;
  -webkit-transition: width 0.2s linear;
  -o-transition: width 0.2s linear;
  transition: width 0.2s linear;
}

.chat-button-text {
  display: none;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--feux-chat-font-white);
  font-size: 12px;
  line-height: 34px;
  opacity: 0;
  -webkit-transition: opacity 0.3s linear;
  -o-transition: opacity 0.3s linear;
  transition: opacity 0.3s linear;
}

@media (min-width: 992px) {
  #chat-button:hover {
    width: 178px;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
  }

  #chat-button:hover .chat-button-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 1;
  }
}

/* ==== 3. CHAT PANEL ==== */

#chat-panel {
  display: none;
  position: fixed;
  width: 274px;
  height: 323px;
  bottom: 70px;
  right: 35px;
}

/* == 3.1 CHAT PANEL HEADER == */

#chat-panel header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: inherit;
  height: 68px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background-color: var(--feux-chat-blue);
}

.chat-panel-header-left {
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
}

.chat-panel-header-right {
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  padding-right: 10px;
}

.chat-panel-header-icon {
  padding: 0 10px;
  -ms-flex-line-pack: center;
  align-content: center;
}

.chat-panel-header-title {
  padding: 5px 5px 5px 0;
  text-align: center;
  color: var(--feux-chat-font-white);
  padding: 5px 5px 5px 0;
  text-align: center;
  font-family: Lexend-SemiBold, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 34px;
}

.chat-panel-header-status {
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  padding-right: 10px;
  color: var(--feux-chat-font-white);
  padding-right: 10px;
  color: var(--feux-white-font, #ffffff);
  font-size: 12px;
  line-height: 34px;
  font-family: Lexend-Light, sans-serif;
  font-weight: 300;
}

.chat-panel-header-close-button {
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  border: none;
  background-color: var(--feux-chat-blue);
  cursor: pointer;
}

/* == 3.2 CHAT PANEL CONTENT == */

.chat-panel-content--online .chat-panel-offline-content {
  display: none !important;
}

.chat-panel-content--online #chat-panel-messages-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.chat-panel-content--online #chat-panel-form {
  display: block !important;
}

#chat-panel-content {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  background-color: var(--feux-chat-font-white);
}

/* = 3.2.1 CHAT PANEL OFFLINE CONTENT = */

.chat-panel-offline-content {
  font-size: 12px;
  line-height: 18px;
  font-weight: 300;
}

.chat-panel-offline-content-info {
  color: var(--feux-chat-font-black-80);
  font-family: Ubuntu-Light, sans-serif;
}

.chat-panel-offline-content-mail-info {
  padding-top: 56px;
  color: var(--feux-chat-font-black-70);
}

.chat-panel-offline-content-mail-info p {
  margin-bottom: 5px !important;
  padding-top: 6px;
}

.chat-panel-offline-content-mail-info a {
  margin-bottom: 10px;
  font-family: Lexend-Light, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  color: var(--feux-chat-dark-blue);
}

/* = 3.2.2 CHAT PANEL ONLINE CONTENT = */

.chat-panel-content--online {
  padding: 10px 6px 6px !important;
}

#chat-panel-messages-container {
  height: 250px;
  overflow-y: auto;
  padding: 5px;
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2px;
}

#chat-panel-messages-container::-webkit-scrollbar {
  width: 6px;
}

#chat-panel-messages-container::-webkit-scrollbar-track {
  background-color: var(--feux-chat-light-gray);
  border-radius: 100px;
  opacity: 0.2;
  box-shadow: none;
}

#chat-panel-messages-container::-webkit-scrollbar-thumb {
  background: var(--feux-chat-dark-blue);
  border-radius: 100px;
}

#chat-panel-form {
  display: none;
  position: absolute;
  bottom: -62px;
}

#chat-panel-form label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: inline-block;
}

#chat-panel-send-message-input {
  bottom: 18px;
  width: 263px;
  height: 50px;
  background-color: var(--feux-chat-gray-10);
  border: none;
  color: var(--feux-chat-blue);
  border-radius: 6px;
  padding: 14px 35px 13px 16px;
  font-size: 12px;
  line-height: 15px;
  font-family: Lexend-Light, sans-serif;
  font-weight: 300;
}

#chat-panel-send-message-button {
  border: none;
  position: absolute;
  padding: 5px;
  right: 5px;
  width: 36px;
  bottom: 7px;
  height: 36px;
  background-color: var(--feux-chat-dark-blue);
  border-radius: 4px;
  cursor: pointer;
}

.chat-message-box {
  font-size: 12px;
  line-height: 18px;
  font-family: Lexend-Light, sans-serif;
  font-weight: 300;
  width: 214px;
}

.chatter-message {
  margin-left: auto;
  border-radius: 6px 0 6px 6px;
}

.consultant-message {
  margin-right: auto;
  border-radius: 0 6px 6px 6px;
}

.chat-message {
  padding: 8px 10px 10px 13px;
  height: auto;
  width: 100%;
  word-wrap: break-word;
}

.chat-message p {
  margin-bottom: 0 !important;
}

.chatter-message .chat-message {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-top-left-radius: 6px;
  background-color: var(--feux-chat-blue);
  color: var(--feux-chat-font-white);
}

.consultant-message .chat-message {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-top-right-radius: 6px;
  background-color: var(--feux-chat-light-gray);
  color: var(--feux-chat-font-black-80);
}

.chat-session-status {
  text-align: center;
  font-size: 11px;
  color: #6c757d;
}

.chatter-message + .consultant-message,
.consultant-message + .chatter-message {
  margin-top: 8px;
}

.chat-message-read-date {
  text-align: right;
  font-size: 10px;
  color: #6c757d;
  margin-bottom: 0px !important;
}
