/**
 * AdeptDEV Premium Search UI
 * Stage 3.2.1 / Version 3.2.1
 * Copyright (c) 2026 AdeptDEV — t.me/tcpraw
 */

#nxDesktopSearch {
  isolation: isolate;
  min-width: 0;
}

#nxAjaxResults {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

#nxAjaxResults[aria-hidden="true"],
#nxDesktopSearch:not(.is-search-open) #nxAjaxResults:not(.is-visible) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#nxDesktopSearch.is-search-open #nxAjaxResults.is-visible,
#nxAjaxResults.is-visible[aria-hidden="false"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#nxAjaxResults,
#nxAjaxResults *,
#nxAjaxResults *::before,
#nxAjaxResults *::after {
  box-sizing: border-box;
}

#nxAjaxResults .nx-search-panel,
#nxAjaxResults .nx-search-panel__products,
#nxAjaxResults .nx-search-panel__categories,
#nxAjaxResults .nx-search-panel__scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#nxAjaxResults .nx-search-panel__scroll {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#nxAjaxResults a,
#nxAjaxResults button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#nxAjaxResults .nx-search-product:focus-visible,
#nxAjaxResults .nx-search-category:focus-visible,
#nxAjaxResults .nx-search-panel__footer:focus-visible {
  outline: 3px solid rgba(155, 45, 48, .22) !important;
  outline-offset: -3px !important;
}

#nxAjaxResults .nx-search-loading {
  pointer-events: none;
}

/* Mobile search: safe-area aware and no horizontal overflow. */
@media (max-width: 900px) {
  #nxAjaxResults.is-visible[aria-hidden="false"] {
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  #nxAjaxResults .nx-search-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
  }

  #nxAjaxResults .nx-search-panel__products {
    min-height: 0;
  }

  #nxAjaxResults .nx-search-panel__scroll {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  #nxAjaxResults.is-visible[aria-hidden="false"] {
    top: max(6px, env(safe-area-inset-top)) !important;
    right: max(6px, env(safe-area-inset-right)) !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    left: max(6px, env(safe-area-inset-left)) !important;
    border-radius: 16px !important;
  }

  #nxAjaxResults .nx-search-panel__head {
    min-height: 54px;
    padding: 13px 14px 11px;
  }

  #nxAjaxResults .nx-search-product {
    min-height: 82px;
    padding: 10px 12px;
    gap: 11px;
  }

  #nxAjaxResults .nx-search-product__name {
    overflow-wrap: anywhere;
  }

  #nxAjaxResults .nx-search-panel__footer {
    min-height: 52px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 359px) {
  #nxAjaxResults .nx-search-product {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  #nxAjaxResults .nx-search-product__media {
    width: 50px !important;
    height: 50px !important;
  }

  #nxAjaxResults .nx-search-product__prices {
    grid-column: 2 !important;
    justify-items: start !important;
    white-space: normal;
  }
}

