.cfg-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}
.cfg-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cfg-slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.cfg-slot-chip:has(input:checked) {
  background-color: rgba(14, 14, 14, 1);
  border-color: rgba(14, 14, 14, 1);
  color: #fff;
}
.cfg-slot-chip input[type="checkbox"] {
  accent-color: rgba(14, 14, 14, 1);
  cursor: pointer;
}
.jshop.list_product .cfg-product-card .old_price {
  min-height: 22px;
  line-height: 22px;
}
.jshop.list_product .cfg-product-card .cfg-variant-placeholder {
  min-height: 31px;
  margin-bottom: 0.5rem;
}
.jshop.list_product .cfg-product-card .extra_fields-wrap {
  margin-bottom: 8px;
}
.jshop.list_product .cfg-product-card .extra_fields {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #555;
  text-align: left;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 6px 8px;
  height: 73px;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.jshop.list_product .cfg-product-card .cfg-params-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  padding: 0;
  margin-top: 2px;
  border: 0;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  transition: color 0.15s;
}
.jshop.list_product .cfg-product-card .cfg-params-toggle:hover {
  color: #0d6efd;
}
.jshop.list_product .cfg-product-card .cfg-arrow {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.jshop.list_product
  .cfg-product-card
  .cfg-params-toggle.is-expanded
  .cfg-arrow {
  transform: rotate(180deg);
}
.jshop.list_product .cfg-product-card .cfg-params-toggle-placeholder {
  height: 22px;
  margin-top: 2px;
}
.cfg-sticky-summary {
  position: sticky;
  bottom: 15px;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}
#cfgResultTabs [role="tab"].cfg-tab-ok::before,
#cfgResultTabs [role="tab"].cfg-tab-empty::before {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  position: static;
  margin-left: 6px;
}
#cfgResultTabs [role="tab"].cfg-tab-ok::before {
  content: "✓";
  background-color: #198754;
  color: #ffffff;
}
#cfgResultTabs [role="tab"].cfg-tab-empty::before {
  content: "!";
  background-color: #ffc107;
  color: #212529;
}
#cfgResultTabs [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  overflow-x: visible;
  gap: 0;
  border-bottom: 0 !important;
}
#cfgResultTabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  white-space: nowrap;
  padding: 8px 14px;
  border-bottom: 1px solid #dee2e6;
}
#cfgResultTabs [role="tab"][aria-selected="true"] {
  border-bottom: 2px solid #212529;
}
#cfgResultTabs [role="tablist"]::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px solid #dee2e6;
}

@media (max-width: 767.98px) {
  .cfg-sticky-summary {
    bottom: 68px;
    padding: 12px 14px;
    z-index: 99;
  }
  .cfg-sticky-summary > .d-flex {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .cfg-sticky-summary > .d-flex > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .cfg-sticky-summary #cfgTotalSum {
    display: block;
    font-size: 1.45rem !important;
    line-height: 1.2;
    white-space: nowrap;
  }
  .cfg-sticky-summary #cfgBudgetStatus {
    margin-left: 0 !important;
    margin-top: 4px;
  }
  .cfg-sticky-summary #cfgBtnAddAll {
    width: 100%;
    font-size: 0.95rem !important;
    padding: 10px 12px !important;
  }
}
