/*
 * 18 Oct 2026 — unify catalog modal category tiles with the left category rail.
 * Strictly visual update: no changes to model selection, canvas or 3D logic.
 */
@media (min-width: 641px) {
  #c3dux .cx-catmodal .cx-catcats {
    grid-template-columns: repeat(auto-fill, minmax(76px, 88px));
    gap: 7px;
    justify-content: start;
    align-content: start;
  }
}
#c3dux .cx-catmodal .cx-catcats {
  align-items: stretch;
}
#c3dux .cx-catmodal .cx-catcats .cx-catc {
  box-sizing: border-box;
  min-width: 0;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px 7px;
  border-radius: 12px;
  border: 1.5px solid var(--cx-line) !important;
  background: #fff;
  color: var(--cx-text);
  text-align: center;
  box-shadow: none;
  transition: border-color .14s ease, background-color .14s ease;
}
#c3dux .cx-catmodal .cx-catcats .cx-catc:hover,
#c3dux .cx-catmodal .cx-catcats .cx-catc:focus-visible {
  border-color: var(--p55-tint-786,#b7d6da) !important;
  background: var(--p55-tint-957,#f1f6f7);
}
#c3dux .cx-catmodal .cx-catcats .cx-catc.cur {
  border-color: var(--cx-teal) !important;
  background: var(--cx-teal-l);
  box-shadow: none;
  color: var(--cx-dark);
}
#c3dux .cx-catmodal .cx-catcats .cx-catcimg {
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: grid;
  place-items: center;
}
#c3dux .cx-catmodal .cx-catcats .cx-catcimg img {
  width: 21px;
  height: 21px;
  max-width: 21px;
  max-height: 21px;
  object-fit: contain;
  display: block;
  mix-blend-mode: normal;
}
#c3dux .cx-catmodal .cx-catcats .cx-catcimg .cx-catico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 20px;
  color: var(--cx-teal-d);
}
#c3dux .cx-catmodal .cx-catcats .cx-catcimg .cx-catico .cx-i {
  width: 20px;
  height: 20px;
}
#c3dux .cx-catmodal .cx-catcats .cx-catc b {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
  display: block;
}
/* The state marker must not hide the icon or text. */
#c3dux .cx-catmodal .cx-catcats .cx-catc em {
  position: static;
  display: block;
  padding: 1px 4px;
  margin-top: 1px;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  border-radius: 6px;
}
@media (max-width: 640px) {
  html.c3dux.c3dux-m #c3dux .cx-catmodal .cx-catcats,
  #c3dux .cx-catmodal .cx-catcats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  #c3dux .cx-catmodal .cx-catcats .cx-catc {
    min-height: 82px;
  }
}
@media (max-width: 365px) {
  #c3dux .cx-catmodal .cx-catcats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