@media (hover: none), (pointer: coarse) {
  #nxAjaxResults .nx-search-product:hover,
  #nxAjaxResults .nx-search-category:hover,
  #nxAjaxResults .nx-search-panel__footer:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nxAjaxResults,
  #nxAjaxResults * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   AdeptDEV AJAX Search 2.0 — v4.0
   ========================================================= */
#nxAjaxResults .nx-search2-idle{
  display:grid;gap:12px;padding:14px;
  border:1px solid rgba(55,35,45,.08);border-radius:18px;background:#fff;
  box-shadow:0 18px 48px rgba(41,20,31,.11);
}
#nxAjaxResults .nx-search2-section{display:grid;gap:9px}
#nxAjaxResults .nx-search2-section+.nx-search2-section{padding-top:11px;border-top:1px solid rgba(55,35,45,.07)}
#nxAjaxResults .nx-search2-section__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#nxAjaxResults .nx-search2-section__head strong{
  color:#2a2328;font-size:10px;font-weight:900;letter-spacing:.04em
}
#nxAjaxResults .nx-search2-section__head button{
  padding:0;border:0;background:transparent;color:#a72d52;font-size:8px;font-weight:850;cursor:pointer
}
#nxAjaxResults .nx-search2-chips{display:flex;flex-wrap:wrap;gap:7px}
#nxAjaxResults .nx-search2-chip{
  min-height:31px;padding:0 10px;border:1px solid rgba(167,45,82,.12);border-radius:999px;
  background:#fff8fa;color:#5d5157;font-size:9px;font-weight:800;cursor:pointer;transition:.18s
}
#nxAjaxResults .nx-search2-chip:hover{border-color:rgba(167,45,82,.3);background:#fff0f4;color:#a72d52;transform:translateY(-1px)}
#nxAjaxResults mark{padding:0 1px;border-radius:3px;background:rgba(236,56,91,.13);color:inherit;font-weight:950}
#nxAjaxResults .nx-search-product{position:relative;padding-right:88px!important}
#nxAjaxResults .nx-search2-cart{
  position:absolute;right:9px;top:50%;transform:translateY(-50%);
  min-width:72px;height:31px;padding:0 7px 0 9px;
  display:flex;align-items:center;justify-content:space-between;gap:6px;
  border:1px solid rgba(167,45,82,.16);border-radius:9px;background:#a72d52;color:#fff;
  font-size:7.5px;font-weight:900;cursor:pointer;z-index:3;transition:.18s
}
#nxAjaxResults .nx-search2-cart b{display:grid;place-items:center;width:17px;height:17px;border-radius:6px;background:rgba(255,255,255,.17);font-size:12px}
#nxAjaxResults .nx-search2-cart:hover{background:#8f2446;transform:translateY(calc(-50% - 1px))}
#nxAjaxResults .nx-search2-cart.is-loading{opacity:.55;pointer-events:none}
#nxAjaxResults .nx-search2-cart.is-added{background:#208c5c;border-color:#208c5c}
#nxAjaxResults .nx-search2-brands{padding:0 0 11px;margin-bottom:10px;border-bottom:1px solid rgba(55,35,45,.08)}
#nxAjaxResults .nx-search2-brand-list{display:grid;gap:4px;margin-top:7px}
#nxAjaxResults .nx-search2-brand-list a{
  min-height:31px;padding:0 9px;display:flex;align-items:center;justify-content:space-between;gap:8px;
  border-radius:9px;color:#40373c;font-size:9px;font-weight:800;text-decoration:none
}
#nxAjaxResults .nx-search2-brand-list a:hover{background:rgba(167,45,82,.06);color:#a72d52}
#nxAjaxResults .nx-search2-suggestion{
  margin:0 0 8px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid rgba(167,45,82,.14);border-radius:13px;background:#fff7f9;color:#756970;font-size:9px
}
#nxAjaxResults .nx-search2-suggestion button{
  border:0;background:transparent;color:#a72d52;font-size:9px;font-weight:850;cursor:pointer
}
body.nx-dark #nxAjaxResults .nx-search2-idle{border-color:rgba(255,255,255,.07);background:#181519;box-shadow:0 18px 48px rgba(0,0,0,.3)}
body.nx-dark #nxAjaxResults .nx-search2-section+.nx-search2-section,
body.nx-dark #nxAjaxResults .nx-search2-brands{border-color:rgba(255,255,255,.07)}
body.nx-dark #nxAjaxResults .nx-search2-section__head strong{color:#f1ebef}
body.nx-dark #nxAjaxResults .nx-search2-chip{border-color:rgba(240,111,153,.13);background:rgba(240,111,153,.06);color:#c8bdc3}
body.nx-dark #nxAjaxResults .nx-search2-chip:hover{background:rgba(240,111,153,.11);color:#ff8bae}
body.nx-dark #nxAjaxResults .nx-search2-brand-list a{color:#d8ced3}
body.nx-dark #nxAjaxResults .nx-search2-brand-list a:hover{background:rgba(240,111,153,.07);color:#ff8bae}
body.nx-dark #nxAjaxResults .nx-search2-suggestion{border-color:rgba(240,111,153,.15);background:rgba(240,111,153,.055);color:#aaa0a7}
@media(max-width:700px){
  #nxAjaxResults .nx-search-product{padding-right:72px!important}
  #nxAjaxResults .nx-search2-cart{right:7px;min-width:60px;height:29px;font-size:7px}
  #nxAjaxResults .nx-search2-cart span{max-width:38px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #nxAjaxResults .nx-search2-suggestion{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  #nxAjaxResults .nx-search2-chip,#nxAjaxResults .nx-search2-cart{transition:none!important}
}


