/* Cashback Pro V36.8.41 — show account quick menu in Default Light and release touch focus. */

/* V36.8.39 clips the absolute quick menu with overflow:hidden on the pill.
   Only release clipping while the menu is open, preserving the rounded chip otherwise. */
html body .app-header .user-pill:has(#header-actions-menu:not([hidden])),
html body.theme-default.default-light-mode .app-header .user-pill:has(#header-actions-menu:not([hidden])),
html body.default-light-mode .app-header .user-pill:has(#header-actions-menu:not([hidden])) {
  overflow: visible !important;
  isolation: isolate !important;
  z-index: 30010 !important;
}

html body .app-header:has(#header-actions-menu:not([hidden])),
html body.theme-default.default-light-mode .app-header:has(#header-actions-menu:not([hidden])),
html body.default-light-mode .app-header:has(#header-actions-menu:not([hidden])) {
  overflow: visible !important;
  z-index: 30000 !important;
}

/* Make the quick-action panel visible above the header in both light and dark modes. */
html body .app-header #header-actions-menu:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: absolute !important;
  top: calc(100% + 7px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 30030 !important;
  transform: none !important;
}

html body.theme-default.default-light-mode .app-header #header-actions-menu:not([hidden]),
html body.default-light-mode .app-header #header-actions-menu:not([hidden]) {
  color: #24364d !important;
  background: rgba(248, 250, 255, .97) !important;
  border: 1px solid #c7d2e0 !important;
  box-shadow: 0 12px 30px rgba(28, 43, 66, .20) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  backdrop-filter: blur(18px) !important;
}

html body.theme-default.default-light-mode .app-header #header-actions-menu .notification-bell,
html body.default-light-mode .app-header #header-actions-menu .notification-bell,
html body.theme-default.default-light-mode .app-header #header-actions-menu #theme-gallery-toggle,
html body.default-light-mode .app-header #header-actions-menu #theme-gallery-toggle {
  color: #24364d !important;
  background: rgba(248, 250, 255, .96) !important;
  border-color: #c7d2e0 !important;
}

/* Touch interaction: don't retain the pressed/focused appearance after tap. */
@media (hover: none), (pointer: coarse) {
  html body .app-header #user-name-display:focus:not(:focus-visible) {
    outline: 0 !important;
    box-shadow: none !important;
  }
  html body .app-header #user-name-display.is-actions-open {
    -webkit-tap-highlight-color: transparent !important;
  }
}
