.subcategory,
.work-panel {
  width: 1165px;
  display: flex;
  align-items: center;
}
.work-panel {
  flex-direction: column;
  margin: 24px 0 9px;
  padding: 10px 0;
  box-sizing: border-box;
  gap: 9px;
  text-align: left;
  font-size: 11px;
  color: #323232;
  font-family: Saira;
}
.subcategory {
  height: 72px;
  border-radius: 10px;
  background-color: #cddee1;
  overflow: visible;
  flex-shrink: 0;
  justify-content: center;
  gap: 85px;
}
.spacer-icon {
  width: 10px;
  position: relative;
  box-shadow: none;
  border-radius: 0;
  max-height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  cursor: pointer;
}
.subcategory-list,
.table {
  display: flex;
  align-items: center;
}
.subcategory-list {
  justify-content: center;
  gap: 15px;
  width: 948px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex-shrink: 0;
}
.subcategory-list::-webkit-scrollbar { display: none; }
.subcategory-list--scrollable,
.subcategory-list:has(> :nth-child(10)) {
  justify-content: flex-start;
}
.table {
  height: 57px;
  width: 92px;
  box-shadow: 0.8px 0.8px 2px var(--Depth-Negative-025) rgba(0, 35, 55, 0.5);
  border-radius: 5px;
  background-color: #fff;
  flex-direction: column;
  gap: 6px;
}
[data-category],
[data-type] {
  cursor: pointer;
}
[data-category].highlight,
[data-type].highlight {
 
}
.subcategory-item-header {
  align-self: stretch;
  height: 16px;
  position: relative;
}
.subcategory-item-bg {
  position: absolute;
  width: calc(100% - 2px);
  top: 1px;
  right: 1px;
  left: 1px;
  border-radius: 4px 4px 0 0;
  background-color: #f8f1ed;
  height: 14px;
}
.subcategory-label-table {
  position: absolute;
  top: 0;
  left: 29px;
  color: #323232;
  font-family: Saira;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}
