.bot-icon {
 z-index: 1000;
 position: fixed;
 bottom: 20px;
 right: 20px;
 display: flex;
 align-items: center;
 gap: 6px;

 .bot-help {
  padding: 10px 10px 10px 0;
  border-radius: 5px;
  height: fit-content;
  font-weight: 600;
  font-family: "Courier New", serif;
  display: flex;
 }

 .bot-help .close-container {
  margin-top: -18px;
  margin-left: -10px;
 }

 .bot-help .close-container .close {
  background-color: white;
  border: 2px solid gray;
  border-radius: 50%;
  font-size: larger;
  color: gray;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  display: flex;
  width: 25px;
  height: 25px;
  cursor: pointer;
 }

 .avatar-image button {
  background: none;
  border: none;
  padding: 0 !important;
 }

 .avatar-image .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
 }
}

.hidden {
 display: none;
}

#chat-widget {
 position: fixed;
 bottom: 140px;
 right: 20px;
 width: 400px;
 height: -webkit-fill-available;
 max-height: 580px;
 background-color: white;
 border-radius: 12px;
 box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 overflow: hidden;
 z-index: 9999;
 font-family: Arial, sans-serif;
 line-height: 1.5;

 .header {
  background-color: #f5f5f5;
  padding: 10px;
  display: flex;
  align-items: center;
  height: 10%;
 }

 .avatar-image .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-right: 10px;
 }

 .title-custom-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
 }

 .title-custom-container h1,
 .title-custom-container h2 {
  margin-top: 0;
  margin-bottom: 0;
 }

 .title-custom-container .title-custom {
  font-size: 18px;
  font-weight: bold;
 }

 .title-custom-container .subtitle-custom {
  font-size: 14px;
  font-weight: bold;
 }

 .title {
  font-size: 18px;
  font-weight: bold;
  flex-grow: 1;
 }

 .chat-submenu {
  min-width: 150px;
  position: absolute;
  z-index: 100;
  top: 10%;
  right: 0;
  margin-right: 25px;
  padding: 12px;
  list-style-type: none;
  background-color: white;
  color: black;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 transparent, 0 0 transparent, 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
  border-radius: 3px;
  gap: 10px;
 }

 .chat-submenu button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 16px;
  text-align: left;
  color: black;
  font-family: Arial, sans-serif;
 }

 .chat-submenu button {
  gap: 5px;
 }

 .chat-submenu #fs-S {
  font-size: 12px;
 }

 .chat-submenu #fs-M {
  font-size: 16px;
 }

 .chat-submenu #fs-L {
  font-size: 20px;
 }

 .header-button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 16px;
  margin-right: 10px;
  padding: 0 !important;
 }

 .header-button:hover {
  text-decoration: underline;
 }

 .messages {
  height: 71%;
  overflow-y: scroll;
  padding: 10px;
 }

 .message-widget {
  display: flex;
  margin-bottom: 10px;
  font-size: 16px;
 }

 .user-message .message-text-widget {
  border-radius: 5px 5px 0 5px;
  margin-left: auto;
  max-width: 80%;
  padding: 10px;
  word-wrap: break-word;
 }

 .bot-message .message-text-widget {
  border-radius: 5px 5px 5px 0;
  max-width: 80%;
  padding: 10px;
  word-wrap: break-word;
 }

 .message-widget img {
  max-width: 100%;
  margin-top: 10px;
 }

 .buttons-message,
 .buttons-multiselect-message {
  max-width: 80%;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
 }

 .buttons-message .message-button,
 .buttons-multiselect-message .message-button {
  padding: 5px 10px;
  border: 2px solid red;
  border-radius: 6px;
  color: red;
  background-color: transparent;
  cursor: pointer;
 }

 .message-widget .video-wrapper {
  position: relative;

  padding-bottom: 56.25%;
 }

 .message-widget .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 }

 .widget-input {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px;
  border: none;
  min-height: 9%;
 }

 .widget-input input:focus {
  outline: none;
 }

 input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  height: max-content;
  border: 1px solid gray;
  margin-bottom: 0 !important;
 }

 input[type="text"]::placeholder {
  font-style: italic;
 }

 .widget-input button {
  background: none;
  border: none;
  padding: 0 !important;
 }

 .send-button {
  margin-right: 10px;
 }
}

#chat-widget, ::before, ::after {
 box-sizing: unset !important;
}

/* Theme dark styles */
#chat-widget.theme-dark {
 .header,
 .messages {
  background-color: black !important;
 }

 .header .title-custom,
 .header .subtitle-custom {
  color: white !important;
 }

 .header path[fill] {
  fill: white !important;
 }

 .user-message .message-text-widget,
 .bot-message .message-text-widget {
  background-color: white !important;
  color: black !important;
 }

 .buttons-message .message-button {
  border-color: white !important;
  color: white !important;
 }

 .widget-input {
  background-color: white !important;
 }

 input[type="text"] {
  background-color: white !important;
  color: black !important;
  border-color: black !important;
 }

 input[type="text"]::placeholder {
  color: black;
 }

 .send-button path[fill] {
  fill: black !important;
 }
}
/* End darkmode styles */

/* Fullscreen styles */
#chat-widget.fullscreen {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 99999;
 display: flex !important;
 flex-direction: column;
 justify-content: space-between;

 .messages {
  height: inherit;
 }
}
/* End fullscreen styles */

@media only screen and (max-width: 600px) {
 #chat-widget {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  #fullscreen {
   display: none;
  }

  #fontsize-selector {
   display: flex;
   flex-direction: row;
  }

  .messages {
   height: 73%;
  }

  .title-custom-container .title-custom {
   font-size: 24px;
  }

  .title-custom-container .subtitle-custom {
   font-size: 18px;
  }
 }
 .bot-icon {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 6px;

  .bot-help {
   padding-left: 5px;
  }

  .bot-help .close-container {
   margin-top: -26px;
   margin-left: -14px;
  }
 }
}

@media only screen and (max-height: 700px) and (min-width: 600px)
{
 #chat-widget .messages{
  height: 68%;
 }
 #chat-widget .widget-input{
  min-height: 12%;
  padding-top: 9px;
 }
}

@media only screen and (max-height: 650px) and (min-width: 600px)
{
 #chat-widget .widget-input{
  padding-top: 7px;
 }
}

@media only screen and (max-height: 600px) and (min-width: 600px)
{
 #chat-widget .messages{
  height: 67%;
 }
 #chat-widget .widget-input{
  min-height: 13%;
  padding-top: 5px;
 }
}
