/* Cosmic skin for OCFilter — styles only, keep OCFilter HTML intact.
   Desktop (>=768): accordion Cosmic look
   Mobile (<768): native OCFilter drawer (like prod), Cosmic colors
*/

/* Shared tokens */
.cs-filters--oc {
  font-family: Gilroy, sans-serif;
  color: #1f1f1f;
}

.cs-filters--oc .ocf-popover,
.ocf-popover[role="ocf-popover"],
body > .ocf-popover {
  z-index: 1200 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cs-filters--oc .ocf-popover-content,
.ocf-popover .ocf-popover-content {
  padding: 0;
  background: transparent;
}

.cs-filters--oc .ocf-popover > .ocf-arrow,
.ocf-popover > .ocf-arrow {
  background-color: var(--cs-color-pink, #e0146d) !important;
}

.ocf-popover .ocf-search-btn-popover,
.cs-filters--oc .ocf-search-btn-popover {
  position: relative;
  z-index: 1;
  min-width: 190px;
  height: 48px;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--cs-color-pink, #e0146d) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(31, 31, 31, 0.16) !important;
}

.ocf-popover .ocf-search-btn-popover:hover,
.cs-filters--oc .ocf-theme-light .ocf-search-btn-popover:hover {
  background: #c5125f !important;
  color: #fff !important;
}

/* Empty-state bubble only: disabled and no apply onclick (not loading / "Показать N"). */
.ocf-popover:has(.ocf-search-btn-popover.ocf-disabled:not([onclick])),
body > .ocf-popover:has(.ocf-search-btn-popover.ocf-disabled:not([onclick])) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* ========== SELECTED PARAMS (Вы выбрали) — Cosmic tags ========== */
.cs-filters--oc .ocf-selected-card,
.cs-filters--oc .ocf-theme-light .ocf-selected-card,
.ocf-container .ocf-selected-card {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7e7e7 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cs-filters--oc .ocf-selected-header,
.cs-filters--oc .ocf-theme-light .ocf-selected-header {
  margin: 0 !important;
  font-family: Gilroy, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.12;
  color: #1f1f1f;
}

.cs-filters--oc .ocf-selected-card > .ocf-selected-filter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 4px 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--cs-color-gray-100, #f6f6f6) !important;
  box-shadow: none !important;
  font-family: Gilroy, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.cs-filters--oc .ocf-selected-filter-name,
.cs-filters--oc .ocf-theme-light .ocf-selected-filter-name {
  margin: 0 !important;
  color: #7c7c7d !important;
  font-size: 14px;
  font-weight: 400;
}

.cs-filters--oc .ocf-selected-discard,
.cs-filters--oc .ocf-theme-light .ocf-selected-discard,
.cs-filters--oc .ocf-theme-light .ocf-selected-discard:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.cs-filters--oc .ocf-selected-value-name,
.cs-filters--oc .ocf-theme-light .ocf-selected-value-name {
  color: #1f1f1f !important;
  font-size: 14px;
  font-weight: 400;
}

.cs-filters--oc .ocf-selected-discard .ocf-icon {
  width: 12px !important;
  height: 12px !important;
  flex: 0 0 12px !important;
  margin: 0 0 0 auto !important;
  border-radius: 0 !important;
  opacity: 0.55;
  background-size: contain !important;
}

.cs-filters--oc .ocf-selected-card > .ocf-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 0;
  padding: 0;
}

.cs-filters--oc .ocf-selected-card .ocf-btn-link {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: Gilroy, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.12;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cs-filters--oc .ocf-selected-card .ocf-btn-link.ocf-text-danger {
  color: var(--cs-color-green, #5bb486) !important;
}

.cs-filters--oc .ocf-selected-card [data-ocf="specify"] {
  color: var(--cs-color-pink, #e0146d) !important;
}

/* ========== DESKTOP ========== */
@media (min-width: 768px) {
  .cs-filters.cs-filters--oc {
    position: static;
    top: auto;
    z-index: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .cs-listing > .cs-listing__content {
    position: relative;
    /* Below filters so the floating "Показать N" popover can overflow on top */
    z-index: 1;
  }

  .cs-filters--oc .ocf-container,
  .cs-filters--oc .ocf-content,
  .cs-filters--oc .ocf-body,
  .cs-filters--oc .ocf-filter-list,
  .cs-filters--oc .ocf-filter,
  .cs-filters--oc .ocf-filter-body,
  .cs-filters--oc .ocf-value-list {
    overflow: visible !important;
  }

  .cs-filters--oc #column-left,
  .cs-filters--oc .col-sm-3 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
  }

  .cs-filters--oc .ocf-container,
  .cs-filters--oc .ocf-content,
  .cs-filters--oc .ocf-body,
  .cs-filters--oc .ocf-filter-list {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .cs-filters--oc .ocf-header {
    display: none;
  }

  .cs-filters--oc .ocf-filter {
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
    box-shadow: none;
  }

  .cs-filters--oc .ocf-filter + .ocf-filter {
    margin-top: 16px;
  }

  .cs-filters--oc .ocf-filter-body {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .cs-filters--oc .ocf-filter-header,
  .cs-filters--oc .ocf-theme-light .ocf-dropdown .ocf-filter-header,
  .cs-filters--oc .ocf-theme-light .ocf-dropdown .ocf-filter-header:hover,
  .cs-filters--oc .ocf-theme-light .ocf-dropdown.ocf-open .ocf-filter-header,
  .cs-filters--oc .ocf-theme-light .ocf-active.ocf-dropdown .ocf-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.12;
    text-align: left;
    color: #1f1f1f;
    z-index: 1 !important;
  }

  /* Accordion instead of popover-dropdown */
  .cs-filters--oc .ocf-dropdown .ocf-filter-body > .ocf-value-list,
  .cs-filters--oc .ocf-theme-light .ocf-dropdown .ocf-filter-body > .ocf-value-list {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .cs-filters--oc .ocf-dropdown .ocf-active-label + .ocf-filter-name,
  .cs-filters--oc .ocf-dropdown .ocf-filter-name {
    display: block !important;
  }

  .cs-filters--oc .ocf-filter-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.12;
    color: #1f1f1f;
    text-transform: none;
    letter-spacing: normal;
  }

  .cs-filters--oc .ocf-active-label {
    display: none;
  }

  .cs-filters--oc .ocf-filter-header-append {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .cs-filters--oc .ocf-filter-discard {
    opacity: 0.45;
  }

  .cs-filters--oc .ocf-filter-discard:hover {
    opacity: 1;
  }

  .cs-filters--oc .ocf-desktop.ocf-angle {
    width: 24px;
    height: 24px;
    opacity: 0.85;
    transition: transform 0.2s ease;
  }

  .cs-filters--oc .ocf-value-list {
    margin: 0;
    padding: 16px 0 0;
    border: 0;
    background: transparent;
  }

  .cs-filters--oc .ocf-scroll-y {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cs-filters--oc .ocf-value-list-body {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cs-filters--oc .ocf-value.ocf-checkbox,
  .cs-filters--oc .ocf-value.ocf-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    text-align: left;
    font: inherit;
    font-size: 14px;
    color: #1f1f1f;
    cursor: pointer;
  }

  .cs-filters--oc .ocf-value.ocf-checkbox:hover,
  .cs-filters--oc .ocf-value.ocf-radio:hover {
    background: none;
    color: #1f1f1f;
  }

  .cs-filters--oc .ocf-value-input {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
  }

  .cs-filters--oc .ocf-value-input::before,
  .cs-filters--oc .ocf-value-input::after {
    box-shadow: none !important;
  }

  .cs-filters--oc .ocf-value-input-checkbox::before {
    width: 20px !important;
    height: 20px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    background: #fff !important;
    top: 0 !important;
    left: 0 !important;
  }

  .cs-filters--oc .ocf-value:active .ocf-value-input-checkbox::before,
  .cs-filters--oc .ocf-value:focus .ocf-value-input-checkbox::before {
    box-shadow: none !important;
    border-color: #e5e5e5 !important;
  }

  .cs-filters--oc .ocf-selected .ocf-value-input-checkbox::before {
    border-color: var(--cs-color-pink, #e0146d) !important;
    background-color: var(--cs-color-pink, #e0146d) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.5 6.2 4.8 8.5 9.5 3.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  .cs-filters--oc .ocf-selected .ocf-value-input-checkbox::after {
    display: none !important;
    content: none !important;
  }

  .cs-filters--oc .ocf-value-name {
    flex: 1 1 auto;
    min-width: 0;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
  }

  .cs-filters--oc .ocf-value-append {
    margin-left: auto;
    flex-shrink: 0;
  }

  .cs-filters--oc .ocf-value-count {
    color: #999;
    font-size: 14px;
    font-weight: 400;
  }

  .cs-filters--oc .ocf-value-count::before {
    content: "(";
  }

  .cs-filters--oc .ocf-value-count::after {
    content: ")";
  }

  .cs-filters--oc .ocf-selected .ocf-value-count {
    color: #999;
  }

  /* "Показать еще N" inside a filter — green text link (prod + Cosmic mockup) */
  .cs-filters--oc .ocf-btn-show-values,
  .cs-filters--oc .ocf-collapse-value > .ocf-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #5bb486;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }

  .cs-filters--oc .ocf-btn-show-values:hover,
  .cs-filters--oc .ocf-collapse-value > .ocf-btn:hover {
    color: #46986f;
    background: none;
  }

  /* "Показать еще N фильтров" — outlined pink pill like prod */
  .cs-filters--oc .ocf-btn-show-filters,
  .cs-filters--oc .ocf-theme-light .ocf-btn-show-filters {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 8px 0 0;
    padding: 11px 20px !important;
    border: 1px solid var(--cs-color-pink, #e0146d) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--cs-color-pink, #e0146d) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.12;
    text-align: center;
    cursor: pointer;
  }

  .cs-filters--oc .ocf-btn-show-filters:hover {
    background: var(--cs-color-pink-soft, #ffe9f2) !important;
    color: var(--cs-color-pink, #e0146d) !important;
  }

  .cs-filters--oc .ocf-slider-input-group,
  .cs-filters--oc .ocf-input-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4px 12px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .cs-filters--oc .ocf-slider-input-group .ocf-form-control,
  .cs-filters--oc .ocf-input-group .ocf-form-control {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    color: #999;
    font: inherit;
    font-size: 16px;
    box-shadow: none;
  }

  .cs-filters--oc .ocf-slider-input-group .ocf-form-control:focus {
    border-color: var(--cs-color-pink, #e0146d);
    color: #1f1f1f;
    outline: none;
  }

  .cs-filters--oc .ocf-input-group-addon {
    border: 0;
    background: none;
    color: #999;
    font-size: 14px;
    padding: 0;
    box-shadow: none;
  }

  .cs-filters--oc .ocf-slider-input-group > .ocf-input-group-addon:last-child {
    display: none;
  }

  .cs-filters--oc .ocf-value-search,
  .cs-filters--oc input.ocf-search,
  .cs-filters--oc .ocf-filter-search input {
    width: 100%;
    height: 48px;
    margin: 0 0 8px;
    padding: 0 18px 0 44px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m17 17-3.5-3.5m1.5-4a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z'/%3E%3C/svg%3E") no-repeat 16px center;
    font: inherit;
    font-size: 16px;
    color: #999;
    box-shadow: none;
  }

  .cs-filters--oc .ocf-value-slider {
    margin-top: 24px;
    padding: 0 8px;
  }

  .cs-filters--oc .ocf-value-scale,
  .cs-filters--oc .ocf-noUi-target {
    height: 20px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .cs-filters--oc .ocf-noUi-base:before {
    height: 4px !important;
    top: 50% !important;
    margin-top: -2px !important;
    border-radius: 48px !important;
    background-color: #e0e0e0 !important;
  }

  .cs-filters--oc .ocf-noUi-connect:before {
    height: 4px !important;
    top: 50% !important;
    margin-top: -2px !important;
    border-radius: 20px !important;
    background-color: var(--cs-color-pink, #e0146d) !important;
  }

  .cs-filters--oc .ocf-noUi-handle {
    width: 20px !important;
    height: 20px !important;
    right: -10px !important;
    top: 0 !important;
    border: 1px solid var(--cs-color-pink, #e0146d) !important;
    border-radius: 48px !important;
    background: var(--cs-color-pink-soft, #ffe9f2) !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .cs-filters--oc .ocf-noUi-active {
    box-shadow: none !important;
  }

  .cs-filters--oc .ocf-noUi-connects:before,
  .cs-filters--oc .ocf-noUi-connects:after {
    display: none !important;
  }

  .cs-filters--oc .ocf-footer {
    position: static !important;
    z-index: auto !important;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid #e7e7e7;
    background: transparent !important;
    box-shadow: none !important;
    /* kill OCFilter iOS absolute/sticky expand so footer cannot cover the grid */
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
  }

  /*
   * OCFilter light theme paints .ocf-footer::after as position:absolute; inset:0; z-index:-1.
   * With a stacking context on the filter column that sits above .cs-listing__content,
   * that pseudo still intercepts clicks across the product grid. Disable on desktop.
   */
  .cs-filters--oc .ocf-footer::before,
  .cs-filters--oc .ocf-footer::after,
  .cs-filters--oc .ocf-theme-light .ocf-footer::after,
  .ocf-theme-light .ocf-footer::after {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
  }

  /*
   * Filter column must sit ABOVE listing content so the floating
   * "Показать N" popover (child of ocf-container) can receive clicks.
   * Safe because .ocf-footer::after is disabled above — that pseudo was
   * the full-width invisible overlay that previously blocked the grid.
   */
  .cs-filters--oc #column-left,
  .cs-filters.cs-filters--oc {
    position: relative !important;
    z-index: 3 !important;
    overflow: visible !important;
  }

  .cs-filters--oc .ocf-container,
  .cs-filters--oc .ocf-content,
  .cs-filters--oc .ocf-body,
  .cs-filters--oc .ocf-filter-list,
  .cs-filters--oc .ocf-filter,
  .cs-filters--oc .ocf-filter-body {
    overflow: visible !important;
  }

  .cs-filters--oc .ocf-popover,
  .ocf-popover[role="ocf-popover"],
  body > .ocf-popover {
    z-index: 1300 !important;
  }

  .cs-filters--oc .ocf-footer .ocf-between {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  /* "Сбросить" — soft pink pill like prod secondary button */
  .cs-filters--oc .ocf-footer .ocf-btn-link,
  .cs-filters--oc .ocf-footer [data-ocf-discard="*"],
  .cs-filters--oc .ocf-theme-light .ocf-footer .ocf-btn-link {
    order: 2;
    width: 100%;
    margin: 0;
    padding: 11px 20px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--cs-color-pink-soft, #ffe9f2) !important;
    box-shadow: none !important;
    color: var(--cs-color-pink, #e0146d) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.12;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
  }

  .cs-filters--oc .ocf-footer .ocf-btn-link.ocf-disabled,
  .cs-filters--oc .ocf-footer [data-ocf-discard="*"].ocf-disabled,
  .cs-filters--oc .ocf-footer .ocf-btn-link[disabled],
  .cs-filters--oc .ocf-footer [data-ocf-discard="*"][disabled] {
    opacity: 0.55;
    cursor: default;
    color: #fff !important;
  }

  .cs-filters--oc .ocf-footer .ocf-search-btn-static,
  .cs-filters--oc .ocf-theme-light .ocf-search-btn-static,
  .cs-filters--oc .ocf-theme-light .ocf-search-btn-static.ocf-disabled {
    order: 1;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--cs-color-pink, #e0146d) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    box-shadow: none !important;
    opacity: 1;
  }

  .cs-filters--oc .ocf-footer .ocf-search-btn-static.ocf-disabled {
    background: #f3b6d0 !important;
    color: #fff !important;
  }

  .cs-filters--oc .ocf-btn-mobile-fixed,
  .cs-filters--oc .ocf-btn-mobile-static {
    display: none !important;
  }

  .cs-filters--oc .ocf-mobile {
    display: none !important;
  }
}

/* ========== MOBILE: native OCFilter drawer ========== */
@media (max-width: 767px) {
  /* Don't hide OCFilter inside Cosmic wrapper — drawer is position:fixed */
  .cs-filters.cs-filters--oc,
  .cs-filters.cs-filters--oc.is-open {
    display: contents !important;
    position: static !important;
    z-index: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .cs-filters--oc #column-left,
  .cs-filters--oc .col-sm-3,
  .cs-filters--oc #column-left.hidden-xs {
    /* OCFilter mobile.css parks column off-screen; don't force static */
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Cosmic listing bar opens OCFilter — hide OCFilter's own mobile buttons
     (static btn is often relocated into .cs-listing__content by OCFilter JS) */
  .ocf-btn-mobile-fixed,
  .ocf-btn-mobile-static,
  .cs-listing__content > .ocf-btn-mobile-static,
  .cs-listing .ocf-btn-mobile-static {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Selected tags also visible in mobile drawer (Cosmic listing mockup) */
  .ocf-container.ocf-mobile-1 .ocf-selected-card.ocf-desktop {
    display: flex !important;
  }

  /* Cosmic-colored drawer */
  .ocf-container.ocf-mobile-1 .ocf-content {
    font-family: Gilroy, sans-serif;
  }

  .ocf-container.ocf-mobile-1 .ocf-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 16px 20px !important;
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
  }

  .ocf-container.ocf-mobile-1 .ocf-header .ocf-brand {
    display: none;
  }

  .ocf-container.ocf-mobile-1 .ocf-close-mobile {
    margin-left: auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f6f6f6;
    color: #1f1f1f;
  }

  .ocf-container.ocf-mobile-1 .ocf-filter-name {
    text-transform: none;
    font-weight: 600;
    color: #1f1f1f;
  }

  .ocf-container.ocf-mobile-1 .ocf-value-input-checkbox::before {
    border-radius: 6px !important;
    border-color: #e5e5e5 !important;
  }

  .ocf-container.ocf-mobile-1 .ocf-selected .ocf-value-input-checkbox::before {
    border-color: var(--cs-color-pink, #e0146d) !important;
    background-color: var(--cs-color-pink, #e0146d) !important;
  }

  .ocf-container.ocf-mobile-1 .ocf-noUi-connect:before,
  .ocf-container.ocf-mobile-1 .ocf-noUi-handle {
    background-color: var(--cs-color-pink, #e0146d) !important;
  }

  .ocf-container.ocf-mobile-1 .ocf-noUi-handle {
    border: 1px solid var(--cs-color-pink, #e0146d) !important;
    background: var(--cs-color-pink-soft, #ffe9f2) !important;
  }

  .ocf-container.ocf-mobile-1 .ocf-footer {
    /* Reset OCFilter iOS sticky hack (pad 510 / margin -500) so footer stays in drawer */
    top: auto !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    background: #fff !important;
    box-shadow: 0 -8px 24px rgba(31, 31, 31, 0.06) !important;
  }

  .ocf-container.ocf-mobile-1 .ocf-search-btn-static,
  .ocf-container.ocf-mobile-1 .ocf-theme-light .ocf-search-btn-static,
  .ocf-container.ocf-mobile-1 .ocf-theme-light .ocf-search-btn-static.ocf-disabled {
    height: 48px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--cs-color-pink, #e0146d) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
  }

  .ocf-container.ocf-mobile-1 .ocf-footer .ocf-btn-link,
  .ocf-container.ocf-mobile-1 .ocf-footer [data-ocf-discard="*"] {
    width: 100%;
    padding: 11px 20px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--cs-color-pink-soft, #ffe9f2) !important;
    color: var(--cs-color-pink, #e0146d) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-align: center;
    text-decoration: none !important;
  }

  .ocf-container.ocf-mobile-1 .ocf-footer .ocf-btn-link.ocf-disabled,
  .ocf-container.ocf-mobile-1 .ocf-footer [data-ocf-discard="*"].ocf-disabled,
  .ocf-container.ocf-mobile-1 .ocf-footer .ocf-btn-link[disabled],
  .ocf-container.ocf-mobile-1 .ocf-footer [data-ocf-discard="*"][disabled] {
    color: #fff !important;
    opacity: 0.55;
  }

  .ocf-container.ocf-mobile-1 .ocf-btn-show-values {
    color: #5bb486 !important;
    background: none !important;
    border: 0 !important;
  }

  .ocf-container.ocf-mobile-1 .ocf-btn-show-filters {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 20px !important;
    border: 1px solid var(--cs-color-pink, #e0146d) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--cs-color-pink, #e0146d) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  body.cs-filters-open {
    overflow: auto;
  }
}

/* Listing grid expects filters aside; without it content was stuck in the 280px column */
.cs-listing:not(:has(> .cs-filters)),
.cs-listing--no-filters {
  grid-template-columns: minmax(0, 1fr);
}
