/* Shared source: homepage-style header (search + 4 icons) across all matching pages */
/* Shop page header redesign inspired by 1600.agency */
@media (min-width: 1025px) {
  body {
    position: relative;
    top: 118px !important;
  }

  .blackWraper,
  .search-options-nav,
  .saved-search,
  .latest-search,
  .categoriesNavBar,
  .subCategoriesNavBar,
  .search-ul-radio,
  .search-ul-checkbox,
  .closeSearchBarButton {
    display: none !important;
  }

	  .header {
	    position: fixed !important;
	    top: 14px !important;
	    left: 50% !important;
	    transform: translateX(-50%) !important;
	    width: calc(100% - 140px) !important;
	    max-width: 1200px !important;
	    height: 80px !important;
	    min-height: 80px !important;
	    margin: 0 !important;
	    border-radius: 9999px !important;
	    border: 1.5px solid rgb(0, 96, 239);
	    background: rgba(255, 255, 255, 0.77) !important;
	    backdrop-filter: blur(14px) saturate(145%);
	    -webkit-backdrop-filter: blur(14px) saturate(145%);
	    box-shadow: 0 20px 45px -32px rgba(15, 23, 42, 0.55), inset 0 0px 0 rgba(255, 255, 255, 0);
	    flex-flow: row !important;
	    align-items: center !important;
	    z-index: 10040 !important;
	    transition: box-shadow 0.2s ease, transform 0.2s ease;
	  }

  .header:hover {
    box-shadow: 0 26px 55px -36px rgba(15, 23, 42, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  header>.container-100-child.flex-container {
    width: 100% !important;
    height: 100% !important;
    padding: 0 14px !important;
    display: grid !important;
    grid-template-columns: auto minmax(420px, 1fr) auto;
    gap: 14px;
    align-items: center !important;
    justify-content: unset !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .header-logo {
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 110px;
  }

  .header-logo img {
    width: 119px !important;
    margin: 0 !important;
  }

  .dm_search_form {
    width: 700px !important;
    max-width: 700px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    display: block !important;
  }

  body.desktop-search-open .dm_search_form,
  .dm_search_form-opened,
  .dm_search_form.desktop-search-opened {
    width: 700px !important;
    max-width: 700px !important;
    --desktop-filters-left: 0px !important;
    --desktop-filters-right: 0px !important;
    overflow: visible !important;
  }

  .dm_search_form-opened::before,
  .dm_search_form.desktop-search-opened::before {
    left: 0 !important;
    right: 0 !important;
    top: 78px !important;
    border-radius: 24px !important;
  }

  .dm_search_form-opened .search-ul-radio-opened,
  .dm_search_form-opened .search-ul-checkbox-opened,
  .dm_search_form.desktop-search-opened .search-ul-radio-opened,
  .dm_search_form.desktop-search-opened .search-ul-checkbox-opened {
    left: 12px !important;
    right: 12px !important;
  }

  /* Match homepage switch style in filter panel */
  .dm_search_form-opened .switchAnimLab,
  .dm_search_form.desktop-search-opened .switchAnimLab {
    position: relative !important;
    display: inline-block !important;
    width: var(--switch-width) !important;
    min-width: var(--switch-width) !important;
    max-width: var(--switch-width) !important;
    height: var(--switch-height) !important;
    background-color: var(--bg-off) !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: 0.3s ease !important;
    overflow: hidden !important;
    flex: 0 0 var(--switch-width) !important;
    margin-right: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .dm_search_form-opened .switchAnimLab:has(.checkBoxGroup:checked),
  .dm_search_form.desktop-search-opened .switchAnimLab:has(.checkBoxGroup:checked) {
    background-color: var(--bg-on) !important;
  }

  .dm_search_form-opened .checkBoxGroup,
  .dm_search_form.desktop-search-opened .checkBoxGroup {
    position: relative !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    display: block !important;
  }

  .dm_search_form-opened .checkBoxLab,
  .dm_search_form.desktop-search-opened .checkBoxLab {
    content: "" !important;
    position: absolute !important;
    height: var(--knob-size) !important;
    width: var(--knob-size) !important;
    left: var(--padding) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: var(--knob-color) !important;
    border-radius: 50% !important;
    transition: 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;
    display: block !important;
    border: none !important;
  }

  .dm_search_form-opened .checkBoxGroup:checked+.checkBoxLab,
  .dm_search_form.desktop-search-opened .checkBoxGroup:checked+.checkBoxLab {
    left: calc(100% - var(--knob-size) - var(--padding)) !important;
  }

  .dm_search_form-opened .checkBoxLab .line1,
  .dm_search_form-opened .checkBoxLab .line2,
  .dm_search_form-opened .checkBoxLabChecked .line1,
  .dm_search_form-opened .checkBoxLabChecked .line2,
  .dm_search_form.desktop-search-opened .checkBoxLab .line1,
  .dm_search_form.desktop-search-opened .checkBoxLab .line2,
  .dm_search_form.desktop-search-opened .checkBoxLabChecked .line1,
  .dm_search_form.desktop-search-opened .checkBoxLabChecked .line2 {
    display: none !important;
  }

  .header .search-container,
  .header .search-container-opened,
  .header .search-container.elevated {
    width: 700px !important;
    max-width: 700px !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 6px 8px 6px 14px !important;
    border-radius: 999px !important;
    border: 1px solid #0060ef !important;
    background: rgba(246, 250, 255, 0) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 25px -20px rgba(15, 23, 42, 0.4);
    display: grid !important;
    grid-template-columns: 170px 180px minmax(180px, 1fr);
    align-items: center !important;
    overflow: hidden !important;
    z-index: 10 !important;
  }

  .header .regionsCont,
  .header .categoriesCont,
  .header .categoriesCont-opened {
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    column-gap: 8px !important;
    border-right: 1px solid rgba(148, 163, 184, 0.3) !important;
    padding: 0 10px 0 4px !important;
    background: transparent !important;
  }

  .header .categoriesCont,
  .header .categoriesCont-opened {
    border-right: 1px solid rgba(148, 163, 184, 0.3) !important;
  }

  .searchBarCont {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 12px !important;
    position: relative;
  }

  .search-container #county,
  .search-container #opt {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    display: block !important;
    align-self: center !important;
    position: relative !important;
    top: -1px !important;
    text-overflow: ellipsis;
    background: transparent !important;
    padding: 0 18px 0 0 !important;
  }

  .regionsCont .locationIcon {
    width: 20px !important;
    height: 20px !important;
    order: -1 !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    align-self: center !important;
    opacity: 0.9;
  }

  .search-container input[type="text"] {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: transparent !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    position: relative !important;
    top: -1px !important;
    padding: 0 56px 0 2px !important;
  }

  .search-container input[type="text"]::placeholder {
    color: #334155 !important;
    opacity: 0.76;
  }

  .header .search-container .searchBarCont .btn-submit {
    position: absolute !important;
    right: 0px !important;
    top: 55% !important;
    transform: translateY(-56%) !important;
    margin: 0 !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  .header .search-container .searchBarCont .btn-submit img {
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 11px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    background: #0060ef !important;
    box-shadow: none !important;
    display: block !important;
    transform: none !important;
    transform-origin: center center !important;
    filter: none !important;
  }

  .header .search-container .searchBarCont .btn-submit::before {
    content: none !important;
  }

  .header .search-container .searchBarCont .btn-submit::after {
    content: none !important;
  }

  menu.menu-user {
    height: 56px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    column-gap: 8px !important;
    border-radius: 999px !important;
    border: 1px solid #0060ef !important;
    background: rgba(248, 250, 255, 0) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 25px -20px rgba(15, 23, 42, 0.4);
  }

  menu.menu-user .profile-icon-container,
  menu.menu-user .cart-icon-container,
  menu.menu-user .add-new-ad,
  menu.menu-user .change-lang-container {
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  menu.menu-user .profile-icon-container img.profile-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 999px !important;
  }

  menu.menu-user .cart-icon-container:hover,
  menu.menu-user .add-new-ad:hover {
    outline: 1px solid #0060ef !important;
    background: rgba(0, 96, 239, 0.12) !important;
  }

  menu.menu-user .profile-icon-container:hover {
    outline: 1px solid rgba(15, 23, 42, 0.2) !important;
    background: rgba(241, 245, 249, 0.9) !important;
  }

  menu.menu-user .change-lang-container {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    align-self: flex-start !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 7px 0 !important;
    box-shadow: none !important;
    /*! background: rgb(248, 250, 255) !important; */
    /*! border: 1px solid rgba(148, 163, 184, 0.35) !important; */
    min-width: 36px !important;
    width: 36px !important;
    flex: 0 0 36px !important;
    height: 36px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    row-gap: 6px !important;
    border-radius: 999px !important;
    transform-origin: top center !important;
    transition: height 0.18s ease, padding-top 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease !important;
  }

  menu.menu-user .change-lang-container:hover,
  menu.menu-user .change-lang-container:focus-within {
    height: fit-content !important;
    min-height: 36px !important;
    padding-top: 32px !important;
    padding-bottom: 7px !important;
    border-radius: 999px !important;
    background: rgba(241, 245, 249, 0.96) !important;
    box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.55) !important;
  }

  menu.menu-user .change-lang-container .icon-change-lang {
    width: 36px !important;
    height: 36px !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20 !important;
    pointer-events: none !important;
  }

  menu.menu-user .change-lang-container a.lang-link {
    position: static !important;
    right: auto !important;
    top: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 22px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(148, 163, 184, 0.34) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-4px) !important;
    transition: opacity 0.16s ease, transform 0.16s ease !important;
    z-index: 15 !important;
  }

  menu.menu-user .change-lang-container:hover a.lang-link,
  menu.menu-user .change-lang-container:focus-within a.lang-link {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  menu.menu-user .change-lang-container a.lang-link:hover {
    background: #eef4ff !important;
    border-color: rgba(0, 96, 239, 0.42) !important;
  }

  menu.menu-user .change-lang-container a.lang-link .lang-link-icon {
    width: 36px !important;
    height: 36px !important;
    display: block !important;
    border-radius: 999px !important;
    object-fit: cover !important;
  }

  menu.menu-user .change-lang-container a.lang-link.lang-link-with-icon {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  menu.menu-user .change-lang-container a.lang-link.lang-link-with-icon:hover {
    background: transparent !important;
    border: 0 !important;
  }

  menu.menu-user .dropdown-inner {
    border-radius: 3px 3px 5px 5px !important;
  }

  menu.menu-user .dropdown-inner::after {
    border-radius: 999px 999px 0 0 !important;
  }

  /* Size parity for pages that still ship legacy header rules (ex: ad detail). */
  body.shared-home-header header.container-100.header,
  body.shared-home-header header.container-100.header.shared-home-header-shell,
  body.ad-update-home-header header.container-100.header {
    position: fixed !important;
    top: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 140px) !important;
    max-width: 1200px !important;
    height: 80px !important;
    min-height: 80px !important;
    border-radius: 9999px !important;
    flex-flow: row !important;
    align-items: center !important;
  }

  body.shared-home-header header.container-100.header > .container-100-child.flex-container,
  body.ad-update-home-header header.container-100.header > .container-100-child.flex-container {
    width: 100% !important;
    height: 100% !important;
    padding: 0 14px !important;
    display: grid !important;
    grid-template-columns: auto minmax(420px, 1fr) auto !important;
    gap: 14px !important;
    align-items: center !important;
  }

  body.shared-home-header menu.menu-user,
  body.ad-update-home-header menu.menu-user {
    height: 60px !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
  }

  /* Global placement: icon bar on the far right, credit outside icon bar. */
  body.shared-header-size-all header.container-100.header > .container-100-child.flex-container {
    grid-template-columns: auto minmax(240px, 1fr) auto auto !important;
  }

  body.shared-header-size-all .dm_search_form {
    grid-column: 2 !important;
    justify-self: center !important;
  }

  body.shared-header-size-all .current-credit-header {
    grid-column: 3 !important;
    justify-self: end !important;
    margin: 0 12px 0 0 !important;
    position: static !important;
    white-space: nowrap !important;
  }

  body.shared-header-size-all menu.menu-user {
    grid-column: 4 !important;
    justify-self: end !important;
    margin-left: 0 !important;
  }

  body.shared-header-size-all.ad-update-home-header .current-credit-header {
    grid-column: 3 !important;
    justify-self: end !important;
    margin: 0 12px 0 0 !important;
  }

  body.shared-header-size-all.ad-update-home-header menu.menu-user {
    grid-column: 4 !important;
    justify-self: end !important;
    margin-left: 0 !important;
  }

}
