/* Catalog-specific additions. The approved EBTS stylesheet remains unchanged. */
.ebtf-family .ebts-grid {
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  max-width: 100%;
}
.ebtf-family .ebts-choice { min-width: 0; }
.ebtf-family .ebts-code {
  max-width: 100%;
  min-height: 19px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.ebtf-family .ebtf-swatch-neutral {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #faf8f6 0 6px, #e8e2dc 6px 7px);
  border: 1px dashed #b9a59a;
  color: #694a3d;
}
.ebtf-family .ebtf-swatch-label {
  max-width: 40px;
  max-height: 2.3em;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.ebtf-family .ebtf-unavailable {
  display: block;
  color: #7e5147;
  font-size: 10px;
  line-height: 1.35;
}
.ebtf-family .ebts-selected-name { overflow-wrap: anywhere; }
.ebtf-family .ebts-value { white-space: nowrap; }
.ebtf-gallery #thumbs_list {
  width: 100%;
  height: auto;
  overflow: visible;
}
.ebtf-gallery #thumbs_list_frame {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100% !important;
  margin: 0;
  padding: 0;
}
.ebtf-gallery #thumbs_list_frame > li {
  flex: 0 0 80px;
  width: 80px;
  height: auto;
  margin: 0;
}
.ebtf-gallery .fancybox { display: block; }
.ebtf-gallery .fancybox:focus-visible { outline: 2px solid #895749; outline-offset: 3px; }
.ebtf-gallery #view_scroll_left,
.ebtf-gallery #view_scroll_right { display: none !important; }
@media (min-width: 768px) {
  .ebtf-family .ebts-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .ebtf-family .ebts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
