/* Sticky chat button styles */
#feedback-chat-button {
  position: fixed;
  bottom: 20px; /* Position from the bottom */
  left: 20px; /* Position from the left */
  width: 60px; /* Width of the button */
  height: 60px; /* Height of the button */
  background-color: #72c02c; /* Button color */
  color: white;
  text-align: center;
  line-height: 60px; /* Center text vertically */
  border-radius: 50%; /* Circular button */
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Shadow effect */
  z-index: 9999; /* Ensure it's above other elements */
  font-size: 24px;
}

/* Chat box styles */
#feedback-chat-box {
  display: none; /* Initially hidden */
  position: fixed;
  bottom: 90px; /* Position above the button */
  left: 20px; /* Distance from the left edge */
  width: 300px; /* Width of the chat box */
  height: 300px; /* Height of the chat box */
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 15px;
  z-index: 10000; /* Ensure it's above the button */
  overflow: auto; /* Allow scrolling */
}

/* Chat form styles */
#feedback-chat-box textarea {
  width: 100%;
  height: 80%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

#feedback-chat-box button {
  width: 100%;
  padding: 10px;
  background-color: #72c02c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Loader styles */
#feedback-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #72c02c; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
