/* =========================================================
   MYM SITE UI POLISH v1.0.4
========================================================= */

:root {
  --mym-polish-blue: #005DA3;
  --mym-polish-blue-dark: #003E6D;
  --mym-polish-red: #D71920;
}

/* =========================================================
   1. DESKTOP HEADER — TEXT ONLY
   No Engine/Gearbox menu icons at all. This also kills the
   broken icon-font pseudo element that was rendering as the
   white square below each menu label.
========================================================= */

@media (min-width: 1025px) {
  .whb-header a.mym-polish-text-only::before,
  .whb-header a.mym-polish-text-only::after,
  header a.mym-polish-text-only::before,
  header a.mym-polish-text-only::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .whb-header a.mym-polish-text-only > img,
  .whb-header a.mym-polish-text-only > svg,
  .whb-header a.mym-polish-text-only > i,
  .whb-header a.mym-polish-text-only > .mym-polish-header-icon,
  .whb-header a.mym-polish-text-only > [class*="menu-icon"],
  .whb-header a.mym-polish-text-only > [class*="nav-icon"],
  .whb-header a.mym-polish-text-only > [class*="menu-image"],
  .whb-header a.mym-polish-text-only > [class*="nav-image"],
  .whb-header a.mym-polish-text-only > .wd-nav-img,
  header a.mym-polish-text-only > img,
  header a.mym-polish-text-only > svg,
  header a.mym-polish-text-only > i,
  header a.mym-polish-text-only > .mym-polish-header-icon,
  header a.mym-polish-text-only > [class*="menu-icon"],
  header a.mym-polish-text-only > [class*="nav-icon"],
  header a.mym-polish-text-only > [class*="menu-image"],
  header a.mym-polish-text-only > [class*="nav-image"],
  header a.mym-polish-text-only > .wd-nav-img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Anything JS positively identifies as an old blank visual is removed. */
.mym-polish-broken-menu-visual {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* =========================================================
   2. DESKTOP MEGA MENU — HOVER GAP FIX
   We keep the menu alive while the cursor travels from the
   top navigation item down into the mega menu panel.
========================================================= */

@media (min-width: 1025px) {
  .whb-header li.mym-polish-mega-parent,
  header li.mym-polish-mega-parent {
    position: relative !important;
  }

  /* Kill pseudo-element artwork/placeholder blocks on BOTH the top-level link and
     its LI. The JS bridge handles hover, so the LI pseudos are not needed. */
  .whb-header li.mym-polish-strip-visuals::before,
  .whb-header li.mym-polish-strip-visuals::after,
  .whb-header li.mym-polish-strip-visuals > a::before,
  .whb-header li.mym-polish-strip-visuals > a::after,
  header li.mym-polish-strip-visuals::before,
  header li.mym-polish-strip-visuals::after,
  header li.mym-polish-strip-visuals > a::before,
  header li.mym-polish-strip-visuals > a::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Also neutralise common empty theme/menu wrappers even if they are nested. */
  .whb-header li.mym-polish-strip-visuals > a [class*="icon"],
  .whb-header li.mym-polish-strip-visuals > a [class*="image"],
  .whb-header li.mym-polish-strip-visuals > a [class*="img"],
  .whb-header li.mym-polish-strip-visuals > a [class*="opener"],
  .whb-header li.mym-polish-strip-visuals > a [class*="toggle"],
  header li.mym-polish-strip-visuals > a [class*="icon"],
  header li.mym-polish-strip-visuals > a [class*="image"],
  header li.mym-polish-strip-visuals > a [class*="img"],
  header li.mym-polish-strip-visuals > a [class*="opener"],
  header li.mym-polish-strip-visuals > a [class*="toggle"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .whb-header li.mym-polish-force-open > .wd-dropdown,
  .whb-header li.mym-polish-force-open > .wd-dropdown-menu,
  .whb-header li.mym-polish-force-open > .sub-menu,
  .whb-header li.mym-polish-force-open > ul.sub-menu,
  header li.mym-polish-force-open > .wd-dropdown,
  header li.mym-polish-force-open > .wd-dropdown-menu,
  header li.mym-polish-force-open > .sub-menu,
  header li.mym-polish-force-open > ul.sub-menu,
  .mym-polish-force-dropdown-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0,0,0) !important;
    margin-top: 0 !important;
    z-index: 100002 !important;
  }

  .mym-polish-hover-bridge {
    position: fixed !important;
    z-index: 100001 !important;
    display: block !important;
    background: transparent !important;
    pointer-events: auto !important;
  }
}

/* =========================================================
   3. FIXED ENGINE / GEARBOX FINDER
========================================================= */

#mym-polish-finder-launcher {
  --launcher-size: 68px;

  box-sizing: border-box !important;
  position: fixed !important;
  z-index: 99960 !important;
  left: 22px !important;
  bottom: 22px !important;

  width: var(--launcher-size) !important;
  height: var(--launcher-size) !important;
  min-width: var(--launcher-size) !important;
  min-height: var(--launcher-size) !important;
  max-width: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  overflow: hidden !important;

  margin: 0 !important;
  padding: 0 10px !important;

  border: 1px solid rgba(255,255,255,.30) !important;
  border-radius: 999px !important;

  background:
    radial-gradient(circle at 28% 18%, rgba(104,202,255,.34), transparent 38%),
    linear-gradient(135deg, #0876BC 0%, #005DA3 48%, #003E6D 100%) !important;

  color: #fff !important;
  box-shadow:
    0 16px 38px rgba(0,44,79,.34),
    inset 0 1px 0 rgba(255,255,255,.18) !important;

  font: inherit !important;
  line-height: 1 !important;
  cursor: pointer !important;

  transition:
    width .28s ease,
    transform .2s ease,
    box-shadow .2s ease !important;
}

#mym-polish-finder-launcher::after {
  content: "";
  position: absolute;
  z-index: 5;
  right: 7px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mym-polish-red);
  box-shadow: 0 0 0 3px rgba(215,25,32,.17);
  pointer-events: none;
}

