/* ============================================
   Global Responsive Fixes
   Ensures proper layout on all screen sizes
   ============================================ */

/* Prevent horizontal scroll — use clip instead of hidden so position:fixed (LiveChat etc.) still works */
html {
  max-width: 100vw;
  overflow-x: clip;
}
body {
  max-width: 100vw;
  overflow-x: clip;
}

/* Ensure all containers are responsive */
.container-fluid {
  width: 100%;
  box-sizing: border-box;
}

/* Fix for Bootstrap row — keep gutters intact */
.row {
  box-sizing: border-box;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Prevent fixed widths from breaking layout */
@media (max-width: 991.98px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Fix for sections that might overflow — clip keeps position:fixed children visible */
section {
  overflow-x: clip;
  position: relative;
  box-sizing: border-box;
}


/* Ensure proper box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Responsive tables */
table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}
