.chi-accents-slider {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.chi-accents-main {
  flex: 1 1 70%;
}

.chi-accents-main-image {
  width: 100%;
  height: auto;
  display: block;
}

.chi-accents-filters {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid #d0d0d0;
  background-color: #ffffff;
  padding: 1.5rem;
  box-sizing: border-box;
}

.chi-accents-filter-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chi-accents-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  border: none;
}

.chi-accents-thumb {
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chi-accents-thumb-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 0;
  text-align: center;
  color: #555555;
  max-width: 80px; /* keep label width within image width */
}

.chi-accents-thumb img {
  display: block;
  max-width: 80px;
  height: auto;
  border: 2px solid transparent;
}

/* Active state: highlight only the image with a black border */
.chi-accents-thumb.is-active img {
  border-color: #000000;
}

.chi-accents-thumb.is-active .chi-accents-thumb-label {
  color: #000000;
}

.chi-accents-note {
  font-size: 0.8rem;
  font-style: italic;
  color: #555555;
  margin-top: 0.5rem;
}

.chi-accents-brochure-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  background-color: #333333;
  color: #ffffff;
  border-radius: 2px;
}

.chi-accents-brochure-button:hover,
.chi-accents-brochure-button:focus {
  background-color: #000000;
  color: #ffffff;
}

/* Mobile stacking */

/* Keep color swatches aligned along the bottom edge, even when the label above changes height */
.chi-accents-thumbs[data-filter-group="color"] {
  align-items: flex-end;
}

/* Simple carousel styling for the door (collection) thumbnails */
.chi-accents-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chi-accents-carousel-track {
  flex: 1 1 auto;
  overflow: hidden;
}

.chi-accents-carousel-track .chi-accents-thumbs {
  flex-wrap: nowrap;
}

.chi-accents-carousel-arrow {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
}

.chi-accents-carousel-arrow:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .chi-accents-slider {
    flex-direction: column;
  }

  .chi-accents-main,
  .chi-accents-filters {
    flex: 1 1 100%;
  }
}


/* Flexbox layout for main and filters */
.chi-accents-wrapper {
    display:flex;
    flex-direction:row;
    align-items:flex-start;
    gap:20px;
}
.chi-accents-main {
    flex:1;
}
.chi-accents-filters {
    flex:0 0 300px;
}


/* Override active state: remove button border change, highlight only the image */
.chi-accents-thumb.is-active {
  border-color: transparent;
}

.chi-accents-thumb.is-active img {
  outline: none;
}

/* Layout override: main image left 70%, filters right 30% */
.chi-accents-slider-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

.chi-accents-main {
  flex: 0 0 70%;
  max-width: 70%;
}

.chi-accents-filters {
  flex: 0 0 30%;
  max-width: 30%;
}

/* Responsive: stack for small screens */
@media (max-width: 768px) {
  .chi-accents-slider-inner {
    flex-direction: column;
  }
  .chi-accents-main,
  .chi-accents-filters {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Note font size override */
.chi-accents-note {
  font-size: 10px;
}

/* Color label above swatches */
.chi-accents-color-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: left;
  color: #555555;
}


/* Admin: collection label section headers */
#chi-accents-table .chi-collection-section-row .chi-collection-section-cell {
  padding: 8px 10px;
  font-weight: 600;
  background: #f5f5f5;
  border-top: 1px solid #dddddd;
}


/* Admin: toolbar and bulk/layout controls */
.chi-admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 0.5rem;
  gap: 1rem;
}

.chi-layout-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chi-layout-toggle .chi-layout-label {
  font-weight: 600;
}

.chi-bulk-actions {
  display: flex;
  gap: 0.5rem;
}

/* Admin: sticky table header */
#chi-accents-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f5f5;
}

/* Admin: selector column */
#chi-accents-table .chi-col-select {
  width: 40px;
  text-align: center;
}

/* Admin: inline media previews */
#chi-accents-table .chi-media-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#chi-accents-table .chi-media-preview {
  max-width: 120px;
  max-height: 80px;
  overflow: hidden;
  border: 1px solid #dddddd;
  border-radius: 3px;
  background: #ffffff;
}



/* Admin: validation highlighting */
#chi-accents-table .chi-accents-row.chi-row-invalid {
  background-color: #fff8f0;
}

#chi-accents-table .chi-accents-row.chi-row-invalid td {
  border-top-color: #f2a679;
}

/* Admin: collapsible section state */
#chi-accents-table .chi-collection-section-row.is-collapsed .chi-collection-section-cell::after {
  content: ' BC';
  font-size: 0.8em;
}

#chi-accents-table .chi-collection-section-row .chi-collection-section-cell::after {
  content: ' B2';
  font-size: 0.8em;
}


#chi-accents-table-wrapper.chi-layout-cards #chi-accents-table {
  border-collapse: separate;
}

#chi-accents-table-wrapper.chi-layout-cards thead {
  display: none;
}

#chi-accents-table-wrapper.chi-layout-cards tbody {
  display: block;
}

#chi-accents-table-wrapper.chi-layout-cards .chi-collection-section-row {
  display: none;
}

#chi-accents-table-wrapper.chi-layout-cards .chi-accents-row {
  display: block;
  margin-bottom: 12px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background: #ffffff;
}

#chi-accents-table-wrapper.chi-layout-cards .chi-accents-row td {
  display: block;
  border: 0;
  padding: 4px 0;
}

#chi-accents-table-wrapper.chi-layout-cards .chi-accents-row td.chi-col-select {
  float: right;
  text-align: right;
}

#chi-accents-table-wrapper.chi-layout-cards .chi-accents-row td:last-child {
  text-align: right;
}




/* Corrected: ONLY color thumbs get 32px size */
.chi-accents-thumbs[data-filter-group="color"] .chi-accents-thumb img {
    width: 32px !important;
    height: 32px !important;
}

/* Admin preview only for color thumbs (thumb_color fields) */
#chi-accents-table .chi-field-thumb-color ~ .chi-media-preview img {
    width: 32px !important;
    height: 32px !important;
}


