/* TOOLMATE mobile improvements (loaded after main CSS) */
html,body{overflow-x:hidden;max-width:100%}
img,video{max-width:100%}
@media (max-width:639px){
  /* product grids: 2 columns instead of 3 */
  .grid.grid-cols-3.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  /* section headers: let title + link wrap neatly */
  .flex.items-end.justify-between.mb-8{flex-direction:column;align-items:flex-start;gap:8px}
  .flex.items-end.justify-between.mb-8 h2{font-size:1.4rem;line-height:1.25}
  /* hero */
  .min-h-\[460px\]{min-height:420px}
  section h1{word-break:break-word}
  .relative.max-w-2xl.px-6{padding-left:20px;padding-right:20px;padding-bottom:56px}
  .relative.max-w-2xl .flex{flex-wrap:nowrap!important;gap:8px!important}
  .relative.max-w-2xl .flex a{flex:1 1 0;min-width:0;width:auto;justify-content:center;text-align:center;white-space:nowrap;font-size:12.5px!important;padding:13px 6px!important;gap:5px!important;overflow:hidden;text-overflow:ellipsis}
  .relative.max-w-2xl .flex a svg:last-child:not(:first-child){display:none}
  /* floating chat widget: smaller & out of the way of content */
  .live-chat-widget{bottom:14px!important;right:12px!important;transform:scale(.85);transform-origin:bottom right}
  /* chat button always in front; purchase pop-ups sit beside it with the same bottom line */
  .live-chat-widget{z-index:60!important}
  .live-sales-popup-widget{bottom:14px!important;left:8px!important;right:68px!important;width:auto!important;max-width:none!important;z-index:40!important}
  /* make bottom of page not hidden behind chat widget */
  footer{padding-bottom:72px}
  /* tabs scroll instead of clipping */
  [class*="overflow-x-auto"]{-webkit-overflow-scrolling:touch}
  /* tables & long text */
  table{display:block;overflow-x:auto;max-width:100%}
  pre,code{white-space:pre-wrap;word-break:break-word}
  /* bigger tap targets */
  a[class*="px-"]{min-height:40px}
  /* inputs: avoid iOS zoom */
  input,select,textarea{font-size:16px!important}
}

/* Text selection = logo purple (#BA01FF) */
::selection,*::selection,.selection\:bg-fuchsia-500 *::selection,.selection\:bg-fuchsia-500::selection{background-color:#BA01FF!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
::-moz-selection,*::-moz-selection{background-color:#BA01FF!important;color:#fff!important}
