/* Portfolio filter bar: desktop dropdowns; bottom sheets at max-width 991px. */
.wop-filter__head{
  border-bottom: 1px solid #e7e7e9;
}

.wop-search-bar__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}


.wop-search-bar__inner .wop-filter-bar__main {
  flex: 0 0 auto;
}

.wop-search-bar__inner .wop-filter-bar__form {
  justify-content: flex-end;
}

.wop-filter-bar {
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.wop-filter-bar__main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.wop-filter-bar__form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
}

.wop-company-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wop-company-strip::-webkit-scrollbar {
  display: none;
}

.wop-company-strip .cms_tabs_inactive {
  flex: 0 0 auto;
  cursor: pointer;
  padding: 6px 10px;
  min-width: 0;
}

.wop-company-strip .cms_tabs_inactive::before,
.wop-company-strip .cms_tabs_inactive::after {
  content: none;
  display: none;
}

.wop-company-strip .cms_tabs_inactive_text {
  width: auto;
  white-space: nowrap;
}

.wop-company-strip .w-radio-input.hide {
  display: none;
}

.wop-filter-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.wop-filter-bar__form--filters-only {
  width: 100%;
}

.wop-filter-controls--lead {
  flex: 1 1 auto;
  min-width: 0;
}

.wop-filter {
  position: relative;
  flex: 0 0 auto;
}

.wop-filter__trigger {
  padding-top: 6px;
  padding-bottom: 6px;
  display: flex;
  white-space: nowrap;
  cursor: pointer;
}

.wop-filter__trigger:hover {
  box-shadow: 0 2px 4px #00000014;
}

.wop-switch:hover {
  box-shadow: 0 2px 4px #00000014;
}

.wop-filter__trigger[aria-expanded="true"],
.wop-filter.is-active .wop-filter__trigger {
  border-color: #e7e7e9;
}

.wop-filter.is-active .wop-filter__trigger {
  border-width: 1px;
  padding: 6px 12px;
}

.wop-filter__caret {
  color: #6b6b73;
  transition: transform .18s ease;
}

.wop-filter__trigger[aria-expanded="true"] .wop-filter__caret {
  transform: rotate(180deg);
}

.wop-filter.is-active .wop-filter__caret {
  display: none;
}

.wop-filter__count {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #0d0c20;
  border-radius: 50px;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
}

.wop-filter__count[hidden] {
  display: none;
}

.wop-filter__count-close {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.wop-filter__trigger:hover .wop-filter__count-num {
  opacity: 0;
}

.wop-filter__trigger:hover .wop-filter__count-close {
  opacity: 1;
}

.wop-filter__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: 320px;
  max-height: min(356px, calc(100vh - 180px));
  background: #fff;
  border: 1px solid #e7e7e9;
  border-radius: 20px;
  box-shadow: 0 12px 32px #0000001f;
  overflow: hidden;
}

.wop-filter__panel[hidden] {
  display: none;
}

.wop-filter__panel.is-right-aligned {
  left: auto;
  right: 0;
}


.wop-filter__close {
  display: none;
}

.wop-filter__options {
  overflow-y: auto;
}

.wop-filter__options .wop-option {
  margin-bottom: 0;
}

.wop-filter__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  box-shadow: 0 -4px 12px #00000014;
}

.wop-filter__clear {
  padding: 0;
  background: none;
  border: none;
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.wop-filter__clear:hover {
  text-decoration: underline;
}
.wop-filter__apply {
  padding: 6px 12px;
  background: #0d0c20;
  border: none;
  border-radius: 80px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.wop-filter__apply:hover {
  background: #272633;
}

.wop-switch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  cursor: pointer;
  user-select: none;
  margin: 0;
}



.wop-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wop-switch__track {
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 20px;
  padding: 2px;
  background: #d5d5da;
  border-radius: 40px;
  transition: background-color .18s ease;
}

.wop-switch__thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #00000029;
  transition: transform .18s ease;
}

.wop-switch__input:checked + .wop-switch__track {
  background: #0d0c20;
}

.wop-switch__input:checked + .wop-switch__track .wop-switch__thumb {
  transform: translateX(12px);
}

.wop-sheet-backdrop {
  display: none;
}

/* Mobile / tablet: bottom sheets (matches app sidebar breakpoint). */
@media screen and (max-width: 991px) {
  .sticky-shadow{
    padding-left: 16px;
    padding-right: 16px;
  }
  .wop-search-bar__inner{
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .wop-search-bar__inner .wop-filter-bar__main{
    width: 100%;
  }
  .wop-filter-bar {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .wop-filter-bar__form {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }


  .wop-filter-controls {
    flex: 1 0 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .wop-filter-controls::-webkit-scrollbar {
    display: none;
  }

  /* Panel is portaled to <body> on open — avoid sticky stacking context issues. */
  .wop-filter {
    position: static;
  }

  .wop-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background-color: #0009;
    opacity: 0;
    transition: opacity .2s ease;
  }

  .wop-sheet-backdrop[hidden] {
    display: none;
  }

  .wop-sheet-backdrop.is-visible {
    opacity: 1;
  }

  .wop-filter__panel {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20001;
    width: 100%;
    max-height: 85vh;
    border: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px #00000029;
    transform: translateY(100%);
    transition: transform .25s ease;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .wop-filter__panel.is-open {
    transform: translateY(0);
  }

  .wop-filter__panel.is-right-aligned {
    left: 0;
    right: 0;
  }

  .wop-filter__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .wop-filter__options {
    flex: 1 1 auto;
    padding: 8px 20px 16px;
    overscroll-behavior: contain;
  }

  .wop-filter__options .wop-option {
    padding: 12px 0;
  }

  .wop-filter__foot {
    padding: 12px 20px 16px;
    gap: 40px;
  }

  .wop-filter__apply {
    width: auto;
    padding: 10px 16px;
    flex: 1 1 auto;
    text-align: center;
  }
}

html.wop-sheet-open,
html.wop-sheet-open body {
  overflow: hidden;
}
