/* Cashback Pro V36.8.31 — touch-release reset, theme action menus and filter cleanup. */

/* 1) Header account chip: load the compact 42px/38px responsive treatment last. */
/* Detailed dimensions are defined in v36-8-30-compact-responsive-account-chip.css. */

/* 2) Remove residual filter-panel surfaces across all themes/modes.
   Inputs and action buttons retain their own rounded borders/backgrounds. */
html body .customer-withdrawals-card > .customer-withdrawals-filters,
html body .customer-withdrawals-card .customer-withdrawals-filters {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}
html body .customer-withdrawals-card .customer-withdrawals-filters::before,
html body .customer-withdrawals-card .customer-withdrawals-filters::after,
html body .customer-withdrawals-card .customer-withdrawals-status-filters::before,
html body .customer-withdrawals-card .customer-withdrawals-status-filters::after {
  content: none !important;
  display: none !important;
}
html body .customer-withdrawals-card > .customer-withdrawals-status-filters {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* 3) Keep all action menus readable in Default Light and use each world's own
   palette. v36-8-17 supplies the detailed surface colors for every theme. */

/* 4) After a touch is released, neutralize lingering mobile :hover/focus effects.
   Current/selected/expanded states are deliberately excluded. */
@media (hover: none), (pointer: coarse) {
  html.v36831-touch-released body :is(
    button, a[href], [role="button"], input[type="button"], input[type="submit"], summary
  ):hover:not(:active):not(.active):not([aria-selected="true"]):not([aria-pressed="true"]):not([aria-expanded="true"]):not(:disabled) {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  /* Generic copy/action buttons return to their normal surface after release.
     Leave specialized themed action-menu items to their explicit theme rules. */
  html.v36831-touch-released body .btn-copy:hover:not(:active):not(.active):not(:disabled):not(.admin-action-toggle):not(.admin-action-popover-portal > button):not(.admin-action-menu > .admin-action-items > button) {
    background: var(--bg-card, var(--bg-surface, transparent)) !important;
    background-image: none !important;
    border-color: var(--border-light, var(--border-color, rgba(130,150,180,.3))) !important;
    color: var(--text-main, inherit) !important;
    filter: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html.v36831-touch-released body .btn-convert:hover:not(:active):not(:disabled) {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  html.v36831-touch-released body .customer-withdrawals-refresh:hover:not(:active):not(:disabled) {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  html.v36831-touch-released body .user-pill:hover,
  html.v36831-touch-released body header.app-header .user-pill:hover {
    border-color: var(--border-color, rgba(130,150,180,.3)) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html.v36831-touch-released body .filter-btn:hover:not(.active) {
    color: var(--text-muted, inherit) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html.v36831-touch-released body button:focus:not(:focus-visible),
  html.v36831-touch-released body a:focus:not(:focus-visible),
  html.v36831-touch-released body [role="button"]:focus:not(:focus-visible) {
    outline: none !important;
  }
}
