.cda-fast-filters-active .wp-block-woocommerce-product-filters,
.cda-fast-filters-active .ct-toggle-filter-panel,
.cda-fast-filters-active .woocommerce-ordering,
.cda-fast-filters-active .woocommerce-pagination,
.cda-fast-filters-active .ct-pagination {
  display: none !important;
}

.cda-fast-filters-anchor {
  display: none;
}

.cda-fast-mobile-trigger,
.cda-fast-mobile-quick-trigger,
.cda-fast-mobile-overlay,
.cda-fast-mobile-close,
.cda-fast-mobile-actions,
.cda-fast-desktop-toolbar {
  display: none;
}

.cda-fast-filters {
  display: flex;
  flex-direction: column;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  background: #fff;
  color: #202124;
}

.cda-fast-filters__header {
  order: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cda-fast-filters__header h2 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.cda-fast-filters__status {
  margin: 0;
  color: #62666d;
  font-size: 12px;
  line-height: 1.4;
}

.cda-fast-filters__reset {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #c7cbd1;
  border-radius: 4px;
  background: #fff;
  color: #2e3135;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cda-fast-filters__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cda-fast-filters__controls {
  display: grid;
  order: 3;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  align-items: start;
}

.cda-fast-facet {
  min-width: 0;
  margin: 0;
  border-bottom: 1px solid #e3e6ea;
}

.cda-fast-facet summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #292d32;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.cda-fast-facet > summary {
  padding-left: 28px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.cda-fast-facet[data-facet="max_price"] > summary {
  background-image: url("icons/filter-budget.svg");
}

.cda-fast-facet[data-facet="category"] > summary,
.cda-fast-facet[data-facet="tags"] > summary {
  background-image: url("icons/filter-categorie.svg");
}

.cda-fast-facet[data-facet="recipient"] > summary {
  background-image: url("icons/filter-ideal-pour.svg");
}

.cda-fast-facet[data-facet="brand"] > summary {
  background-image: url("icons/filter-marque.svg");
}

.cda-fast-facet[data-facet="min_rating"] > summary {
  background-image: url("icons/filter-avis.svg");
}

.cda-fast-facet[data-facet="material"] > summary {
  background-image: url("icons/filter-matiere.svg");
}

.cda-fast-facet[data-facet="cases"] > summary,
.cda-fast-facet[data-facet="doors"] > summary {
  background-image: url("icons/filter-cases.svg");
}

.cda-fast-facet summary::-webkit-details-marker {
  display: none;
}

.cda-fast-facet summary::after {
  content: "+";
  width: 18px;
  color: #70757c;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.cda-fast-facet[open] summary::after {
  content: "−";
}

.cda-fast-facet summary [data-selected-count]:not(:empty) {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: #0f5962;
  color: #fff;
  font-size: 11px;
}

.cda-fast-facet__body {
  position: relative;
  padding: 0 0 12px;
}

.cda-fast-category-parent {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  padding: 2px 0 6px;
  border-bottom: 1px solid #e2e6e8;
  color: #0f5962;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cda-fast-category-parent:hover {
  color: #0a4148;
}

.cda-fast-facet__list {
  display: grid;
  gap: 2px;
}

[data-facet="category"] .cda-fast-facet__list,
[data-facet="recipient"] .cda-fast-facet__list,
[data-facet="brand"] .cda-fast-facet__list,
[data-facet="tags"] .cda-fast-facet__list,
[data-facet="doors"] .cda-fast-facet__list {
  max-height: 245px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.cda-fast-option {
  display: grid;
  min-width: 0;
  min-height: 34px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #33373c;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
}

.cda-fast-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #0f5962;
}

.cda-fast-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cda-fast-option input:is(
  [data-param="category"],
  [data-quick-param="category"],
  [data-param="recipient"],
  [data-quick-param="recipient"]
) + span {
  display: flex;
  min-height: 24px;
  align-items: center;
  padding-left: 28px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.cda-fast-option input:is([data-param="category"], [data-quick-param="category"]) + span {
  background-image: url("icons/filter-categorie.svg");
}

.cda-fast-option input:is([data-param="category"], [data-quick-param="category"]):is(
  [value*="gourmand"],
  [value*="gastronom"],
  [value*="food"],
  [value*="jam"],
  [value*="spice"],
  [value*="honey"],
  [value*="cheese"]
) + span {
  background-image: url("icons/univers-gastronomie.svg");
}

.cda-fast-option input:is([data-param="category"], [data-quick-param="category"]):is(
  [value*="beaute"],
  [value*="beauty"],
  [value*="skincare"],
  [value*="makeup"],
  [value*="bodycare"],
  [value*="nail-polish"],
  [value*="perfume"],
  [value*="fragrance"]
) + span {
  background-image: url("icons/univers-beaute.svg");
}

.cda-fast-option input:is([data-param="category"], [data-quick-param="category"]):is(
  [value*="jouet"],
  [value*="toy"],
  [value*="lego"],
  [value*="playmobil"],
  [value*="harry-potter"],
  [value*="disney"]
) + span {
  background-image: url("icons/univers-jouet.svg");
}

.cda-fast-option input:is([data-param="category"], [data-quick-param="category"]):is(
  [value*="chocolat"],
  [value*="chocolate"]
) + span {
  background-image: url("icons/univers-chocolat.svg");
}

.cda-fast-option input:is([data-param="category"], [data-quick-param="category"]):is(
  [value*="the-cafe"],
  [value*="tea"],
  [value*="coffee"]
) + span {
  background-image: url("icons/univers-the-cafe.svg");
}

.cda-fast-option input:is([data-param="category"], [data-quick-param="category"]):is(
  [value*="alcool"],
  [value*="alcohol"],
  [value*="beer"],
  [value^="gin-"],
  [value*="-gin-"],
  [value$="-gin"],
  [value*="rum"],
  [value*="whisky"],
  [value*="vodka"],
  [value*="wine"]
) + span {
  background-image: url("icons/univers-alcool.svg");
}

.cda-fast-option input:is([data-param="recipient"], [data-quick-param="recipient"]) + span {
  background-image: url("icons/filter-ideal-pour.svg");
}

.cda-fast-option input:is([data-param="recipient"], [data-quick-param="recipient"]):is(
  [value*="homme"],
  [value*="man"],
  [value*="men"]
) + span {
  background-image: url("icons/dest-homme.svg");
}

.cda-fast-option input:is([data-param="recipient"], [data-quick-param="recipient"]):is(
  [value*="femme"],
  [value*="woman"],
  [value*="women"]
) + span {
  background-image: url("icons/dest-femme.svg");
}

.cda-fast-option input:is([data-param="recipient"], [data-quick-param="recipient"]):is(
  [value*="enfant"],
  [value*="ado"],
  [value*="garcon"],
  [value*="fille"],
  [value*="kid"],
  [value*="child"],
  [value*="girl"],
  [value*="boy"],
  [value*="baby"],
  [value*="teen"]
) + span {
  background-image: url("icons/dest-enfant.svg");
}

.cda-fast-option input:is([data-param="recipient"], [data-quick-param="recipient"])[value*="couple"] + span {
  background-image: url("icons/dest-couple.svg");
}

.cda-fast-option small {
  color: #747980;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.cda-fast-option.is-unavailable {
  color: #999da3;
  cursor: default;
}

.cda-fast-stars {
  color: #efaa24;
  letter-spacing: 0;
  white-space: nowrap;
}

.cda-fast-brand-search {
  display: block;
  margin: 2px 0 8px;
}

.cda-fast-brand-search input,
.cda-fast-sort select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #b8bdc5;
  border-radius: 4px;
  background: #fff;
  color: #202124;
  font-size: 13px;
}

.cda-fast-filters__suggestions {
  position: absolute;
  z-index: 40;
  inset: 46px 0 auto;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #c7cbd1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.16);
}

.cda-fast-filters__suggestions button {
  display: grid;
  width: 100%;
  min-height: 38px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid #eceef1;
  border-radius: 0;
  background: #fff;
  color: #202124;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.cda-fast-filters__suggestions button:hover,
.cda-fast-filters__suggestions button:focus-visible,
.cda-fast-filters__suggestions button.is-selected {
  background: #eef5f5;
}

.cda-fast-filters__suggestions button small {
  color: #73777e;
  font-size: 11px;
}

.cda-fast-sort {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  color: #4c5057;
  font-size: 12px;
  font-weight: 800;
}

.cda-fast-sort > span {
  display: flex;
  min-height: 22px;
  align-items: center;
  padding-left: 28px;
  background: url("icons/filter-trier.svg") left center / 20px 20px no-repeat;
}

.cda-fast-filters__stock {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: #33373c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cda-fast-filters__stock input[name="sale"] + span,
.cda-fast-filters__stock input[name="stock"] + span {
  display: flex;
  min-height: 24px;
  align-items: center;
  padding-left: 28px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.cda-fast-filters__stock input[name="sale"] + span {
  background-image: url("icons/filter-promotion.svg");
}

.cda-fast-filters__stock input[name="stock"] + span {
  background-image: url("icons/filter-stock.svg");
}

.cda-fast-filters__stock input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0f5962;
}

.cda-fast-filters__stock small {
  margin-left: auto;
  color: #747980;
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.cda-fast-filters__active {
  display: flex;
  order: 2;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 0;
  margin: 6px 0 4px;
}

.cda-fast-filters__active:empty {
  display: none;
}

.cda-fast-filters__active button {
  max-width: 100%;
  min-height: 28px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid #c9d3d5;
  border-radius: 4px;
  background: #eef5f5;
  color: #244b50;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.cda-fast-filters.is-loading {
  opacity: 0.72;
}

.cda-fast-filters-active ul.products[aria-busy="true"] {
  min-height: 420px;
  opacity: 0.5;
  pointer-events: none;
}

.cda-fast-filters__empty {
  grid-column: 1 / -1;
  padding: 36px 16px;
  border: 1px dashed #c7cbd1;
  border-radius: 4px;
  color: #555a61;
  text-align: center;
}

.cda-fast-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
}

.cda-fast-pagination[hidden] {
  display: none !important;
}

.cda-fast-pagination button {
  min-width: 104px;
  min-height: 40px;
  border: 1px solid #aeb4bc;
  border-radius: 4px;
  background: #fff;
  color: #272b30;
  font-weight: 700;
  cursor: pointer;
}

.cda-fast-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.cda-fast-pagination span {
  min-width: 104px;
  text-align: center;
  font-size: 13px;
}

@media (min-width: 1000px) {
  .cda-fast-filters-active:not(.cda-fast-desktop-panel-open) #main > .ct-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cda-fast-filters-active:not(.cda-fast-desktop-panel-open) #main > .ct-container > :not(#sidebar) {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 !important;
  }

  .cda-fast-filters-active:not(.cda-fast-desktop-panel-open) #sidebar {
    display: none !important;
  }

  .cda-fast-filters-sidebar #sidebar .ct-sidebar > :not(.cda-fast-filters) {
    display: none !important;
  }

  .cda-fast-desktop-toolbar {
    position: relative;
    z-index: 20;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    padding: 4px 0;
    border-bottom: 1px solid #e1e5e8;
    color: #24333a;
  }

  .cda-fast-desktop-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 15px 0 0;
    border: 0;
    border-right: 1px solid #d9dde1;
    border-radius: 0;
    background: transparent;
    color: #173f4a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  .cda-fast-desktop-toggle svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 160ms ease;
  }

  .cda-fast-desktop-panel-open .cda-fast-desktop-toggle svg {
    transform: rotate(180deg);
  }

  .cda-fast-desktop-toolbar__label {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .cda-fast-quick-filter {
    position: relative;
    min-width: 0;
  }

  .cda-fast-quick-filter summary {
    display: flex;
    min-width: 126px;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #aeb9be;
    border-radius: 4px;
    background: #fff;
    color: #24333a;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }

  .cda-fast-quick-filter > summary {
    padding-left: 39px;
    background-position: 11px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
  }

  .cda-fast-quick-filter[data-quick-facet="max_price"] > summary {
    background-image: url("icons/filter-budget.svg");
  }

  .cda-fast-quick-filter[data-quick-facet="recipient"] > summary {
    background-image: url("icons/filter-ideal-pour.svg");
  }

  .cda-fast-quick-filter summary::-webkit-details-marker {
    display: none;
  }

  .cda-fast-quick-filter summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -3px 1px 0 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .cda-fast-quick-filter[open] summary::after {
    margin-top: 3px;
    transform: rotate(225deg);
  }

  .cda-fast-quick-filter summary [data-quick-selected-count]:not(:empty) {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 5px;
    place-items: center;
    border-radius: 10px;
    background: #0f5962;
    color: #fff;
    font-size: 11px;
  }

  .cda-fast-quick-filter__menu {
    position: absolute;
    z-index: 70;
    top: calc(100% + 7px);
    left: 0;
    display: grid;
    width: 270px;
    max-height: 330px;
    gap: 2px;
    padding: 10px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #cbd2d6;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 37, 43, 0.16);
  }

  .cda-fast-quick-sort {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: #435058;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .cda-fast-quick-sort select {
    width: 145px;
    height: 38px;
    padding: 0 30px 0 10px;
    border: 1px solid #aeb9be;
    border-radius: 4px;
    background-color: #fff;
    color: #24333a;
    font-size: 13px;
  }

  .cda-fast-filters-sidebar #sidebar .cda-fast-filters {
    position: relative;
    top: auto;
    z-index: 2;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .cda-fast-filters-sidebar #sidebar .cda-fast-filters.is-desktop-sticky {
    position: sticky;
    top: var(--cda-fast-sticky-top, 88px);
  }

  .cda-fast-filters-sidebar #sidebar .cda-fast-filters__controls {
    display: block;
  }

  .cda-fast-filters-sidebar #sidebar .cda-fast-filters__header {
    margin-bottom: 4px;
  }

  .cda-fast-filters-sidebar #sidebar .cda-fast-filters__header h2 {
    font-size: 18px;
  }

  .cda-fast-filters-sidebar #sidebar .cda-fast-facet:first-child {
    border-top: 1px solid #e3e6ea;
  }
}

