/* Hint */
.stx-matrix-hint{
  margin: 6px 0 10px;
  font-size: 13px;
  opacity: .7;
}

/* ===== Inline Container (more compact) ===== */
.stx-matrix-inline{
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

/* Locked state */
.stx-matrix-body.is-locked{
  opacity: .45;
  filter: grayscale(0.2);
  pointer-events: none;
}

/* Actions */
.stx-matrix-actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 10px;
}

.stx-btn.is-loading{
  opacity:.7;
  pointer-events:none;
}

/* Primary button smaller */
.stx-btn{
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: .2s;
}
.stx-btn.primary{ background:#111; color:#fff; }
.stx-btn.primary:hover{ background:#000; }

/* ===== Swatches (slightly smaller) ===== */
.stx-color-swatches{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}
.stx-swatch{
  width: 68px;
  height: 68px;
  border-radius: 10px;
  border: 2px solid #ddd;
  cursor: pointer;
  overflow: hidden;
  padding: 7px;
  background: transparent;
  transition: .2s;
}
.stx-swatch img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.stx-swatch.active{ border-color:#111; }


.stx-single-section__title{
  font-weight:bold;
  margin-top:10px;
  color:#3393a0;
  text-transform:uppercase;
  font-size:18px
}

.stx-matrix-hint{
  color:red;
  font-weight:bold;
}
/* ===== Accordion ===== */
.stx-matrix-accordion{
  display:grid;
  gap: 8px;
}
.stx-acc{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.stx-acc__summary{
  cursor: pointer;
  padding: 10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight: 600;
  font-size: 14px;
  list-style:none;
  background: rgba(0,0,0,.03);
}
.stx-acc__summary::-webkit-details-marker{ display:none; }
.stx-acc__summary::after{
  content:"▾";
  font-size: 13px;
  opacity:.7;
  transition: transform .2s ease;
}
.stx-acc[open] .stx-acc__summary::after{ transform: rotate(-180deg); }

.stx-acc__body{
  padding: 8px 10px 10px;
}

/* ===== Table (compact) ===== */
.size-matrix-table{
  width:100%;
  border-collapse: collapse;
}
.size-matrix-table td,
.size-matrix-table th{
  padding: 10px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  font-size: 14px;
}
.size-matrix-table thead th{
  font-weight: 700;
  font-size: 13px;
  opacity: .8;
}

.size-matrix-table th:nth-child(2),
.size-matrix-table td:nth-child(2){
  width: 160px;
}

.size-matrix-table th:nth-child(3),
.size-matrix-table td:nth-child(3){
  width: 120px;
  text-align:right;
}

/* Price smaller */
.stx-th-price{ font-size: 12px; opacity: .75; }
.stx-price{
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
}
.stx-price del{
  opacity: .55;
  margin-right: 6px;
}
.stx-price ins{
  text-decoration:none;
}

/* ===== Qty Stepper (smaller) ===== */
.stx-qty{
  display:inline-flex;
  align-items:center;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.stx-qty-btn{
  width: 36px;
  height: 34px;
  border:0;
  background: rgba(0,0,0,.04);
  cursor:pointer;
  font-size: 16px;
  font-weight: 700;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: background .12s ease, transform .06s ease;
}
.stx-qty-btn:hover{ background: rgba(0,0,0,.08); }
.stx-qty-btn:active{ transform: scale(0.98); }

.stx-qty-input{
  width: 46px;
  height: 34px;
  border:0;
  text-align:center;
  font-weight: 700;
  font-size: 13px;
  outline:none;
  background:#fff;
}
.stx-qty-input::-webkit-outer-spin-button,
.stx-qty-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.stx-qty-input{ -moz-appearance:textfield; }

/* ===== Toast ===== */
.stx-matrix-toast{
  position:fixed;
  bottom: 22px;
  right: 22px;
  background:#111;
  color:#fff;
  padding: 12px 16px;
  border-radius: 12px;
  opacity:0;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index:10000;
  font-weight: 600;
  font-size: 14px;
}
.stx-matrix-toast.show{
  opacity:1;
  transform: translateY(0);
}
