/* ProAths Product Filters V2.1.11 — transform-based bottom-lock sidebar. */
.proaths-product-filters-v2,
.proaths-product-filters-v2 * { box-sizing: border-box; }

.proaths-product-filters-v2 { width: 100%; }
.proaths-product-filters-v2 .paf-v2-form { width: 100%; margin: 0; padding: 0 0 28px; }

/*
 * Desktop sidebar behavior (V2.1.9)
 * No CSS sticky and no nested scrolling. JS translates the filter only after its
 * bottom reaches the viewport bottom, then clamps it to the product-column track.
 */
@media (min-width: 1025px) {
  .paf-v2-archive-columns::after {
    content: "";
    display: table;
    clear: both;
  }
  #secondary.widget-area {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  #secondary.widget-area .proaths-product-filters-v2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 30px !important;
    transition: none !important;
  }

  #secondary.widget-area .proaths-product-filters-v2 .widget-content,
  #secondary.widget-area .proaths-product-filters-v2 .paf-v2-form {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100%;
  }
}

.paf-v2-section { margin: 0; padding: 0; overflow: visible; }
.paf-v2-section + .paf-v2-section { padding-top: 2px; }

.paf-v2-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 5px 8px 7px 0;
  margin: 0;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
  overflow: visible !important;
}
.paf-v2-toggle:focus { outline: 0; }

/* Requested: all section titles uppercase. */
.paf-v2-title {
  display: block;
  min-width: 0;
  padding: 2px 10px 2px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
  color: #111;
  overflow: visible;
}

/* Give the arrow its own 24px box so its lower/right stroke cannot be clipped. */
.paf-v2-chevron {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 1px;
  overflow: visible;
}
.paf-v2-chevron::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .16s ease;
}
.paf-v2-toggle[aria-expanded="false"] .paf-v2-chevron::before {
  transform: rotate(-45deg);
  top: 7px;
  left: 6px;
}
.paf-v2-body[hidden] { display: none !important; }

.paf-v2-options { list-style: none !important; margin: 0 !important; padding: 1px 0 0 !important; }
.paf-v2-option-row { position: relative; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.paf-v2-option-label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 31px;
  padding: 4px 0;
  margin: 0;
  color: #222;
  cursor: pointer;
  line-height: 1.35;
  font-weight: 500;
}
.paf-v2-checkbox {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}

/*
 * Match the user's existing personalization checkbox:
 * navy outer border, visible white gap, navy center square when checked.
 */
.paf-v2-checkbox-ui {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-right: 11px;
  border: 2px solid #0D2968;
  background: #fff;
  transition: background-color .12s ease, border-color .12s ease, opacity .12s ease;
}
.paf-v2-checkbox-ui::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: transparent;
}
.paf-v2-checkbox:checked + .paf-v2-checkbox-ui::after { background: #0D2968; }
.paf-v2-option-row:not(.is-disabled) .paf-v2-option-label:hover .paf-v2-checkbox-ui { background: #f4f6fa; }

.paf-v2-option-text {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #2b2b2b;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size .22s ease;
}
.paf-v2-option-row:not(.is-disabled) .paf-v2-option-label:hover .paf-v2-option-text,
.paf-v2-option-row:not(.is-disabled) .paf-v2-option-label:focus-within .paf-v2-option-text {
  background-size: 100% 2px;
}
.paf-v2-count { margin-left: auto; padding-left: 8px; color: #858991; font-size: 12px; font-weight: 500; }

.paf-v2-option-row.is-disabled .paf-v2-option-label { color: #b9bdc5; cursor: default; font-weight: 500; }
.paf-v2-option-row.is-disabled .paf-v2-option-text { color: #b9bdc5; font-weight: 500; }
.paf-v2-option-row.is-disabled .paf-v2-checkbox-ui { border-color: #bfc4ce; background: #fff; opacity: .72; }
.paf-v2-tooltip {
  position: absolute;
  z-index: 50;
  left: 0;
  bottom: calc(100% + 5px);
  display: none;
  max-width: 230px;
  padding: 7px 9px;
  border-radius: 3px;
  background: #222;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.paf-v2-tooltip::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 100%;
  border: 5px solid transparent;
  border-top-color: #222;
}
.paf-v2-option-row.is-disabled .paf-v2-option-label:hover .paf-v2-tooltip { display: block; }

/* Price */
.paf-v2-price { padding: 8px 3px 2px 0; }
.paf-v2-price-track { position: relative; height: 3px; margin: 8px 8px 0 2px; background: #d5d8de; }
.paf-v2-price-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: #0D2968; }
.paf-v2-range-wrap { position: relative; height: 22px; margin: -12px 0 0; }
.paf-v2-range {
  position: absolute !important;
  left: 0; top: 0;
  width: 100% !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}
.paf-v2-range::-webkit-slider-runnable-track { height: 3px; background: transparent; border: 0; }
.paf-v2-range::-webkit-slider-thumb {
  width: 11px; height: 11px; margin-top: -4px;
  border: 1px solid #0D2968; border-radius: 0;
  background: #fff;
  -webkit-appearance: none;
  pointer-events: auto;
  cursor: ew-resize;
}
.paf-v2-range::-moz-range-track { height: 3px; background: transparent; border: 0; }
.paf-v2-range::-moz-range-thumb {
  width: 11px; height: 11px;
  border: 1px solid #0D2968; border-radius: 0;
  background: #fff;
  pointer-events: auto;
  cursor: ew-resize;
}
.paf-v2-price-labels { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 13px; font-weight: 500; color: #444; }

/* Actions are divs on purpose so Sunic's global button sweep cannot attach. */
.paf-v2-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 7px 0 2px; padding-bottom: 4px; }
.paf-v2-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px;
  padding: 9px 12px !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1 !important;
  letter-spacing: 0;
  text-decoration: none !important;
  user-select: none;
  cursor: pointer;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}
.paf-v2-apply { color: #fff !important; background: #0D2968 !important; border: 1px solid #0D2968 !important; transition: background-color .14s ease, border-color .14s ease; }
.paf-v2-apply:hover,
.paf-v2-apply:focus { color: #fff !important; background: #0D2968 !important; border-color: #0D2968 !important; outline: 0; }
.paf-v2-reset { color: #b7bac1 !important; background: #f7f7f7 !important; border: 2px solid #e0e2e6 !important; cursor: default; }
.paf-v2-reset.is-enabled { color: #0D2968 !important; background: #fff !important; border-color: #0D2968 !important; cursor: pointer; transition: background-color .14s ease, color .14s ease; }
.paf-v2-reset.is-enabled:hover,
.paf-v2-reset.is-enabled:focus { color: #fff !important; background: #0D2968 !important; outline: 0; }
.paf-v2-form.is-loading { opacity: .78; }

@media (max-width: 1024px) {
  #secondary.widget-area,
  .proaths-product-filters-v2 { position: static !important; max-height: none !important; overflow: visible !important; padding-bottom: 0 !important; }
}