/* AdeptDEV Search 2.0 FIX v4.0.1 */
#nxAjaxResults .nx-search2-idle{
  padding:14px 16px!important;
  display:grid!important;
  gap:14px!important;
}
#nxAjaxResults .nx-search2-idle section{
  display:grid;
  gap:9px;
}
#nxAjaxResults .nx-search2-idle section+section{
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.07);
}
#nxAjaxResults .nx-search2-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
#nxAjaxResults .nx-search2-head strong{
  font-size:9px!important;font-weight:900!important;letter-spacing:.02em;
}
#nxAjaxResults .nx-search2-head button{
  border:0!important;background:transparent!important;box-shadow:none!important;
  width:auto!important;height:auto!important;padding:0!important;
  color:#d94d79!important;font-size:8px!important;font-weight:850!important;
}
#nxAjaxResults .nx-search2-chips{display:flex;flex-wrap:wrap;gap:7px}
#nxAjaxResults .nx-search2-chips>button{
  position:static!important;
  width:auto!important;height:30px!important;min-width:0!important;
  padding:0 10px!important;
  border:1px solid rgba(217,77,121,.14)!important;
  border-radius:999px!important;
  background:rgba(217,77,121,.06)!important;
  box-shadow:none!important;
  color:inherit!important;
  font-size:8.5px!important;font-weight:800!important;
}
/* Critical: search results must never inherit the header's submit-button geometry */
#nxAjaxResults button:not(.nx-search2-cart):not([data-search2-term]):not([data-search2-clear]){
  transform:none;
}
#nxAjaxResults::before,#nxAjaxResults::after{pointer-events:none}
/* one and only one magnifier = the real submit button inside the search field */
#nxAjaxResults .nx-search-submit,
#nxAjaxResults .search-button,
#nxAjaxResults button[type="submit"]{
  display:none!important;
}
#nxAjaxResults mark{
  padding:0 1px;border-radius:3px;background:rgba(217,77,121,.18);color:inherit;font-weight:950;
}
#nxAjaxResults .nx-search-product{position:relative!important;padding-right:86px!important}
#nxAjaxResults .nx-search2-cart{
  position:absolute!important;right:9px!important;top:50%!important;
  transform:translateY(-50%)!important;
  width:auto!important;min-width:70px!important;height:30px!important;
  padding:0 7px 0 9px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;
  border:1px solid rgba(217,77,121,.22)!important;border-radius:9px!important;
  background:#a72d52!important;color:#fff!important;box-shadow:none!important;
  font-size:7.5px!important;font-weight:900!important;
}
#nxAjaxResults .nx-search2-cart b{
  width:17px;height:17px;display:grid;place-items:center;border-radius:6px;
  background:rgba(255,255,255,.15);font-size:12px
}
#nxAjaxResults .nx-search2-cart.is-added{background:#218a5a!important}
body:not(.nx-dark) #nxAjaxResults .nx-search2-idle section+section{border-color:rgba(55,35,45,.07)}
body:not(.nx-dark) #nxAjaxResults .nx-search2-chips>button{background:#fff8fa!important;color:#554b51!important}
@media(max-width:700px){
  #nxAjaxResults .nx-search-product{padding-right:70px!important}
  #nxAjaxResults .nx-search2-cart{min-width:58px!important;height:28px!important;font-size:6.8px!important}
}


