html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
}

#root {
  display: flow-root;
  min-height: 100%;
  overflow: visible;
  width: 100%;
}

html:has([role="dialog"]) {
  overflow-y: hidden;
}

.floating-whatsapp,
.franchise-floating {
  position: fixed;
  z-index: 90;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-whatsapp {
  right: 1rem;
  bottom: 1rem;
  display: grid;
}

.franchise-floating {
  top: auto;
  right: 1rem;
  bottom: 5.25rem;
  max-width: calc(100vw - 2rem);
}

footer::after {
  content: "Powered by Nishan Business Consultants";
  display: block;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
}

@media (max-width: 767px) {
  html,
  body,
  #root {
    overscroll-behavior-y: auto;
  }

  html {
    scrollbar-gutter: auto;
  }

  .min-h-screen {
    min-height: 100svh;
  }

  .fixed.inset-0,
  .fixed.bottom-0.right-0 {
    max-height: 100svh;
    overscroll-behavior: contain;
  }

  .fixed.bottom-0.right-0 .overflow-y-auto,
  [role="dialog"] .overflow-y-auto {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sticky {
    transform: translateZ(0);
  }

  .bottom-nav-item,
  .mobile-menu-btn,
  .icon-btn,
  .btn {
    touch-action: manipulation;
  }

  .floating-whatsapp {
    right: 0.85rem;
    bottom: 5.45rem;
    display: grid;
    height: 3.25rem;
    width: 3.25rem;
  }

  .franchise-floating {
    left: 0.85rem;
    right: auto;
    bottom: 5.45rem;
    min-height: 3.25rem;
    max-width: calc(100vw - 5.25rem);
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
    line-height: 1;
  }
}
