#beersecret-chatbot {
  position: fixed;
  z-index: 2147483647;
}

#beersecret-chatbot *:not(#beersecret-chatbot-button):not(.sendbutton) {
  font-size: 14px!important;
  line-height: 1.4!important;
}
#beersecret-chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #46A23A url(images/icons/chat_bubble.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 75%;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 40px;
  cursor: pointer;
}

#beersecret-chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
}

.titlebar {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  height: 40px;
  border-bottom: 1px solid black;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.logo {
  background: url(images/Print_BeerSecret_Logo_zwarte_achtergrond.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}
.chattitle {
  display: flex;
  align-items: center;
  font-family: Raleway, sans-serif;
}
.exitbutton {
  background: url(images/icons/close.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;  
}

.messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
}
.messages > div {
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}
.message-bot {
  align-self: flex-start;
  color: black;
  background-color: #FAE920;
}
.message-human {
  align-self: flex-end;
  background-color: #46A23A;
  color: white;
}
.message-system {
  align-self: center;
  background-color: gray;
  color: black;
  border-radius: 0px!important;
  font-size: 80%;
}

.messagebar {
  height: 50px;
  display: grid;
  grid-template-columns: 6fr 1fr;
  border-top: 1px solid black;
}
.chatinput {
  width: 100%;
  height: 100%;
  resize: none;
  overflow-y: auto;
  box-sizing: border-box;
  white-space: pre-wrap; 
}
.input-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.chatinput {
  width: 100%;
  height: 100%;
  resize: none;
  box-sizing: border-box;
}

.textcountindicator {
  position: absolute;
  top: 0px;
  right: 1px;
  font-size: 10px;
  font-weight: bold;
  color: red;
  pointer-events: none;
}
.sendbutton {
  height: 100%;
  background: url(images/icons/send.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}