.subcategory-img-table {
  width: 48px;
  height: 29px;
  object-fit: cover;
}
.subcategory-label-chair {
  position: absolute;
  top: 0;
  left: 30px;
  font-weight: 600;
}
.subcategory-item-img {
  width: 48px;
  height: 29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.icon-sm {
  width: 24px;
  position: relative;
  max-height: 100%;
  object-fit: cover;
}
.subcategory-label-sofa {
  position: absolute;
  top: 0;
  left: 32px;
  font-weight: 600;
}
.subcategory-sofa-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  transform: rotate(180deg);
  flex-shrink: 0;
}
.subcategory-sofa-img {
  width: 52px;
  position: relative;
  max-height: 100%;
  object-fit: cover;
  transform: rotate(-180deg);
}
.subcategory-label-bed {
  position: absolute;
  top: 0;
  left: 35px;
  font-weight: 600;
}
.subcategory-img-bed {
  width: 89px;
  height: 29px;
  object-fit: contain;
  flex-shrink: 0;
}
.subcategory-label-bench {
  position: absolute;
  top: 0;
  left: 25px;
  font-weight: 600;
}
.subcategory-bench-img-wrap {
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  box-sizing: border-box;
  transform: rotate(180deg);
  flex-shrink: 0;
}
.subcategory-img-bench {
  width: 60px;
  height: 29px;
  object-fit: cover;
  transform: rotate(-180deg);
  flex-shrink: 0;
}
.window {
  height: 58px;
  width: 92px;
  box-shadow: 0.8px 0.8px 2px var(--Depth-Negative-025) rgba(0, 35, 55, 0.5);
  border-radius: 5px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.subcategory-img-window {
  top: 22px;
  left: 16px;
  width: 60px;
  height: 29px;
  object-fit: contain;
}
.subcategory-window-bg,
.subcategory-img-window,
.subcategory-label-window {
  position: absolute;
  flex-shrink: 0;
}
.subcategory-window-bg {
  width: calc(100% - 2px);
  top: 1px;
  right: 1px;
  left: 1px;
  border-radius: 4px 4px 0 0;
  background-color: #f8f1ed;
  height: 14px;
}
.subcategory-label-window {
  top: 0;
  left: 22px;
  font-weight: 600;
}
.door {
  height: 58px;
  width: 92px;
  box-shadow: 0.8px 0.8px 2px var(--Depth-Negative-025) rgba(0, 35, 55, 0.5);
  border-radius: 5px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.subcategory-label-door {
  position: absolute;
  top: 0;
  left: 31px;
  font-weight: 600;
}
.subcategory-img-door {
  width: 74px;
  height: 31px;
  object-fit: contain;
}
.subcategory-label-shelving {
  position: absolute;
  top: 0;
  left: 20px;
  font-weight: 600;
}
.subcategory-img-shelving {
  width: 58px;
  height: 29px;
  object-fit: contain;
}
.subcategory-label-storage {
  position: absolute;
  top: 0;
  left: 21px;
  font-weight: 600;
}
.subcategory-img-storage {
  width: 52px;
  height: 29px;
  object-fit: contain;
}

[class^="subcategory-label-"] {
  position: absolute;
  top: 0;
  left: 1px;
  right: 1px;
  width: calc(100% - 2px);
  height: 14px;
  padding: 0 2px;
  box-sizing: border-box;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spacer-icon2 {
  width: 10px;
  position: relative;
  box-shadow: none;
  border-radius: 0;
  max-height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  cursor: pointer;
}
.types {
  width: 1164px;
  
  border-radius: 10px;
  background-color: #ecf3f3;
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 31px 13px 31px 128px;
  gap: 102.5px;
  font-size: 13px;
  color: #33649c;
}
.types-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 13px;
  max-height: 100%;
  cursor: pointer;
  object-fit: contain;
  transform: translateY(-50%);
}
.types-nav--prev {
  left: 32px;
  box-shadow: none;
  border-radius: 0;
}
.types-nav--next {
  right: 13px;
  box-shadow: none;
  border-radius: 0;
}
.item,
.types {
  box-sizing: border-box;
}

.item {
  height: 148px;
  width: 907px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 205px);
  grid-auto-rows: 46px;
  align-content: start;
  column-gap: 29px;
  row-gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.item::-webkit-scrollbar {
  display: none;
}

/* Common type-card style.
   Card height = 46px, padding top/bottom = 3px, image height = 40px.
   So image spacing becomes 3px + 40px + 3px exactly. */
.item > [class^="type-item-"] {
  width: 205px;
  height: 46px;
  min-height: 46px;
  box-shadow: 1px 1px 2px rgba(0, 35, 55, 0.25);
  border-radius: 6px;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 3px 30px 3px 3px;
  gap: 15px;
  box-sizing: border-box;
  overflow: hidden;
}

.type-item-thumbnail {
  width: 45px;
  height: 40px;
  min-width: 45px;
  max-width: 45px;
  min-height: 40px;
  max-height: 40px;
  display: block;
  flex: 0 0 45px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center;
}

.type-item-name {
  position: relative;
  font-weight: 500;
  line-height: 16px;
  white-space: normal;
  min-width: 0;
}

.type-item-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.type-item-link .type-item-thumbnail {
  flex-shrink: 0;
}

/* Keep the original desktop grid positions. */
.type-item-r1c1 {
  grid-column: 1;
  grid-row: 1;
}

.type-item-r1c2 {
  grid-column: 2;
  grid-row: 1;
}

.type-item-r1c3 {
  grid-column: 3;
  grid-row: 1;
}

.type-item-r1c4 {
  grid-column: 4;
  grid-row: 1;
}

.type-item-r2c1 {
  grid-column: 1;
  grid-row: 2;
}

.type-item-r2c2 {
  grid-column: 2;
  grid-row: 2;
}

.type-item-r2c3 {
  grid-column: 3;
  grid-row: 2;
}

.type-item-r2c4 {
  grid-column: 4;
  grid-row: 2;
}

.type-item-r3c1 {
  grid-column: 1;
  grid-row: 3;
}

.type-item-r3c2 {
  grid-column: 2;
  grid-row: 3;
}

.type-item-r3c3 {
  grid-column: 3;
  grid-row: 3;
}

.type-item-r3c4 {
  grid-column: 4;
  grid-row: 3;
}

.types-sidebar {
  height: 95px;
  flex-direction: column;
  align-items: flex-start;
  padding: 43px 0 0;
  display: flex;
  box-sizing: border-box;
}

.types-scroll-indicator {
  width: 13px;
  position: relative;
  box-shadow: none;
  border-radius: 0;
  max-height: 100%;
  object-fit: contain;
}

/* ── Tablet: up to 1280px ───────────────────────────────────────── */
@media screen and (max-width: 1280px) {
  .work-panel,
  .subcategory {
    width: 100%;
    box-sizing: border-box;
  }
  .types {
    width: 100%;
    box-sizing: border-box;
    padding-left: 24px;
    gap: 24px;
  }
  .item {
    width: auto;
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 12px;
  }
}

/* ── Tablet: up to 1024px ───────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .subcategory {
    height: auto;
    gap: 12px;
    padding: 8px 12px;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .subcategory-list {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .table,
  .window,
  .door {
    flex-shrink: 0;
  }
  .types {
    height: auto;
    padding: 16px 12px;
    flex-direction: column;
    gap: 12px;
  }
  .item {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .types-sidebar {
    display: none;
  }
  .work-panel {
    gap: 12px;
    margin: 24px 0 9px;
    padding: 10px 0;
  }
}

/* ── Mobile: up to 768px ────────────────────────────────────────── */
@media screen and (max-width: 768px) {
  /* subcategory bar */
  .subcategory {
    padding: 6px 8px;
    gap: 8px;
  }

  /* types: 2-column grid */
  .types {
    padding: 12px 8px;
    flex-direction: column;
    height: auto;
    gap: 12px;
    align-items: stretch;
  }
  .item {
    width: 100%;
    min-width: 0;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 8px;
    overflow: visible;
  }
  .type-item-r1c1,
  .type-item-r1c2,
  .type-item-r1c3,
  .type-item-r1c4,
  .type-item-r2c1,
  .type-item-r2c2,
  .type-item-r2c3,
  .type-item-r2c4,
  .type-item-r3c1,
  .type-item-r3c2,
  .type-item-r3c3,
  .type-item-r3c4 {
    width: 100%;
    min-width: 0;
    grid-column: auto !important;
    grid-row: auto !important;
    padding: 6px 8px 6px 6px;
    gap: 8px;
    box-sizing: border-box;
  }
  .types-sidebar { display: none; }
  .type-item-name {
    font-size: 11px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
}

/* ── Small mobile: up to 480px ─────────────────────────────────── */
@media screen and (max-width: 480px) {
  .item {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 6px;
    row-gap: 6px;
    min-width: 0;
    overflow: visible;
  }
}

/* When there are 12 or fewer type cards, fill the grid naturally from left to right. */
.types--auto {
  gap: 100px;
}

.types--auto .item {
  grid-auto-flow: row;
  justify-content: start;
  padding: 0;
}

.types--auto .item > [class^="type-item-"] {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* Selected category/type color. */
[data-category].highlight,
[data-type].highlight {
 
}

[data-type].highlight .type-item-name,
[data-category].highlight [class^="subcategory-label-"] {
  color: #FA5F00;
}

/* Sub category hover + selected states. */
:root {
  --sds-size-depth-negative-025: 0px;
}

[data-category],
[data-type] {
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

[data-category]:hover,
[data-type]:hover {
  border-radius: 5px;
  background: #fff;
  box-shadow: 0.8px 0.8px 4px var(--sds-size-depth-negative-025) #4DC9FF;
}

[data-category].highlight {
  border-radius: 5px;
  background: #fff;
  box-shadow: 0.8px 0.8px 4px var(--sds-size-depth-negative-025) #FFA066;
}

[data-type].highlight {
  border-radius: 5px;
  background: #fff;
  box-shadow: 0.8px 0.8px 4px var(--sds-size-depth-negative-025) #4DC9FF;
}

/* Category strip states inside #categories-container. */
#categories-container [data-category] {
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

#categories-container [data-category]:hover {
  border-radius: 5px;
  background: #fff;
  box-shadow: 0.8px 0.8px 4px var(--sds-size-depth-negative-025) #4DC9FF;
}

#categories-container [data-category].highlight {
  border-radius: 5px;
  background: #fff;
  box-shadow: 0.8px 0.8px 4px var(--sds-size-depth-negative-025) #FFA066;
}

/* Final Figma match for category/type card hover and selected states. */
#categories-container [data-category],
#subcategories-container [data-type] {
  outline: 0 !important;
  border-radius: 5px !important;
  background: #fff !important;
  transition: box-shadow 0.18s ease, color 0.18s ease;
}

#categories-container [data-category]:hover,
#subcategories-container [data-type]:hover {
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: 0.8px 0.8px 4px 0 #4DC9FF !important;
}

#categories-container [data-category].highlight {
  border-radius: 8.5px;
  background: #FFF;
  box-shadow: 1px 1px 2px 0 #FF6608;
}