#mym-polish-finder-launcher:hover,
#mym-polish-finder-launcher:focus-visible {
  width: 290px !important;
  transform: translateY(-2px);
  outline: none !important;
  box-shadow:
    0 20px 46px rgba(0,44,79,.42),
    inset 0 1px 0 rgba(255,255,255,.20) !important;
}

.mym-polish-finder-icon {
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  color: #fff !important;
}

.mym-polish-finder-icon svg {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  overflow: visible !important;
  color: #fff !important;
  fill: none !important;
  stroke: #fff !important;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.24));
  opacity: 1 !important;
}

.mym-polish-finder-icon .mym-polish-search-ring {
  fill: rgba(255,255,255,.05) !important;
  stroke: #fff !important;
  stroke-width: 3.7 !important;
}

.mym-polish-finder-icon .mym-polish-search-handle {
  stroke: #fff !important;
  stroke-width: 4.2 !important;
  stroke-linecap: round !important;
}

.mym-polish-finder-icon .mym-polish-engine-glyph {
  fill: #fff !important;
  stroke: none !important;
  opacity: .96 !important;
}

.mym-polish-finder-label {
  position: relative;
  z-index: 2;
  flex: 0 0 208px;
  white-space: nowrap;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  opacity: 0 !important;
  transform: translateX(-7px);
  transition: opacity .18s ease .05s, transform .22s ease .04s !important;
}

#mym-polish-finder-launcher:hover .mym-polish-finder-label,
#mym-polish-finder-launcher:focus-visible .mym-polish-finder-label {
  opacity: 1 !important;
  transform: translateX(0);
}

/* Hide the original horizontal finder trigger, but keep it in DOM for clicks. */
.mym-polish-old-finder-trigger {
  position: fixed !important;
  left: -10000px !important;
  bottom: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* Remove only stray/floating Request a Part launcher shells. */
.mym-polish-hide-request-launcher,
#mym-rap-global-trigger.mym-polish-hide-request-launcher {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 1024px) {
  #mym-polish-finder-launcher,
  #mym-polish-finder-launcher:hover,
  #mym-polish-finder-launcher:focus-visible {
    --launcher-size: 64px;
    left: 16px !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    width: var(--launcher-size) !important;
    height: var(--launcher-size) !important;
    min-width: var(--launcher-size) !important;
    min-height: var(--launcher-size) !important;
    padding: 0 8px !important;
    transform: none !important;
  }

  .mym-polish-finder-icon {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .mym-polish-finder-icon svg {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .mym-polish-finder-label {
    display: none !important;
  }
}
