.apex-header-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  font-family: var(--apex-font-body, sans-serif);
}

header.site-header .apex-header-tool,
.apex-header-search button {
  position: relative;
  display: inline-flex;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid #343231 !important;
  border-radius: 6px;
  background: #101011 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #d1cbc4 !important;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

header.site-header .apex-header-tool:hover,
header.site-header .apex-header-tool:focus-visible,
.apex-header-search button:hover,
.apex-header-search button:focus-visible {
  border-color: #d44743 !important;
  background: #171718 !important;
  color: #f3f0eb !important;
}

.apex-header-tool:focus-visible,
.apex-header-search button:focus-visible,
.apex-header-search input:focus-visible {
  outline: 2px solid #ffaaa4;
  outline-offset: 2px;
}

.apex-header-tool__icon {
  flex: 0 0 auto;
}

.apex-header-tool__count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #080808;
  border-radius: 9px;
  background: #d44743;
  color: #f3f0eb;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.apex-header-search {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 10px;
  border: 1px solid #343231;
  border-radius: 7px;
  background: #101011;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
}

.apex-header-search[hidden] {
  display: none;
}

.apex-header-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #343231;
  border-radius: 5px;
  background: #171718;
  box-shadow: none;
  color: #f3f0eb;
  font-size: 16px;
}

.apex-header-search input[type="search"]::placeholder {
  color: #8d8781;
  opacity: 1;
}

body.single-product.woocommerce div.product .summary h1.product_title {
  max-width: 100%;
  font-size: 46px !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  overflow-wrap: break-word;
  text-wrap: balance;
}

body.single-product.woocommerce div.product .summary p.price {
  font-size: 46px !important;
}

body.single-product .summary .apex-vat-label {
  display: none !important;
}

.woocommerce ul.products li.product .apex-loop-stock {
  display: block;
  margin: 8px 0 0;
  color: #a69f98;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.woocommerce ul.products li.product.outofstock {
  order: 10;
}

.woocommerce ul.products li.product.outofstock .button {
  border-color: #4a4643 !important;
  background: #242221 !important;
  color: #d1cbc4 !important;
}

.apex-compatibility-content {
  max-width: 760px;
}

.apex-compatibility-content p {
  max-width: 70ch;
}

.apex-compatibility-content a {
  color: #d44743;
  font-weight: 700;
}

@media (max-width: 1180px) {
  header.site-header .apex-header-tools--desktop .apex-header-tool--saved,
  header.site-header .apex-header-tools--desktop .apex-header-tool--compare {
    display: none !important;
  }
}

@media (max-width: 921px) {
  .apex-header-tools {
    order: -1;
    gap: 5px;
    margin: 0 8px 0 0;
  }

  header.site-header .apex-header-tools--mobile .apex-header-tool--saved,
  header.site-header .apex-header-tools--mobile .apex-header-tool--compare {
    display: none !important;
  }

  header.site-header .apex-header-tool {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
  }

  .apex-header-search {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    right: 12px;
    left: 12px;
    width: auto;
    margin-top: 78px;
  }

  body.single-product.woocommerce div.product .summary h1.product_title {
    font-size: 38px !important;
  }

  body.single-product.woocommerce div.product .summary p.price {
    font-size: 40px !important;
  }
}

@media (max-width: 600px) {
  body.single-product.woocommerce div.product .summary h1.product_title {
    font-size: 30px !important;
    line-height: 1.1 !important;
  }

  body.single-product.woocommerce div.product .summary p.price {
    font-size: 38px !important;
  }
}

@media (max-width: 380px) {
  body.single-product.woocommerce div.product .summary p.price {
    font-size: 34px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apex-header-tool,
  .apex-header-search button {
    transition: none;
  }
}