#subcategories-container [data-type].highlight {
border-radius: 8.5px;
background: #FFF;
box-shadow: 1px 1px 2px 0 #FF6608;
}

#categories-container [data-category].highlight [class^="subcategory-label-"] {
  color: #5A0A0A !important;
}

#subcategories-container [data-type].highlight .type-item-name {
  color: #FA5F00 !important;
}

/* Let the lower hover/selected glow show on category cards. */
#categories-container .subcategory {
  overflow: visible !important;
}

#categories-container .subcategory-list {
  overflow-x: auto;
  overflow-y: visible !important;
  
}

.threeDeModelsPage-section--models {
  
  margin-bottom: 69px;
}

/* Keep Format pill compact while open so Color pill does not shift right. */
.filters [data-filter-control="format"][aria-expanded="true"]:not(.is-selected) {
  width: 92px !important;
}

/* Format icons: fixed 24x24 in pill and dropdown. */
.filters [data-filter-control="format"] :is(.filter-format-selected-icon, .filter-dropdown__item-icon, .filter-dropdown__item-icon-img) {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Match Format label typography with Material pill typography. */
.filters [data-filter-control="format"] .filter-format-label,
.filters [data-filter-control="format"].is-selected .filter-format-label,
.filters [data-filter-control="format"][aria-expanded="true"] .filter-format-label {
  color: #795345 !important;
  font-family: Saira, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: normal !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* Old behavior: compact selected format, full name only on hover/focus/open. */
.filters [data-filter-control="format"].is-selected {
  width: 68px !important;
}

.filters [data-filter-control="format"].is-selected .filter-format-label {
  max-width: 0 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  opacity: 0 !important;
}

.filters [data-filter-control="format"].is-selected:is(:hover, :focus-visible, [aria-expanded="true"]) {
  width: var(--format-open-width, 170px) !important;
}

.filters [data-filter-control="format"].is-selected:is(:hover, :focus-visible, [aria-expanded="true"]) .filter-format-label,
.filters [data-filter-control="format"][aria-expanded="true"] .filter-format-label {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}

.filters [data-filter-control="format"].is-selected .filter-format-wrap,
.filters [data-filter-control="format"][aria-expanded="true"] .filter-format-wrap {
  width: 100% !important;
}

/* Format arrow: default same as other filters; orange on hover/open. */
.filters [data-filter-control="format"] :is(.filter-expand-icon, .filter-expand-icon-sm) {
  content: url("/assets/images/icons/Empty-Placeholders.svg") !important;
  width: 15px !important;
  height: 10px !important;
  min-width: 15px !important;
  min-height: 10px !important;
  max-width: 15px !important;
  max-height: 10px !important;
  flex: 0 0 15px !important;
  filter: none !important;
}

.filters [data-filter-control="format"]:is(:hover, :focus-visible, .is-selected, [aria-expanded="true"]) :is(.filter-expand-icon, .filter-expand-icon-sm) {
  content: url("/assets/images/icons/Empty-Placeholders.svg") !important;
  filter: none !important;
}

/* Use the same arrow SVG for all filter controls. */
.filters [data-filter-control] :is(.filter-expand-icon, .filter-expand-icon-sm) {
  content: url("/assets/images/icons/Empty-Placeholders.svg") !important;
  width: 15px !important;
  height: 10px !important;
  min-width: 15px !important;
  min-height: 10px !important;
  max-width: 15px !important;
  max-height: 10px !important;
  flex: 0 0 15px !important;
  filter: none !important;
}

.filters [data-filter-control]:is(:hover, :focus-visible, .is-selected, [aria-expanded="true"]) :is(.filter-expand-icon, .filter-expand-icon-sm) {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='10' viewBox='0 0 15 10' fill='none'%3E%3Cpath d='M5.55791 8.95036C6.35258 9.8352 7.73921 9.8352 8.53389 8.95035L13.5758 3.3364C14.7321 2.04888 13.8183 3.59288e-05 12.0878 3.59288e-05L2.00401 3.59288e-05C0.273459 3.59288e-05 -0.64031 2.04888 0.516013 3.3364L5.55791 8.95036Z' fill='%23FF8A5C'/%3E%3C/svg%3E") !important;
}

/* Format default (not selected): keep clear gap between text and arrow. */
.filters [data-filter-control="format"]:not(.is-selected) .filter-format-wrap {
  gap: 0px !important;
  padding-right: 36px !important;
}

.filters [data-filter-control="format"]:not(.is-selected) .filter-format-label {
  margin-right: 8px !important;
}

.filters [data-filter-control="format"]:not(.is-selected) :is(.filter-expand-icon, .filter-expand-icon-sm) {
  right: 8px !important;
}

/* Fix clipped COLOR text in expanded state. */
.filters [data-filter-control="color"]:is(:hover, :focus-visible, .is-selected, [aria-expanded="true"]) {
  width: 128px !important;
}

.filters [data-filter-control="color"]:is(:hover, :focus-visible, .is-selected, [aria-expanded="true"]) .filter-hover-label {
  max-width: 74px !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Color selected state: match large-dot pill layout from design. */
.filters [data-filter-control="color"].is-selected {
  width: var(--color-pill-width, 68px) !important;
  min-width: 68px !important;
  max-width: 170px !important;
}

.filters [data-filter-control="color"].is-selected .filter-color-inner {
  gap: 4px !important;
  padding-left: 12px !important;
  padding-right: 16px !important;
 
  align-items: center !important;
  min-height: 37px !important;
  overflow: hidden !important;
}

.filters [data-filter-control="color"].is-selected .filter-color-preview {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  line-height: 0 !important;
  width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  margin-right: 0 !important;
}

.filters [data-filter-control="color"].is-selected .filter-color-preview-dot {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  border: 0 !important;
}

.filters [data-filter-control="color"].is-selected :is(.filter-expand-icon, .filter-expand-icon-sm) {
  right: 4px !important;
}

/* Shape dropdown: enforce consistent tile/icon size for all shapes. */
.filter-dropdown--shape .filter-shape__row {
  display: grid !important;
  grid-template-columns: repeat(4, 44px) !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px 12px !important;
}

.filter-dropdown--shape .filter-shape__item,
.filter-dropdown--shape .filter-shape__item:hover,
.filter-dropdown--shape .filter-shape__item:focus-visible,
.filter-dropdown--shape .filter-shape__item[aria-checked="true"] {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.filter-dropdown--shape .filter-dropdown__item-icon {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.filter-dropdown--shape .filter-shape__img {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  object-fit: fill !important;
  object-position: center !important;
}

/* Tag dropdown: prevent very tall panel; scroll inside. */
#tag-filter-menu.filter-dropdown__menu--tag,
.filter-dropdown--tag .filter-dropdown__menu {
  max-height: 320px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Explicit pill widths per selected colour count — 0,4,0 specificity beats filter.css (same spec, loaded later). */
.filters [data-filter-control="color"].is-selected[data-color-count="1"] {
  width: 68px !important;
}
.filters [data-filter-control="color"].is-selected[data-color-count="2"] {
  width: 92px !important;
}
.filters [data-filter-control="color"].is-selected[data-color-count="3"] {
  width: 125px !important;
}

/* ── Material filter selected state — mirrors colour pill behaviour ── */
.filters [data-filter-control="material"].is-selected .filter-material-inner {
  gap: 4px !important;
  padding-left: 12px !important;
  padding-right: 16px !important;
  align-items: center !important;
  min-height: 37px !important;
  overflow: hidden !important;
}

.filters [data-filter-control="material"].is-selected .filter-material-preview {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  line-height: 0 !important;
  width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  margin-right: 0 !important;
}

.filters [data-filter-control="material"].is-selected .filter-material-preview-dot {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  flex: 0 0 25px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) !important;
}

.filters [data-filter-control="material"].is-selected .filter-material-preview-dot img {
  width: 25px !important;
  height: 25px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.filters [data-filter-control="material"].is-selected .filter-material-inner > .filter-icon-img {
  display: none !important;
}

.filters [data-filter-control="material"].is-selected .filter-hover-label {
  display: none !important;
}

.filters [data-filter-control="material"].is-selected :is(.filter-expand-icon, .filter-expand-icon-sm) {
  right: 4px !important;
}

/* Explicit pill widths per selected material count. */
.filters [data-filter-control="material"].is-selected[data-material-count="1"] {
  width: 68px !important;
}
.filters [data-filter-control="material"].is-selected[data-material-count="2"] {
  width: 92px !important;
}
.filters [data-filter-control="material"].is-selected[data-material-count="3"] {
  width: 125px !important;
}