/* AdeptDEV native Search 2.0 inline engine v17.2 */
#nxAjaxResults .nx-search2-idle{
  display:grid!important;
  gap:13px!important;
  padding:13px 16px!important;
}
#nxAjaxResults .nx-search2-idle section{display:grid!important;gap:8px!important}
#nxAjaxResults .nx-search2-idle section+section{
  padding-top:11px!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
}
#nxAjaxResults .nx-search2-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important
}
#nxAjaxResults .nx-search2-head strong{font-size:9px!important;font-weight:900!important}
#nxAjaxResults .nx-search2-head button{
  position:static!important;width:auto!important;height:auto!important;padding:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
  color:#d94d79!important;font-size:8px!important;font-weight:850!important
}
#nxAjaxResults .nx-search2-chips{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
#nxAjaxResults .nx-search2-chips button{
  position:static!important;width:auto!important;min-width:0!important;height:29px!important;
  padding:0 10px!important;border:1px solid rgba(217,77,121,.16)!important;border-radius:999px!important;
  background:rgba(217,77,121,.065)!important;color:inherit!important;box-shadow:none!important;
  font-size:8px!important;font-weight:850!important;transform:none!important
}

#nxAjaxResults .nx-search-product{
  position:relative!important;
  padding-right:102px!important;
}
#nxAjaxResults .nx-search2-cart{
  position:absolute!important;
  z-index:10!important;
  right:10px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:6px!important;
  width:82px!important;
  min-width:82px!important;
  height:32px!important;
  padding:0 7px 0 9px!important;
  border:1px solid rgba(240,111,153,.24)!important;
  border-radius:9px!important;
  background:#a72d52!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 5px 14px rgba(0,0,0,.12)!important;
  font-size:7.5px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
}
#nxAjaxResults .nx-search2-cart b{
  display:grid!important;place-items:center!important;
  width:18px!important;height:18px!important;border-radius:6px!important;
  background:rgba(255,255,255,.16)!important;color:#fff!important;font-size:12px!important
}
#nxAjaxResults .nx-search2-cart.is-loading{opacity:.55!important;pointer-events:none!important}
#nxAjaxResults .nx-search2-cart.is-added{background:#238b5c!important;border-color:#238b5c!important}

#nxAjaxResults mark{
  padding:0 1px!important;border-radius:3px!important;
  background:rgba(217,77,121,.18)!important;color:inherit!important;font-weight:950!important
}

body:not(.nx-dark) #nxAjaxResults .nx-search2-idle section+section{border-color:rgba(55,35,45,.07)!important}
body:not(.nx-dark) #nxAjaxResults .nx-search2-chips button{background:#fff8fa!important;color:#554b51!important}

@media(max-width:700px){
  #nxAjaxResults .nx-search-product{padding-right:78px!important}
  #nxAjaxResults .nx-search2-cart{right:7px!important;width:64px!important;min-width:64px!important;height:29px!important;font-size:6.7px!important}
}


/* =========================================================
   AdeptDEV Search quick-cart UI FIX v17.3
   Compact icon button — no submit/search button inheritance.
   ========================================================= */
#nxAjaxResults .nx-search-product{
  padding-right:58px!important;
}

#nxAjaxResults .nx-search2-cart,
#nxAjaxResults .nx-search-product .nx-search2-cart{
  all:unset!important;
  position:absolute!important;
  z-index:20!important;
  right:12px!important;
  top:50%!important;
  transform:translateY(-50%)!important;

  width:34px!important;
  height:34px!important;
  box-sizing:border-box!important;

  display:grid!important;
  place-items:center!important;

  border:1px solid rgba(217,77,121,.26)!important;
  border-radius:10px!important;
  background:rgba(167,45,82,.12)!important;
  color:#ef5e86!important;
  -webkit-text-fill-color:currentColor!important;

  cursor:pointer!important;
  box-shadow:none!important;
  opacity:1!important;
  visibility:visible!important;

  transition:background-color .16s ease,border-color .16s ease,transform .16s ease!important;
}

#nxAjaxResults .nx-search2-cart::before,
#nxAjaxResults .nx-search2-cart::after{
  content:none!important;
  display:none!important;
}

#nxAjaxResults .nx-search2-cart svg{
  display:block!important;
  width:17px!important;
  height:17px!important;
  margin:0!important;
  padding:0!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  pointer-events:none!important;
}

#nxAjaxResults .nx-search2-cart:hover{
  background:#a72d52!important;
  border-color:#a72d52!important;
  color:#fff!important;
  transform:translateY(calc(-50% - 1px))!important;
}

#nxAjaxResults .nx-search2-cart.is-loading{
  opacity:.5!important;
  pointer-events:none!important;
}

