/* Bañoweb · Listados, filtros y búsqueda en móvil. */
@media (max-width: 767.98px) {
  body#module-ambjolisearch-jolisearch #content-wrapper {
    width: calc(100% + 18px);
    margin-right: -9px;
    margin-left: -9px;
  }

  #js-product-list .products.products-grid {
    align-items: stretch;
    row-gap: 12px;
  }

  #js-product-list .products.products-grid > .js-product-miniature-wrapper {
    display: flex;
  }

  #js-product-list .product-miniature-grid {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
  }

  #js-product-list .product-miniature-grid .thumbnail-container,
  #js-product-list .product-miniature-grid .product-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  #js-product-list .product-miniature-grid .product-thumbnail {
    display: block;
    overflow: hidden;
  }

  #js-product-list .product-miniature-grid .product-thumbnail picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  #js-product-list .product-miniature-grid .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #js-product-list .product-miniature-grid .product-description {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }

  #js-product-list .product-miniature-grid .product-title {
    display: -webkit-box;
    min-height: 49px;
    max-height: 49px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  #js-product-list .product-miniature-grid .product-title > a {
    display: block;
  }

  #js-product-list .product-miniature-grid .product-price-and-shipping {
    display: flex;
    min-height: 44px;
    margin-top: auto;
    align-items: center;
    align-content: center;
    column-gap: 6px;
    row-gap: 0;
    flex-wrap: wrap;
  }

  #js-product-list .product-miniature-grid .product-price-and-shipping > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    order: 1;
  }

  #js-product-list .product-miniature-grid .product-price-and-shipping .product-price {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
  }

  #js-product-list .product-miniature-grid .product-price-and-shipping .regular-price {
    margin: 0;
    order: 2;
    font-size: 12px;
    line-height: 1.2;
  }

  #js-product-list .ed-search-delivery-slot,
  #js-product-list .ed-home-delivery-slot,
  #js-product-list .estimateddelivery-list {
    width: 100%;
  }

  #js-product-list .estimateddelivery.estimateddelivery-list.ed-v4 {
    margin: 6px 0 4px;
    border-radius: 8px;
  }

  body.bw-mobile-filters-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.bw-mobile-filters-open #header,
  body.bw-mobile-filters-open #mobile-header {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.bw-mobile-filters-open #search_filters_wrapper {
    position: fixed !important;
    z-index: 2147483000;
    inset: 0;
    display: flex !important;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    background: #f5f9fa !important;
    color: #26383d;
    isolation: isolate;
    visibility: visible !important;
  }

  body.bw-mobile-filters-open #facets_search_wrapper > .bwf-head-inject {
    display: none !important;
  }

  .bw-mobile-filter-header {
    z-index: 3;
    display: flex;
    min-height: 68px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    order: 1;
    padding: max(10px, env(safe-area-inset-top)) 14px 10px;
    border-bottom: 1px solid #d8e5e8;
    background: #fff;
    box-shadow: 0 6px 18px rgba(25, 68, 78, 0.08);
  }

  .bw-mobile-filter-title {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    color: #26383d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
  }

  .bw-mobile-filter-count {
    display: inline-grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: #e3f5f7;
    color: #007f96;
    font-size: 13px;
    font-weight: 700;
  }

  .bw-mobile-filter-count[hidden] {
    display: none;
  }

  .bw-mobile-filter-close {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #d6e3e6;
    border-radius: 50%;
    background: #fff;
    color: #26383d;
    font-size: 22px;
    line-height: 1;
  }

  body.bw-mobile-filters-open #search_filters_wrapper > .block-facets {
    min-height: 0;
    flex: 1 1 auto;
    order: 2;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 14px 24px;
    background: #f5f9fa !important;
    -webkit-overflow-scrolling: touch;
  }

  body.bw-mobile-filters-open #search_filters {
    padding: 0;
  }

  body.bw-mobile-filters-open #search_filters .facet {
    overflow: hidden !important;
    margin: 0 0 10px !important;
    border: 1px solid #d8e5e8 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(25, 68, 78, 0.05) !important;
    padding: 0 !important;
  }

  body.bw-mobile-filters-open #search_filters .facet-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
  }

  .bw-facet-toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    padding: 10px 13px 10px 15px;
    background: #fff;
    color: #26383d;
    text-align: left;
  }

  body.bw-mobile-filters-open .facet .facet-title::after,
  body.bw-mobile-filters-open .bw-facet-toggle span::before {
    display: none !important;
    content: none !important;
  }

  .bw-facet-toggle::before {
    width: 4px;
    height: 16px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: #009db7;
    content: "";
  }

  .bw-facet-toggle__label {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
  }

  body.bw-mobile-filters-open #search_filters_wrapper .facet .facet-title .bw-facet-toggle__selected {
    display: inline-flex !important;
    min-width: 24px;
    height: 24px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid #bfe6eb;
    border-radius: 999px;
    background: #e3f5f7;
    color: #00758a !important;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  body.bw-mobile-filters-open #search_filters_wrapper .facet .facet-title .bw-facet-toggle__selected[hidden] {
    display: none !important;
  }

  .bw-facet-toggle__icon {
    flex: 0 0 auto;
    color: #007f96;
    font-size: 17px;
    transition: transform 160ms ease;
  }

  .facet.bw-facet-open .bw-facet-toggle__icon {
    transform: rotate(180deg);
  }

  body.bw-mobile-filters-open #search_filters .facet > ul {
    margin: 0 !important;
    padding: 0 12px 10px !important;
    border-top: 1px solid #e5edef !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.bw-mobile-filters-open #search_filters .facet > ul[hidden] {
    display: none !important;
  }

  .bw-facet-search {
    position: relative;
    margin: 0;
    padding: 10px 12px;
    border-top: 1px solid #e5edef;
    background: #fbfdfd;
  }

  .bw-facet-search__icon {
    position: absolute;
    top: 50%;
    left: 26px;
    color: #718288;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .bw-facet-search__input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b9cbd0;
    border-radius: 10px;
    outline: 0;
    padding: 9px 12px 9px 36px;
    background: #fff;
    color: #26383d;
    font-size: 16px;
    line-height: 1.3;
  }

  .bw-facet-search__input:focus {
    border-color: #009db7;
    box-shadow: 0 0 0 3px rgba(0, 157, 183, 0.18);
  }

  .bw-facet-empty {
    margin: 0;
    padding: 14px 10px;
    color: #66777c;
    font-size: 14px;
    text-align: center;
  }

  body.bw-mobile-filters-open #search_filter_controls {
    z-index: 3;
    display: flex !important;
    min-height: 72px;
    flex: 0 0 auto;
    gap: 10px;
    order: 3;
    margin: 0;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #d8e5e8;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(25, 68, 78, 0.09);
  }

  #search_filter_controls .js-search-filters-clear-all,
  #search_filter_controls .ok {
    display: inline-flex;
    min-height: 44px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }

  #search_filter_controls .js-search-filters-clear-all {
    background: #eef7f8;
    color: #007f96;
  }

  #search_filter_controls .ok {
    background: #009db7;
    color: #fff;
  }

  #search_filter_controls .ok:active,
  #search_filter_controls .ok:focus-visible {
    background: #007f96;
  }

  #search_filters .facet > ul > li {
    min-height: 44px;
  }

  #search_filters .facet-label {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    margin: 0;
  }

  #search_filters .facet-label > .custom-checkbox,
  #search_filters .facet-label > .custom-radio {
    flex: 0 0 24px;
    margin-right: 12px;
  }

  body.bw-mobile-filters-open #search_filters .facet-label > .custom-radio {
    position: relative;
    display: inline-grid !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    place-items: center;
    box-sizing: border-box;
    margin-right: 14px;
    overflow: visible;
    border: 2px solid #009db7 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.bw-mobile-filters-open #search_filters .facet-label > .custom-radio input[type="radio"] {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0;
    cursor: pointer;
  }

  body.bw-mobile-filters-open #search_filters .facet-label > .custom-radio input[type="radio"] + .ps-shown-by-js {
    position: static !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.bw-mobile-filters-open #search_filters .facet-label > .custom-radio input[type="radio"]:checked + .ps-shown-by-js {
    background: #007f96 !important;
  }

  body.bw-mobile-filters-open #search_filters .facet-label:has(.custom-radio input[type="radio"]:checked) {
    border-radius: 10px;
    background: #eef7f8 !important;
  }

  body.bw-mobile-filters-open #search_filters .facet-label > .custom-radio:has(input[type="radio"]:focus-visible) {
    outline: 3px solid rgba(0, 157, 183, 0.35);
    outline-offset: 3px;
  }

  #search_filters .facet-label > .search-link {
    display: flex;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 auto;
    align-items: center;
  }

  body.bw-mobile-filters-open .float.whatsapp_1,
  body.bw-mobile-filters-open .tb.tb-wa,
  body:has(#left-column.-only-facet-search) .float.whatsapp_1,
  body:has(#left-column.-only-facet-search) .tb.tb-wa,
  body:has(#right-column.-only-facet-search) .float.whatsapp_1,
  body:has(#right-column.-only-facet-search) .tb.tb-wa {
    display: none !important;
  }

  .bw-mobile-filter-close:focus-visible,
  .bw-facet-toggle:focus-visible,
  #search_filter_controls .btn:focus-visible {
    outline: 3px solid rgba(0, 157, 183, 0.35);
    outline-offset: 2px;
  }

  body.jolisearch-modal-on #search-widget-mobile {
    display: none !important;
  }

  #jolisearch_mobile_modal.jolisearch-modal--mobile {
    padding: 132px 15px 3rem;
  }

  #jolisearch_mobile_header.jolisearch-modal__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: 44px 52px;
    gap: 10px 12px;
    align-items: center;
    padding: 12px 14px 13px;
    border-bottom: 1px solid #d8e5e8;
    background: #fff;
    box-shadow: 0 6px 20px rgba(25, 68, 78, 0.08);
  }

  #jolisearch_mobile_header > .h1 {
    align-self: center;
    margin: 0;
    color: #26383d;
    font-family: "Signika", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
  }

  #jolisearch_mobile_header .jolisearch-modal__close {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    place-items: center;
    align-self: center;
    justify-self: end;
    margin: 0;
    padding: 0;
    border: 1px solid #d6e3e6;
    border-radius: 50%;
    background: #fff;
    color: #26383d;
    font-family: "Signika", sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
  }

  #jolisearch_mobile_form.jolisearch-modal__searchbox {
    width: 100%;
    height: 52px;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #jolisearch_mobile_form .jolisearch-widget__form {
    position: relative;
    width: 100%;
    height: 52px;
    overflow: hidden;
    border: 1px solid #b9cbd0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(25, 68, 78, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }

  #jolisearch_mobile_form .jolisearch-widget__form:focus-within {
    border-color: #009db7;
    box-shadow: 0 0 0 3px rgba(0, 157, 183, 0.18);
  }

  #jolisearch_mobile_form .jolisearch-widget__input {
    width: 100%;
    min-width: 0;
    height: 50px;
    margin: 0;
    padding: 0 60px 0 16px;
    border: 0 !important;
    border-radius: 14px;
    outline: 0;
    background: transparent;
    box-shadow: none !important;
    color: #26383d;
    font-family: "Signika", sans-serif;
    font-size: 16px;
    line-height: 1.25;
  }

  #jolisearch_mobile_form .jolisearch-widget__input::placeholder {
    color: #66777c;
    opacity: 1;
  }

  #jolisearch_mobile_form .jolisearch-widget__submit,
  #jolisearch_mobile_modal #jolisearch_mobile_form.search-widget form button[type="submit"] {
    position: absolute;
    top: 50%;
    right: 3px;
    bottom: auto;
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: #009db7;
    color: #fff;
    transform: translateY(-50%);
  }

  #jolisearch_mobile_form .jolisearch-widget__submit:active,
  #jolisearch_mobile_form .jolisearch-widget__submit:focus-visible {
    background: #007f96;
  }

  #jolisearch_mobile_form .jolisearch-widget__icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  #jolisearch_mobile_header .jolisearch-modal__close:focus-visible,
  #jolisearch_mobile_form .jolisearch-widget__submit:focus-visible {
    outline: 3px solid rgba(0, 157, 183, 0.35);
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #search_filter_controls .btn,
  .bw-facet-toggle__icon,
  #jolisearch_mobile_form .jolisearch-widget__form {
    transition: none !important;
  }
}
