
#balliante-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #05aaac;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

#balliante-chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-height: 600px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
}

#balliante-chat-window.visible {
  display: flex;
}

.chat-header {
  background: #05aaac;
  color: white;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.chat-close {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  padding-left: 10px;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

textarea {
  border: none;
  border-top: 1px solid #ddd;
  padding: 10px;
  width: 100%;
  resize: none;
  font-size: 14px;
  height: 60px;
  box-sizing: border-box;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  outline: none;
  background: #fff;
}

textarea:focus {
  background-color: #f9f9f9;
}

.user-msg {
  text-align: right;
  margin: 6px 0;
  background: #05aaac;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}

.bot-msg {
  text-align: left;
  margin: 6px 0;
  background: #ececec;
  padding: 6px 10px;
  border-radius: 6px;
}

#balliante-popup-greeting {
  position: fixed;
  bottom: 95px;
  right: 20px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 9997;
}

#balliante-popup-greeting .balliante-logo {
  width: 24px;
  height: 24px;
}

#balliante-popup-greeting .popup-close {
  margin-left: auto;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  #balliante-chat-button {
    bottom: 20px;
    right: 20px;
    display: flex !important;
  }

  #balliante-chat-window {
    width: 95%;
    right: 2.5%;
  }

  #balliante-popup-greeting {
    bottom: 90px;
    right: 2.5%;
    width: auto;
    max-width: 90%;
  }
}
#balliante-prechat-overlay {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  padding: 20px;
  z-index: 99999;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  width: 300px;
  border-radius: 8px;
  font-family: sans-serif;
}

#balliante-prechat-overlay input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#balliante-prechat-overlay button {
  background: #05aaac;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
.chat-form-wrapper {
  background: #f7f7f7;
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
  font-family: 'Cerebri Sans', sans-serif;
}

.chat-form-wrapper label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.chat-form-wrapper input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.chat-form-wrapper button {
  background-color: #05aaac;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.chat-form-wrapper button:hover {
  background-color: #04999a;
}
/* Chat textarea styling */
#balliante-chat-window textarea {
  width: calc(100% - 20px);
  margin: 10px;
  padding: 10px;
  font-size: 14px;
  font-family: 'Cerebri Sans', sans-serif;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #ffffff;
  resize: none;
  box-sizing: border-box;
  color: #333;
}

/* Chat message bubbles */
.user-msg, .bot-msg {
  max-width: 70%;
  margin: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  font-family: 'Cerebri Sans', sans-serif;
  line-height: 1.4;
  word-wrap: break-word;
  display: inline-block;
  clear: both;
}

/* User bubble */
.user-msg {
  background-color: #05aaac;
  color: white;
  align-self: flex-end;
  float: right;
}

/* Bot bubble */
.bot-msg {
  background-color: #f1f1f1;
  color: #333;
  float: left;
}
