/* WhatsApp Button Styling */
#wcb-chat-button {
  position: fixed !important;
  bottom: 20px !important;
  width: 50px !important;
  height: 50px !important;
  background: #25d366 !important;
  border-radius: 50% !important;
  z-index: 999999999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.1s ease !important;
  pointer-events: auto !important;
}

#wcb-chat-button:hover {
  transform: scale(1.05) !important;
}

#wcb-chat-button.left {
  left: 20px !important;
}

#wcb-chat-button.right {
  right: 20px !important;
}

/* WhatsApp Icon - Made 30% bigger than current size */
#wcb-chat-button img {
  width: 39px !important;
  height: 39px !important;
  pointer-events: none !important;
}

/* Popup Styling - Positioned above button */
#wcb-chat-popup {
  position: fixed !important;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 16px !important;
  width: 300px !important;
  max-width: 300px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  display: none !important;
  z-index: 999999999 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  border: 2px solid #25d366 !important;
  pointer-events: auto !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(10px) scale(0.95) !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Position popup above button */
#wcb-chat-popup.left {
  left: 20px !important;
  bottom: 85px !important;
}

#wcb-chat-popup.right {
  right: 20px !important;
  bottom: 85px !important;
}

/* When popup is shown - fast animation */
#wcb-chat-popup[style*="display: block"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Popup content styling */
#wcb-chat-popup > div:first-child {
  margin-bottom: 12px !important;
  color: #333 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* Input Fields */
#wcb-chat-popup input[type="tel"],
#wcb-chat-popup textarea {
  width: 100% !important;
  resize: none !important;
  padding: 12px !important;
  border: 1.5px solid #e1e5e9 !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  background: #fff !important;
  font-size: 14px !important;
  transition: border-color 0.1s ease !important;
  margin-bottom: 8px !important;
}

#wcb-chat-popup input[type="tel"]:focus,
#wcb-chat-popup textarea:focus {
  outline: none !important;
  border-color: #25d366 !important;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1) !important;
}

#wcb-chat-popup textarea {
  height: 80px !important;
  margin-bottom: 12px !important;
}

/* Send Button */
#wcb-send-btn {
  background: #25d366 !important;
  color: white !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  float: right !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: all 0.1s ease !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
}

#wcb-send-btn:hover {
  background: #1ea952 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
}

#wcb-send-btn:active {
  transform: translateY(0) !important;
}

/* Clear float */
#wcb-chat-popup::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #wcb-chat-popup {
    width: 280px !important;
    max-width: 280px !important;
  }

  #wcb-chat-popup.left {
    left: 15px !important;
    bottom: 80px !important;
  }

  #wcb-chat-popup.right {
    right: 15px !important;
    bottom: 80px !important;
  }

  #wcb-chat-button {
    width: 45px !important;
    height: 45px !important;
    bottom: 15px !important;
  }

  /* Mobile icon size - 30% bigger than previous mobile size */
  #wcb-chat-button img {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (max-width: 480px) {
  #wcb-chat-popup {
    width: calc(100vw - 30px) !important;
    max-width: 300px !important;
  }

  #wcb-chat-popup.left,
  #wcb-chat-popup.right {
    left: 15px !important;
    right: 15px !important;
    bottom: 75px !important;
  }

  #wcb-chat-button.left {
    left: 15px !important;
  }

  #wcb-chat-button.right {
    right: 15px !important;
  }
}

/* Force our elements above everything else */
#wcb-chat-button,
#wcb-chat-popup {
  z-index: 999999999 !important;
  position: fixed !important;
}

/* Popup arrow pointing to button */
#wcb-chat-popup::before {
  content: "" !important;
  position: absolute !important;
  bottom: -8px !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 8px solid #25d366 !important;
}

#wcb-chat-popup.left::before {
  left: 25px !important;
}

#wcb-chat-popup.right::before {
  right: 25px !important;
}
