/* AIBEI catalog toolbar polish — WooCommerce shop and taxonomy archives. */

body.woocommerce.archive .woocommerce-products-header > .ppcp-messages {
  display: none !important;
}

body.woocommerce.archive .woocommerce-products-header {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce.archive .woocommerce-products-header:has(> .ppcp-messages:only-child) {
  display: none !important;
}

body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  margin: 0 0 24px !important;
  padding: 8px 9px 8px 17px;
  border: 1px solid #e6e1e3;
  border-radius: 12px;
  background: #f7f5f5;
  box-shadow: 0 8px 22px rgba(27, 22, 25, .045);
}

body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) .woocommerce-notices-wrapper:empty {
  display: none !important;
}

body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) .woocommerce-result-count {
  order: 1;
  margin: 0 !important;
  color: #5a5356;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .015em;
}

body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) .woocommerce-ordering {
  position: relative;
  order: 2;
  display: block !important;
  flex: 0 0 auto;
  width: auto !important;
  margin: 0 0 0 auto !important;
}

body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) .woocommerce-ordering::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #ff2d67;
  border-bottom: 1.5px solid #ff2d67;
  content: "";
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
}

body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) select.orderby {
  min-width: 218px;
  height: 40px;
  margin: 0 !important;
  padding: 0 40px 0 15px !important;
  border: 1px solid #2d292b !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: #211f20 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 650;
  line-height: 40px !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) select.orderby:hover {
  border-color: #ff2d67 !important;
  background: #292526 !important;
}

body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) select.orderby:focus-visible {
  border-color: #ff2d67 !important;
  outline: 3px solid rgba(255, 45, 103, .18);
  outline-offset: 2px;
}

body.woocommerce.archive .shoptimizer-sorting.sorting-end {
  display: none !important;
}

@media (max-width: 767px) {
  body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) {
    gap: 10px;
    min-height: 54px;
    margin-bottom: 18px !important;
    padding: 6px 7px 6px 13px;
    border-radius: 10px;
  }

  body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) .woocommerce-result-count {
    font-size: 12px;
  }

  body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) select.orderby {
    min-width: 164px;
    height: 38px;
    padding-right: 34px !important;
    font-size: 12px !important;
    line-height: 38px !important;
  }

  body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) .woocommerce-ordering::after {
    right: 13px;
  }
}

@media (max-width: 420px) {
  body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) .woocommerce-result-count {
    padding: 0 2px;
  }

  body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) .woocommerce-ordering,
  body.woocommerce.archive .shoptimizer-sorting:not(.sorting-end) select.orderby {
    width: 100% !important;
  }
}
