#novaseg-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

#chatbot-button {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#chatbot-button img {
  width: 35px;
  height: 35px;
}

#chatbot-window {
  width: 330px;
  height: 470px;
  background: #ece5dd;
  border-radius: 18px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  position: absolute;
  bottom: 75px;
  right: 0;
}

#chatbot-header {
  background: #075e54;
  color: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.chat-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-status {
  font-size: 12px;
  opacity: 0.9;
}

#chatbot-close {
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
  font-size: 16px;
  border: 0;
  background: transparent;
  color: #fff;
}

#chatbot-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

#chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  min-height: 0;
}

.bot-message,
.user-message {
  max-width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.3;
  white-space: pre-line;
}

.bot-message {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-message {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#chatbot-input-area {
  display: flex;
  padding: 10px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  outline: none;
}

#chatbot-send {
  margin-left: 8px;
  background: #25d366;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
}

.typing-bubble {
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  margin: 6px 0;
}

.typing-bubble .dot {
  width: 6px;
  height: 6px;
  background: #999;
  border-radius: 50%;
  animation: novaseg-chat-blink 1s infinite;
}

.typing-bubble .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-bubble .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes novaseg-chat-blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
  color: #075e54;
}

.quick-btn:hover {
  background: #f2f2f2;
}

.bot-option {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 12px;
  background: #25d366;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.chat-contact-map {
  width: 100%;
  height: 260px;
  margin-top: 1px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.chat-contact-map .gm-style {
  border-radius: 18px;
}

.gm-style-iw {
  max-width: 240px !important;
  width: 240px !important;
}

.gm-style-iw-ch {
  height: -45px;
  flex-grow: 1;
  flex-shrink: 35;
  padding-top: 0;
  overflow: hidden;
  top: 23px;
}

.gm-style-iw-c {
  max-width: 200px !important;
  width: 200px !important;
  padding: 0 !important;
  height: 100px;
  overflow: hidden !important;
}

.novaseg-popup {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.novaseg-popup img {
  width: 120px !important;
  margin-bottom: -15px !important;
}

.gm-style .gm-style-iw {
  font-weight: 300;
  font-size: 0;
  overflow: hidden;
}

.novaseg-popup h3 {
  font-size: 14px !important;
  margin-bottom: 0 !important;
  margin-top: 20px;
}

.novaseg-popup p {
  font-size: 11px !important;
}

.gm-ui-hover-effect {
  width: 32px !important;
  height: 24px !important;
  top: -3px !important;
  right: -3px !important;
}

.gm-ui-hover-effect > span {
  width: 20px !important;
  height: 20px !important;
  margin: 6px !important;
}

.gm-style-iw-d {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  #chatbot-window {
    width: min(92vw, 330px);
    height: 70vh;
  }
}
