/*
 QPLUSLOTTO FLOATING NAV V10
 Root cause: duplicate translate + transform.
 Scope: mobile bottom navigation only.
*/

@media screen and (max-width: 767px) {

  body > nav[aria-label="เมนูลัดมือถือ"] {

    position: fixed !important;

    left: 50% !important;
    right: auto !important;

    /* Remove duplicate Tailwind translate property */
    translate: none !important;

    /* Keep only one horizontal centering operation */
    transform: translateX(-50%) !important;

    width: calc(100dvw - 1rem) !important;
    max-width: 23.25rem !important;

    margin: 0 !important;

    bottom:
      calc(env(safe-area-inset-bottom, 0px) + 14px)
      !important;

    box-sizing: border-box !important;

    overflow: visible !important;
  }
}

/* Desktop remains unchanged. */
