/** wrapper blocks **/
.set-constructor__container [data-area="product"] {
  grid-area: product;
}
.set-constructor__container [data-area="plus"] {
  grid-area: plus;
}
.set-constructor__container [data-area="kit"] {
  grid-area: kit;
}
.set-constructor__container [data-area="equal"] {
  grid-area: equal;
}
.set-constructor__container [data-area="result"] {
  background-color: var(--darkerblack_bg_black);
  grid-area: result;
}
.set-constructor__container {
  display: grid;
  gap: 8px;
  grid-template-areas: "product" "plus" "kit" "equal" "result";
  grid-template-columns: 1fr;
}
.set-constructor__cell.line-block--gap {
  --gap: 20px;
}
/* */

/** main product **/
.set-constructor__product-image {
  align-items: center;
  display: flex;
  justify-content: center;

  height: 48px;
  width: 48px;

  text-align: center;

  position: relative;
}
/* */

/** items **/
.set-constructor__items {
  max-height: calc(72px * 5);
  width: 100%;
}
.set-constructor__item:not(:last-child) {
	margin-bottom: -1px;	
}
.set-constructor__item.border-bottom:last-child {
	border-bottom: none;
}
.set-constructor__item-inner.bordered {
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.set-constructor__item[data-active="false"] .set-constructor__item-block {
  opacity: 0.35;
}
.set-constructor__item-image {
  height: 48px;
  text-align: center;
  width: 48px;
}
.set-constructor__item-price {
  order: -1;
	display: flex;
	align-items: center;
}
/* */

@media screen and (min-width: 600px) {
  .set-constructor__item-price {
    order: initial;
		flex-direction: column;
		align-items: flex-end;
  }
}
@media screen and (min-width: 768px) {
  .set-constructor__container {
    grid-template-areas: "product plus kit" "equal equal equal" "result result result";
    grid-template-columns: 234px 20px auto;
  }
  .set-constructor__cell.line-block--gap {
    --gap: 10px;
    flex-direction: column;
  }
  .set-constructor__product-image {
    height: 140px;
    width: 140px;
  }
}
@media screen and (min-width: 1000px) {
  .set-constructor__container {
    grid-template-areas: "product plus kit equal result";
    grid-template-columns: 234px 20px auto 20px 234px;
  }
  .set-constructor__cell-container {
    text-align: center;
  }
  .set-constructor__result-items {
    flex-direction: column;
  }
}




/* ── SKU-кнопки аксессуаров ─────────────────────────────────────────────── */
.acc-sku-btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    padding:         4px 10px;
    min-width:       32px;
    font-size:       12px;
    line-height:     1.4;
    border-radius:   var(--border_radius, 4px);
    border:          1px solid var(--border_color, #d0d0d0);
    background:      transparent;
    color:           var(--font_color, #333);
    cursor:          pointer;
    transition:      background .15s, border-color .15s, color .15s;
    white-space:     nowrap;
}

.acc-sku-btn.active {
    background-color: var(--more_theme_color, #222);
    border-color:     var(--more_theme_color, #222);
    color:            #fff;
}

.acc-sku-btn:hover:not(.active):not(:disabled) {
    border-color: var(--more_theme_color, #222);
}

.acc-sku-btn:disabled {
    opacity:        0.35;
    cursor:         not-allowed;
    pointer-events: none;
}

/* ── Убираем прокрутку в списке аксессуаров ─────────────────────────────── */
.bx-acc-constructor .set-constructor__items {
    max-height: none;
    overflow:   visible;
}

/* --Убираем фиксированный хеадер-- */
#headerfixed .ajax-header {
    display: none;
}

/* Ограничиваем размер картинки основного товара */

.bx-acc-constructor .set-constructor__product-image .overflow-block {
    width:   100%;
    height:  100%;
}

.bx-acc-constructor .set-constructor__product-image img {
    width:      100%;
    height:     100%;
    object-fit: contain;
}