.seep-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483646;
}

.seep-iframe {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 2147483647;
}

#seep-chatbot.seep-open .seep-launcher {
  display: none;
}

#chatbot-widget {
  position: fixed;
  bottom: 92px;
  right: 20px;
  width: 400px;
  height: 500px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2147483647;
  max-height: calc(100vh - 40px);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, bottom 0.3s ease;
}

#chatbot-widget.seep-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#seep-launcher {
  background-color: var(--seep-brand-color, #007aff);
  border: none;
  padding: 10px 16px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  cursor: pointer;
  z-index: 2147483646;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
}

#seep-launcher:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.typing {
  color: #777;
  font-style: italic;
  margin: 4px 0;
}

#chatbot-widget a {
  color: var(--seep-brand-color, #007aff);
  text-decoration: none;
  padding: 0 2px;
}

#chatbot-widget a:hover {
  text-decoration: underline;
}

#chatbot-widget iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
  #chatbot-widget {
    width: 95%;
    max-width: none;
    height: 60vh;
    bottom: 92px;
    right: 2.5%;
    left: auto;
    top: auto;
    transform: translateX(100%);
  }

  #seep-launcher {
    bottom: 20px;
    right: 20px;
    padding: 8px 14px;
  }

  #chatbot-widget.seep-open {
    transform: translateX(0);
  }
}

#seep-chatbot.seep-left #chatbot-widget,
#seep-chatbot.seep-left #seep-launcher {
  left: 20px;
  right: auto;
}

@media (max-width: 768px) {
  #seep-chatbot.seep-left #chatbot-widget {
    left: 2.5%;
    right: auto;
  }
  #seep-chatbot.seep-left #seep-launcher {
    left: 20px;
    right: auto;
  }
}
