/**
 * 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: 80px !important; /* Position above back-to-top button (23px + 56px button height + 1px gap) */
  right: 23px !important;  /* Align with back-to-top button's right position */
  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: 80px !important;
  right: 23px !important;
}

/* Specific targeting for tawk.to iframe */
iframe[src*="tawk.to"] {
  bottom: 80px !important;
  right: 23px !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: 23px !important;  /* Keep same right alignment */
  }
}

/* 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: 80px !important;
  right: 23px !important;
}