/* Mobile layout: allow long calls to action to fit without a horizontal scrollbar. */
@media (max-width: 767px) {
  main a.whitespace-nowrap {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    justify-content: center;
  }

  /* Keep content reachable above the fixed contact bar, including phone safe areas. */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .fixed.bottom-0.left-0.right-0.z-40 {
    bottom: 0;
    width: auto;
  }
  .fixed.bottom-0.left-0.right-0.z-40 > button {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .fixed.bottom-0.left-0.right-0.z-50 {
    max-height: 80dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .fixed.bottom-0.left-0.right-0.z-50 a.whitespace-nowrap {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .fixed.bottom-0.left-0.right-0.z-50 a > div { min-width: 0; }
}
