/* samafix combination picker — FO only, select attributes */
.product-variants-item.sf-cp-enhanced > select.form-control-select,
.product-variants-item.sf-cp-enhanced > select[data-product-attribute] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
.sf-cp-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.1rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  direction: rtl;
  box-sizing: border-box;
}
.sf-cp-row__btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 84px;
  min-height: 76px;
  padding: 4px 3px 5px;
  border: 1.5px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sf-cp-row__btn:hover,
.sf-cp-row__btn:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 2px rgba(128, 189, 255, 0.25);
}
.sf-cp-row__btn.is-in {
  border-color: #a8d5b5;
}
.sf-cp-row__btn.is-oos {
  border-color: #f0b4ae;
  background: #fdf2f1;
  opacity: 0.85;
}
.sf-cp-row__btn.is-low {
  border-color: #f0c98a;
  background: #fff6e8;
}
.sf-cp-row__btn.is-selected {
  border-color: #2b7bb9;
  box-shadow: 0 0 0 2px rgba(43, 123, 185, 0.28);
}
.sf-cp-row__img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8f9fa;
}
.sf-cp-row__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 0.75rem;
  background: #f1f3f5;
  border-radius: 6px;
  width: 72px;
  height: 72px;
}
.sf-cp-sku-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  margin-top: 0.25rem;
  min-height: 1em;
}
.sf-cp-sku {
  display: block;
  max-width: calc(100% - 0.9rem);
  padding: 0 1px;
  color: #555;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  word-break: break-all;
  direction: ltr;
  unicode-bidi: isolate;
}
.sf-cp-sku--empty {
  display: none;
}
.sf-cp-check {
  display: none;
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 0.95rem;
  text-align: center;
}
.sf-cp-check.is-on,
.sf-cp-row__btn.is-selected .sf-cp-check,
.sf-cp-item.is-active .sf-cp-check {
  display: inline-block;
}
.sf-cp-item__media {
  flex: 0 0 80px;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sf-cp-item__media .sf-cp-sku {
  font-size: 0.72rem;
}
.sf-cp-need-select {
  margin: 0.4rem 0 0.15rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #f0b4ae;
  border-radius: 6px;
  background: #fdf2f1;
  color: #b3261e;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
  direction: rtl;
}
.sf-cp-need-select[hidden] {
  display: none !important;
}
button.add-to-cart.sf-cp-blocked,
button[data-button-action="add-to-cart"].sf-cp-blocked {
  opacity: 0.72;
}

.sf-cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.42);
  box-sizing: border-box;
}
.sf-cp-overlay[hidden] {
  display: none !important;
}
.sf-cp-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(78vh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  direction: rtl;
}
.sf-cp-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}
.sf-cp-head__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.sf-cp-close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: #333;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.sf-cp-close:hover {
  background: #e9ecef;
}
.sf-cp-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sf-cp-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
  box-sizing: border-box;
}
.sf-cp-item.is-in {
  border-color: #a8d5b5;
  background: #fff;
}
.sf-cp-item.is-in:hover,
.sf-cp-item.is-in.is-active {
  border-color: #7cbc8c;
  background: #f4faf6;
}
.sf-cp-item.is-oos {
  border-color: #f0b4ae;
  background: #fdf2f1;
}
.sf-cp-item.is-oos:hover,
.sf-cp-item.is-oos.is-active {
  border-color: #e8968e;
  background: #fce8e6;
}
.sf-cp-item.is-low {
  border-color: #f0c98a;
  background: #fff6e8;
}
.sf-cp-item.is-low:hover,
.sf-cp-item.is-low.is-active {
  border-color: #e5b56a;
  background: #ffefd6;
}
.sf-cp-item__img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8f9fa;
  border: 1px solid #eee;
}
.sf-cp-item__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 0.7rem;
}
.sf-cp-item__body {
  flex: 1;
  min-width: 0;
}
.sf-cp-item__name {
  display: block;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.sf-cp-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
}
.sf-cp-item__price {
  color: #111;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.sf-cp-badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.4;
}
.sf-cp-badge--in {
  background: #e6f4ea;
  color: #137333;
}
.sf-cp-badge--out {
  background: #fce8e6;
  color: #c5221f;
}
.sf-cp-badge--low {
  background: #fff0d6;
  color: #a15c00;
}
body.sf-cp-open {
  overflow: hidden;
}