/**
 * Tawk.to Chat Widget Positioning
 * Adjusts chat widget position to avoid overlap with back-to-top button
 */

/* Adjust Tawk.to widget position to avoid overlap with back-to-top button */
#tawk_widget {
  bottom: 85px !important; /* Move chat widget higher than back-to-top button */
  right: 20px !important;
  z-index: 999 !important; /* Keep it below back-to-top button but above other content */
}

/* Alternative selectors for different tawk.to implementations */
.tawk-widget,
.tawk-min-container,
iframe[title*="chat"] {
  bottom: 85px !important;
  right: 20px !important;
}

/* Specific targeting for tawk.to iframe */
iframe[src*="tawk.to"] {
  bottom: 85px !important;
  right: 20px !important;
}

/* Mobile adjustments */
@media only screen and (max-width: 600px) {
  #tawk_widget,
  .tawk-widget,
  .tawk-min-container,
  iframe[title*="chat"],
  iframe[src*="tawk.to"] {
    bottom: 75px !important; /* Slightly less spacing on mobile */
    right: 15px !important;
  }
}

/* Ensure back-to-top button stays on top */
.back-to-top {
  z-index: 1001 !important; /* Higher than tawk.to widget */
}

/* Additional positioning for tawk.to minimized state */
.tawk-min-container {
  position: fixed !important;
  bottom: 85px !important;
  right: 20px !important;
}