/* Blanc Space proportions, with HireSave navy and cream. Collection drawers only. */
main[data-template^='collection'] :is(#filters-drawer, #rehire-filters-drawer) {
  --hs-filter-ink: #041421;
  --hs-filter-canvas: #f2f1ed;
  --hs-filter-card: #f9f8f5;

  .theme-drawer__dialog {
    --color-background: #f9f8f5;
    --color-foreground: #041421;
    --theme-drawer-padding: 16px;
    border-radius: 8px;
    background: var(--hs-filter-canvas) !important;
    color: var(--hs-filter-ink);
  }

  .theme-drawer__header {
    flex-shrink: 0;
    min-height: 82px;
    padding: 18px 24px;
    border-bottom: 1px solid #0414210d;
    background: var(--hs-filter-canvas);
  }

  .theme-drawer__title { font-size: 24px; font-weight: 750; letter-spacing: -.035em; }
  .theme-drawer__close-button { width: 36px; height: 36px; color: var(--hs-filter-ink); background: transparent; border: 0; box-shadow: none; }
  .theme-drawer__close-button:hover { background: #0414210a; }
  .facets-drawer__filters, .hsr__filter-panel { padding: 12px 16px 16px; overscroll-behavior: contain; }
  .facets__filters-wrapper { gap: 0; }
  .facets-remove:not(:has(facet-remove-component, button)) { display: none; }
  .facets-remove { margin: 0 0 12px; padding: 0 4px; }
  .facets__form-wrapper, .facets__form { color: var(--hs-filter-ink); }
  .hsr__filter-panel { flex: 1 1 auto; min-height: 0; }
  .hsr__filter-panel > .facets { display: block; padding: 0 !important; }

  .facets__item {
    display: block;
    margin: 0 0 12px;
    padding: 0 16px;
    border: 0;
    border-radius: 22px;
    background: var(--hs-filter-card);
  }

  .facets__item::before { content: none; }
  .facets__item > .facets__panel { padding: 0; border: 0; }
  .facets__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 20px 0;
    color: var(--hs-filter-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
    text-transform: none;
    list-style: none;
    cursor: pointer;
  }

  .facets__summary::-webkit-details-marker { display: none; }
  .facets__label { color: inherit; font-size: inherit; font-weight: inherit; }
  .facets__status-wrapper { gap: 10px; }
  .facets__summary .icon-caret {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--hs-filter-ink);
    background: #0414210d;
    border-radius: 50%;
  }

  details[open] > .facets__summary .icon-caret { color: var(--hs-filter-card); background: var(--hs-filter-ink); }
  .facets__summary .icon-caret svg { width: 10px; height: 10px; }
  .facets__panel-content { padding: 0 0 20px !important; }
  .facets__inputs-wrapper { padding: 0; margin: 0; }
  .facets__inputs-list { width: 100%; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .facets__inputs-list:not(.facets__inputs-list--swatches):not(.facets__inputs-list--images) { display: flex; flex-direction: column; }
  .facets__inputs-list-item { padding: 0; }
  .checkbox { width: 100%; padding: 0; }
  .checkbox__label, .facets__pill-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 12px;
    border: 1px solid #0414211f;
    border-radius: 999px;
    background: transparent;
    color: var(--hs-filter-ink);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    box-shadow: none;
    cursor: pointer;
  }

  .checkbox__label-text { white-space: normal; overflow: visible; padding: 0; color: inherit !important; }
  .checkbox .icon-checkmark { width: 16px; height: 16px; border: 1px solid #04142140; border-radius: 3px; background: #04142110; }
  .checkbox__input { left: 12px; }
  .checkbox__input:checked + .checkbox__label { border-color: var(--hs-filter-ink); background: #04142106; }
  .checkbox__input:checked + .checkbox__label .icon-checkmark { background: var(--hs-filter-ink); border-color: var(--hs-filter-ink); }
  .checkbox__input:checked + .checkbox__label .icon-checkmark path { stroke: var(--hs-filter-card); }
  .facets__pill-input:checked + .facets__pill-label { color: var(--hs-filter-card); background: var(--hs-filter-ink); border-color: var(--hs-filter-ink); }
  .checkbox__input:disabled + .checkbox__label { opacity: .4; cursor: not-allowed; }
  .checkbox__input:not(:disabled) + .checkbox__label:hover, .facets__pill-input:not(:checked):not(:disabled) + .facets__pill-label:hover { border-color: #04142180; background: #04142106; }

  .hs-filter-sort__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 24px; }
  .hs-filter-sort__option { position: relative; min-width: 0; }
  .hs-filter-sort__input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; clip-path: inset(50%); }
  .hs-filter-sort__option label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 100%;
    padding: 8px;
    border: 1.5px solid #04142166;
    border-radius: 60px;
    color: var(--hs-filter-ink);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
  }

  .hs-filter-sort__input:checked + label { color: var(--hs-filter-card); background: var(--hs-filter-ink); border-color: var(--hs-filter-ink); }
  .hs-filter-sort__input:not(:checked) + label:hover { background: #0414210a; border-color: var(--hs-filter-ink); }
  .hs-filter-sort__input:focus-visible + label, .checkbox__input:focus-visible + label, .facets__pill-label:focus-visible, summary:focus-visible { outline: 2px solid var(--hs-filter-ink); outline-offset: 3px; }
  .hs-filter-sort__input:disabled + label { opacity: .4; cursor: not-allowed; }
  .hsr__filter-search { display: grid; gap: 10px; margin: 0 0 12px; padding: 20px 16px; border-radius: 22px; background: var(--hs-filter-card); font-size: 15px; font-weight: 700; }
  .hsr__filter-search input, .price-facet__input { min-height: 48px; border: 1px solid #04142133; border-radius: 999px; background: transparent; color: var(--hs-filter-ink); box-shadow: none; }
  .hsr__filter-search input { width: 100%; padding: 12px 16px; font: inherit; font-weight: 400; }
  .hsr__filter-count { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #0414210a; font-size: 12px; }
  .price-facet__inputs-wrapper { gap: 10px; }
  .price-facet__field { min-width: 0; }
  .facets__drawer-actions { gap: 10px; padding: 12px 16px 16px; background: var(--hs-filter-canvas); border-top: 1px solid #0414210d; box-shadow: none; }
  .facets__see-results { min-width: 0; min-height: 60px; font-weight: 700; }
  .facets__clear-all { min-width: 0; border-radius: 999px; }
}

@media (max-width: 749px) {
  main[data-template^='collection'] :is(#filters-drawer, #rehire-filters-drawer) {
    .theme-drawer__dialog { inset: 8px auto 8px 8px !important; width: min(478px, calc(100vw - 16px)); max-width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
    .theme-drawer__header { min-height: 72px; padding: 14px 20px; }
    .theme-drawer__title { font-size: 22px; }
    .facets-drawer__filters, .hsr__filter-panel { padding: 12px; }
    .facets__item { padding-inline: 14px; }
    .hs-filter-sort__option label { padding-inline: 6px; font-size: 13px; }
    .facets__drawer-actions { padding: 12px; }
    .facets__see-results { min-height: 54px; padding-inline: 16px; }
  }
}

@media (max-width: 359px) {
  main[data-template^='collection'] :is(#filters-drawer, #rehire-filters-drawer) .hs-filter-sort__option label { padding-inline: 4px; font-size: 12px; }
}