#nxAjaxResults .nx-search2-cart.is-added{
  background:#218b5c!important;
  border-color:#218b5c!important;
  color:#fff!important;
}

#nxAjaxResults .nx-search2-cart.is-added svg{
  stroke:#fff!important;
}

/* ensure product price never gets squeezed by the action */
#nxAjaxResults .nx-search-product__prices{
  padding-right:2px!important;
  min-width:92px!important;
}

body:not(.nx-dark) #nxAjaxResults .nx-search2-cart{
  background:#fff4f7!important;
  border-color:#f0b4c3!important;
  color:#b82d52!important;
}
body:not(.nx-dark) #nxAjaxResults .nx-search2-cart:hover{
  background:#a72d52!important;
  border-color:#a72d52!important;
  color:#fff!important;
}

@media(max-width:700px){
  #nxAjaxResults .nx-search-product{
    padding-right:50px!important;
  }
  #nxAjaxResults .nx-search2-cart,
  #nxAjaxResults .nx-search-product .nx-search2-cart{
    right:8px!important;
    width:32px!important;
    height:32px!important;
    border-radius:9px!important;
  }
}


/* =========================================================
   AdeptDEV Search button scope FIX v17.5
   ONLY the real search submit gets the red geometry.
   Result chips/buttons are completely excluded.
   ========================================================= */

#nxDesktopSearch{
  position:relative!important;
  min-width:0!important;
}

/* Reserve space for the real submit only */
#nxDesktopSearch > .input-group,
#nxDesktopSearch > form,
#nxDesktopSearch > .search,
#nxDesktopSearch > div:not(#nxAjaxResults){
  position:relative;
  min-width:0;
}

#nxDesktopSearch input[type="search"],
#nxDesktopSearch input[type="text"],
#nxDesktopSearch .form-control{
  box-sizing:border-box!important;
  padding-right:64px!important;
}

/* Remove browser-native search decorations */
#nxDesktopSearch input[type="search"]::-webkit-search-decoration,
#nxDesktopSearch input[type="search"]::-webkit-search-cancel-button,
#nxDesktopSearch input[type="search"]::-webkit-search-results-button,
#nxDesktopSearch input[type="search"]::-webkit-search-results-decoration{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:none!important;
}

/*
 * IMPORTANT:
 * Target only buttons belonging to the actual input group/search form.
 * Never target #nxAjaxResults descendants.
 */
#nxDesktopSearch > .input-group > .input-group-btn > button,
#nxDesktopSearch > .input-group > button,
#nxDesktopSearch > form > button[type="submit"],
#nxDesktopSearch > .search > button[type="submit"],
#nxDesktopSearch > button[type="submit"]{
  position:absolute!important;
  z-index:8!important;
  top:50%!important;
  right:5px!important;
  left:auto!important;
  bottom:auto!important;

  width:50px!important;
  min-width:50px!important;
  max-width:50px!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;

  margin:0!important;
  padding:0!important;
  transform:translateY(-50%)!important;

  display:grid!important;
  place-items:center!important;

  border:0!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#a72d52,#c6375e)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 8px 22px rgba(167,45,82,.22)!important;
}

/* Its icon only */
#nxDesktopSearch > .input-group > .input-group-btn > button svg,
#nxDesktopSearch > .input-group > button svg,
#nxDesktopSearch > form > button[type="submit"] svg,
#nxDesktopSearch > .search > button[type="submit"] svg,
#nxDesktopSearch > button[type="submit"] svg{
  width:20px!important;
  height:20px!important;
  margin:0!important;
  fill:none!important;
  stroke:currentColor!important;
  transform:none!important;
}

/* AJAX results controls: explicitly normal geometry */
#nxAjaxResults button{
  position:static!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  bottom:auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  transform:none!important;
  box-shadow:none!important;
}

/* Restore intended Search 2.0 chips */
#nxAjaxResults .nx-search2-head button{
  display:inline-flex!important;
  align-items:center!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#d94d79!important;
  font-size:8px!important;
  font-weight:850!important;
  cursor:pointer!important;
}

