/* Feedback Widget Styles */

.feedback-widget-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1030;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-widget-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 20%);
}

.feedback-modal {
  display: none;
  background-color: rgb(0 0 0 / 50%);
}

.feedback-modal.show {
  display: block;
}

.feedback-modal .modal-dialog {
  max-width: 500px;
}

.feedback-modal [data-category-button].active {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

/* Hide widget on small screens when keyboard is likely open */
@media (height <= 500px) {
  .feedback-widget-button {
    display: none;
  }
}

/* Adjust position on mobile */
@media (width <= 576px) {
  .feedback-widget-button {
    bottom: 70px; /* Above mobile navigation if present */
    right: 15px;
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}
