/* Cashback Pro V36.8.58 — touch highlight cleanup + top-of-screen toasts.
   The native Android/WebKit tap highlight may be a sharp rectangle even when
   the element has a rounded border. Hide that browser overlay and retain the
   project's own CSS pressed/selected states. Does not alter button sizing. */

/* Covers controls created dynamically by the Admin portal, bank actions,
   menus, chat, theme picker and modal dialogs as well as static elements.
   This property only controls the OS/WebKit tap splash, not focus-visible. */
html, body, html body *, html body *::before, html body *::after {
  -webkit-tap-highlight-color: transparent !important;
}

/* A touch/click must not leave a bright rectangular focus outline stuck after
   release. Keep keyboard-visible focus rings for accessibility, and keep
   native input/textarea/select focus styling for editing forms. */
@media (hover: none), (pointer: coarse) {
  html body :is(button, a[href], area[href], summary, [role="button"], [role="tab"], [role="menuitem"], [role="option"], [tabindex]:not(input):not(textarea):not(select)):focus:not(:focus-visible) {
    outline: none !important;
  }
}

/* Toasts start at the top of the page viewport (under the browser's own
   chrome/safe-area only), not below the website's sticky header. They stay
   clickable and render OVER the brand header on all viewport sizes. */
html body #toast-container {
  position: fixed !important;
  top: max(calc(env(safe-area-inset-top, 0px) + 8px), var(--toast-top-offset, 8px)) !important;
  z-index: 40000 !important;
}
