/**
 * Crisp Chat Close Button Styles
 * Mobile-only close button for Crisp chatbox button
 */

/* Ensure the close button is visible and properly positioned */
#crisp-close-button {
  position: absolute !important;
  top: -8px !important;
  right: -6px !important;
  z-index: 10001 !important;
  background: rgba(128, 128, 128, 0.7) !important;
  color: white !important;
  border: 2px solid white !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 12px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Hover effect for better UX */
#crisp-close-button:hover {
  background: rgba(96, 96, 96, 0.9) !important;
  transform: scale(1.1) !important;
}

/* Active state */
#crisp-close-button:active {
  background: rgba(64, 64, 64, 1) !important;
  transform: scale(0.95) !important;
}

/* Focus state for accessibility */
#crisp-close-button:focus {
  outline: 2px solid #005bd3 !important;
  outline-offset: 2px !important;
}

/* Ensure the close button is only visible on mobile */
@media (min-width: 769px) {
  #crisp-close-button {
    display: none !important;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  #crisp-close-button {
    display: flex !important;
  }

}