@media (max-width: 999px) {
  .cda-fast-mobile-trigger {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 0 22px;
    border: 1px solid #123c68;
    border-radius: 28px;
    background: #fff;
    color: #123c68;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }

  .cda-fast-filter-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .cda-fast-mobile-quick-trigger {
    position: fixed;
    z-index: 9999;
    top: var(--cda-fast-mobile-quick-top, 72px);
    right: 12px;
    display: flex;
    min-width: 230px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid #123c68;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 27, 29, 0.14);
    color: #123c68;
    font-size: 14px;
    font-weight: 800;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
    pointer-events: none;
    cursor: pointer;
  }

  .cda-fast-mobile-quick-trigger.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .cda-fast-mobile-trigger__count {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    place-items: center;
    border-radius: 12px;
    background: #123c68;
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
  }

  .cda-fast-mobile-trigger__count[hidden] {
    display: none;
  }

  .cda-fast-mobile-overlay {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(20, 27, 29, 0.48);
  }

  .cda-fast-mobile-overlay[hidden] {
    display: none !important;
  }

  body.cda-fast-filters-lock {
    overflow: hidden;
  }

  .cda-fast-filters {
    position: fixed;
    z-index: 100001;
    inset: auto 0 0;
    width: 100%;
    max-height: min(88dvh, 760px);
    margin: 0;
    padding: 0 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -10px 32px rgba(20, 27, 29, 0.18);
    visibility: hidden;
    transform: translateY(105%);
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .cda-fast-filters.is-mobile-open {
    visibility: visible;
    transform: translateY(0);
  }

  .cda-fast-filters__header {
    position: sticky;
    z-index: 3;
    top: 0;
    margin: 0 -16px 4px;
    padding: 14px 16px 10px;
    background: #fff;
  }

  .cda-fast-mobile-close {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #202124;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
  }

  .cda-fast-filters__controls {
    grid-template-columns: 1fr;
  }

  .cda-fast-facet--brand,
  .cda-fast-sort,
  .cda-fast-filters__stock {
    grid-column: auto;
  }

  [data-facet="category"] .cda-fast-facet__list,
  [data-facet="recipient"] .cda-fast-facet__list,
  [data-facet="brand"] .cda-fast-facet__list,
  [data-facet="tags"] .cda-fast-facet__list,
  [data-facet="doors"] .cda-fast-facet__list {
    max-height: 220px;
  }

  .cda-fast-mobile-actions {
    position: sticky;
    z-index: 3;
    bottom: 0;
    display: block;
    order: 4;
    margin: 12px -16px 0;
    padding: 10px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #e3e6ea;
    background: #fff;
  }

  .cda-fast-mobile-apply {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #0f5962;
    border-radius: 4px;
    background: #0f5962;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }
}

@media (max-width: 520px) {
  .cda-fast-filters__header {
    align-items: center;
  }

  .cda-fast-filters__header h2 {
    font-size: 18px;
  }
}
