/* search-typesense.css */
.body-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100vw;
}

.typesense-woo-result {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
}
.typesense-woo-result .price {
    color: green;
    font-weight: bold;
}
.typesense-woo-result .sku {
    color: #666;
    font-size: 0.8em;
}


.aa-Panel {
    z-index: 9999;
}

.aa-InputWrapperPrefix {
    order: 4;
}

.aa-Label svg, .aa-LoadingIndicator svg {
    color: #50485b;
}

.aa-Form {
    border: 0 !important;
}

.aa-Form:focus-within {
    border: 0;
    box-shadow: none;
}

input[type="search"].aa-Input {
    max-height: 42px;
}

button.cmtsfwc-NextButton.button {
    padding: .3rem .5rem;
    font-size: .8rem;
    color: #fff;
    background-color: var(--color-3-hard);
    border-radius: 5px;
    transition: background-color .2s 
    ease-out;
    outline: none;
}

.btn-bg-off button.cmtsfwc-NextButton.button:not(:hover){
background-color: var(--color-3-hard);
}

.cmtsfwc-InstantSearchPopup .cmtsfwc-grid-wrapper ul.products,
.cmtsfwc-grid-wrapper ul.products {
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px 18px;
  margin:0 !important;
  padding:0 !important;
  list-style:none;
}
.cmtsfwc-InstantSearchPopup .cmtsfwc-grid-wrapper ul.products li.product,
.cmtsfwc-grid-wrapper ul.products li.product {
  float:none !important;
  width:auto !important;
  margin:0 !important;
  display:flex;
  flex-direction:column;
  border:1px solid #e4e6eb;
  border-radius:8px;
  background:#fff;
  padding:10px 12px 14px;
}

.cmtsfwc-InstantSearch.ready {
    opacity: 1;
}

.cmtsfwc-InstantSearch .ais-Stats {
    opacity: 1;
    transition: opacity .25s ease;
}

.content .ais-Panel ol, .content .ais-Panel ul
 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cmtsfwc-InstantSearch .ais-RefinementList-label {
    flex-wrap: nowrap;
    margin-bottom: .7;
}

/* Убрать space-around и дать нормальную колонку */
.cmtsfwc-grid-wrapper ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* было space-around */
}

/* Кнопка (или линк Details) в самом низу */
.cmtsfwc-grid-wrapper ul.products li.product > a.button {
    margin-top: auto;
}

/* Для кнопок add_to_cart, если класс отличается */
.cmtsfwc-grid-wrapper ul.products li.product > a.add_to_cart_button {
    margin-top: auto;
}

.cmtsfwc-InstantSearch .ais-HitsPerPage-select {
    min-width: 140px;
}
.cmtsfwc-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul.products li.product a .cmtsfwc-image-wrapper img {
  width: auto;
  height: 100%;
  object-fit: contain;
  /* object-position: center top; */
  display: block;
}

.cmtsfwc-Pagination
{
    margin-top: 1em;
}

.masla-search__form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
}

.masla-search__label {
    position: absolute !important;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.masla-search__inner {
    display: flex;
    flex: 1;
    min-height: 42px;
}

input[type=search]:not(.elementor-field).masla-search__input {
    flex: 1;
    outline: none;
    margin-bottom: 0;
}

.masla-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background:var(--color-3);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    width: 42px;
    height: 42px;
    transition: background 0.2s;
}

.masla-search__btn:hover {
    background: var(--color-3-lite);
}

.masla-search__btn-icon {
    fill: currentColor;
    color: white;
}

.masla-search__btn-icon svg {
    display: block;
}

@media only screen and (min-width: 768px) {
    .cmtsfwc-InstantSearchPopup--results {
        max-width: 95%;
        border-radius: 4px;
    }
}