#nxAjaxResults .nx-search2-chips button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:29px!important;
  padding:0 10px!important;
  border:1px solid rgba(217,77,121,.16)!important;
  border-radius:999px!important;
  background:rgba(217,77,121,.065)!important;
  color:inherit!important;
  font-size:8px!important;
  font-weight:850!important;
  cursor:pointer!important;
}

/* Restore product quick-cart, which intentionally is positioned */
#nxAjaxResults .nx-search2-cart{
  position:absolute!important;
  z-index:20!important;
  right:12px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(217,77,121,.26)!important;
  border-radius:10px!important;
  background:rgba(167,45,82,.12)!important;
  color:#ef5e86!important;
  cursor:pointer!important;
}

/* Kill any stray decorative magnifier outside the real submit */
#nxDesktopSearch > svg,
#nxDesktopSearch > .fa-search,
#nxDesktopSearch > .glyphicon-search{
  display:none!important;
}

@media(max-width:700px){
  #nxDesktopSearch input[type="search"],
  #nxDesktopSearch input[type="text"],
  #nxDesktopSearch .form-control{
    padding-right:56px!important;
  }

  #nxDesktopSearch > .input-group > .input-group-btn > button,
  #nxDesktopSearch > .input-group > button,
  #nxDesktopSearch > form > button[type="submit"],
  #nxDesktopSearch > .search > button[type="submit"],
  #nxDesktopSearch > button[type="submit"]{
    right:4px!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    border-radius:13px!important;
  }
}


/* =========================================================
   AdeptDEV Search light/dark quick-cart polish v17.6
   Strong contrast in LIGHT, compact premium action in DARK.
   ========================================================= */

/* LIGHT: visible white button with burgundy icon/border */
html:not(.nx-dark) body:not(.nx-dark) #nxAjaxResults .nx-search2-cart{
  background:#fff!important;
  border:1px solid rgba(167,45,82,.34)!important;
  color:#a72d52!important;
  -webkit-text-fill-color:#a72d52!important;
  box-shadow:0 4px 12px rgba(77,35,50,.07)!important;
}
html:not(.nx-dark) body:not(.nx-dark) #nxAjaxResults .nx-search2-cart svg{
  stroke:#a72d52!important;
}
html:not(.nx-dark) body:not(.nx-dark) #nxAjaxResults .nx-search2-cart:hover{
  background:#a72d52!important;
  border-color:#a72d52!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 6px 16px rgba(167,45,82,.17)!important;
}
html:not(.nx-dark) body:not(.nx-dark) #nxAjaxResults .nx-search2-cart:hover svg{
  stroke:#fff!important;
}

/* DARK: readable without turning into a large pink block */
html.nx-dark body #nxAjaxResults .nx-search2-cart,
body.nx-dark #nxAjaxResults .nx-search2-cart{
  background:rgba(217,77,121,.10)!important;
  border-color:rgba(240,111,153,.28)!important;
  color:#ff86aa!important;
  -webkit-text-fill-color:#ff86aa!important;
  box-shadow:none!important;
}
html.nx-dark body #nxAjaxResults .nx-search2-cart svg,
body.nx-dark #nxAjaxResults .nx-search2-cart svg{
  stroke:#ff86aa!important;
}
html.nx-dark body #nxAjaxResults .nx-search2-cart:hover,
body.nx-dark #nxAjaxResults .nx-search2-cart:hover{
  background:#a72d52!important;
  border-color:#a72d52!important;
  color:#fff!important;
}
html.nx-dark body #nxAjaxResults .nx-search2-cart:hover svg,
body.nx-dark #nxAjaxResults .nx-search2-cart:hover svg{
  stroke:#fff!important;
}

/* Added state works in both themes */
html:not(.nx-dark) body:not(.nx-dark) #nxAjaxResults .nx-search2-cart.is-added,
html.nx-dark body #nxAjaxResults .nx-search2-cart.is-added,
body.nx-dark #nxAjaxResults .nx-search2-cart.is-added{
  background:#218b5c!important;
  border-color:#218b5c!important;
  color:#fff!important;
}
#nxAjaxResults .nx-search2-cart.is-added svg{
  stroke:#fff!important;
}
