.sgm-shop{--sgm-b:#e3e8f1;--sgm-t:#111827;--sgm-m:#64748b;--sgm-a:#2563eb;margin:16px 0;padding:16px;border:1px solid var(--sgm-b);border-radius:14px;background:#fff;box-shadow:0 6px 22px rgba(15,23,42,.045);font-size:14px}.sgm-shop *{box-sizing:border-box}.sgm-shop-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sgm-shop-title{font-size:16px;font-weight:700;color:var(--sgm-t)}.sgm-shop-state{font-size:11px;color:var(--sgm-m);white-space:nowrap}.sgm-mode{display:grid;grid-template-columns:1fr 1fr;padding:3px;background:#f1f5f9;border-radius:10px;margin-bottom:14px}.sgm-mode-btn{border:0;background:transparent;color:#475569;font-weight:600;padding:9px 10px;border-radius:8px;cursor:pointer}.sgm-mode-btn.is-active{background:#fff;color:#0f172a;box-shadow:0 1px 5px rgba(15,23,42,.08)}.sgm-pane.is-hidden,.sgm-production.is-hidden{display:none}.sgm-label{display:block;font-weight:600;color:#334155;margin-bottom:6px}.sgm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sgm-field small{display:block;color:var(--sgm-m);margin-top:5px;font-size:11px}.sgm-input-wrap{position:relative}.sgm-input-wrap input{padding-right:42px!important;min-height:43px}.sgm-input-wrap>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#64748b;pointer-events:none}.sgm-select{min-height:43px}.sgm-feedback{display:none;margin-top:10px;padding:9px 11px;border-radius:9px;background:#fff1f2;color:#b42318;font-size:12px}.sgm-feedback.is-visible{display:block}.sgm-summary{margin-top:13px;padding:12px;border-radius:11px;background:#f8fafc;border:1px solid #edf2f7}.sgm-summary.is-empty{opacity:.72}.sgm-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#475569;padding:3px 0}.sgm-summary-row strong{color:#0f172a}.sgm-summary-row.sgm-total{margin-top:6px;padding-top:9px;border-top:1px solid #e2e8f0;font-size:16px}.sgm-summary-row.sgm-total strong{font-size:19px;color:#0f172a}.sgm-production{margin-top:6px;font-size:11px;color:#64748b}.sgm-confirm{display:flex;align-items:flex-start;gap:8px;margin:11px 0 0;color:#334155;font-size:12px;cursor:pointer}.sgm-confirm input{margin-top:2px}.sgm-shop.is-loading{opacity:.82}.sgm-shop.is-valid{border-color:#cbd5e1}@media(max-width:600px){.sgm-shop{padding:13px;margin:13px 0;border-radius:12px}.sgm-fields{grid-template-columns:1fr}.sgm-mode-btn{min-height:42px}.sgm-input-wrap input,.sgm-select{font-size:16px!important;min-height:46px}.sgm-summary-row.sgm-total strong{font-size:18px}}

/* Product header price follows the selected measurement. */
.sgm-top-price-meta {
    display: none;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
    opacity: .76;
}
.sgm-top-price-meta .sgm-top-unit-old {
    margin-right: 6px;
    text-decoration: line-through;
    opacity: .7;
}
.sgm-top-price-meta .sgm-top-unit-current {
    font-weight: 700;
}
.product-price-group .price-group.sgm-price-calculated {
    transition: opacity .16s ease;
}
@media (max-width: 767px) {
    .sgm-top-price-meta {
        font-size: 11px;
    }
}

/* v1.3.1 FINAL — one smart measurement control, accessible list, safe cart state. */
.sgm-field.has-combo .sgm-input-wrap{display:block;position:relative}.sgm-field.has-combo .sgm-dimension-select{display:none!important}.sgm-field.has-combo .sgm-input-wrap input{padding-right:84px!important}.sgm-field.has-combo .sgm-input-wrap>span{right:45px;font-size:12px}.sgm-combo-toggle{position:absolute;top:0;right:0;width:42px;height:100%;min-height:43px;border:0;border-left:1px solid #e2e8f0;border-radius:0 8px 8px 0;background:transparent;color:#475569;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:3}.sgm-combo-toggle:hover{background:#f8fafc}.sgm-combo-toggle:focus-visible{outline:2px solid var(--sgm-a);outline-offset:1px}.sgm-combo-toggle:disabled{opacity:.45;cursor:not-allowed}.sgm-combo-toggle span{font-size:18px;line-height:1}.sgm-combo-menu{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:100;max-height:230px;overflow:auto;padding:5px;border:1px solid #dce3ec;border-radius:10px;background:#fff;box-shadow:0 14px 30px rgba(15,23,42,.14);-webkit-overflow-scrolling:touch}.sgm-combo-menu.is-hidden{display:none!important}.sgm-combo-option{display:flex;width:100%;min-height:40px;align-items:center;border:0;border-radius:7px;background:#fff;color:#334155;padding:8px 10px;text-align:left;font:inherit;font-size:13px;cursor:pointer}.sgm-combo-option:hover,.sgm-combo-option:focus,.sgm-combo-option.is-active{background:#eff6ff;color:#1d4ed8;outline:0}.sgm-combo-option.is-filtered{display:none}.sgm-field.is-discrete input[aria-invalid="true"]{border-color:#ef4444!important;box-shadow:0 0 0 1px rgba(239,68,68,.08)}.sgm-cart-disabled{opacity:.55!important;cursor:not-allowed!important}.sgm-cart-disabled *{pointer-events:none}.sgm-dimension-select.is-hidden{display:none!important}[dir="rtl"] .sgm-field.has-combo .sgm-input-wrap input{padding-right:12px!important;padding-left:84px!important}[dir="rtl"] .sgm-field.has-combo .sgm-input-wrap>span{right:auto;left:45px}[dir="rtl"] .sgm-combo-toggle{right:auto;left:0;border-left:0;border-right:1px solid #e2e8f0;border-radius:8px 0 0 8px}[dir="rtl"] .sgm-combo-option{text-align:right}
@media(max-width:600px){.sgm-combo-toggle{width:44px;min-width:44px;min-height:46px}.sgm-field.has-combo .sgm-input-wrap input{padding-right:90px!important}.sgm-field.has-combo .sgm-input-wrap>span{right:47px}.sgm-combo-option{min-height:44px;font-size:16px}[dir="rtl"] .sgm-field.has-combo .sgm-input-wrap input{padding-left:90px!important}[dir="rtl"] .sgm-field.has-combo .sgm-input-wrap>span{left:47px}}

/* v1.3.1 FINAL HOTFIX — Journal-safe unified combobox, aligned chevron and clear helper hierarchy. */
.sgm-field.has-combo .sgm-input-wrap{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto 44px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  min-height:43px!important;
  padding:0!important;
  border:1px solid #d9e0e8!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
  transition:border-color .15s ease,box-shadow .15s ease!important;
}
.sgm-field.has-combo .sgm-input-wrap:focus-within{
  border-color:var(--sgm-a)!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.10)!important;
}
.sgm-field.has-combo .sgm-input-wrap input.form-control,
.sgm-field.has-combo .sgm-input-wrap input{
  position:relative!important;
  z-index:1!important;
  grid-column:1!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  min-height:41px!important;
  margin:0!important;
  padding:9px 10px!important;
  border:0!important;
  border-radius:8px 0 0 8px!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}
.sgm-field.has-combo .sgm-input-wrap input:focus{
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
.sgm-field.has-combo .sgm-input-wrap>span{
  position:static!important;
  grid-column:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:32px!important;
  margin:0!important;
  padding:0 7px!important;
  transform:none!important;
  color:#64748b!important;
  font-size:11px!important;
  line-height:1!important;
  pointer-events:none!important;
  white-space:nowrap!important;
}
.sgm-field.has-combo .sgm-combo-toggle{
  position:static!important;
  grid-column:3!important;
  align-self:stretch!important;
  width:44px!important;
  min-width:44px!important;
  height:auto!important;
  min-height:41px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-left:1px solid #e2e8f0!important;
  border-radius:0 8px 8px 0!important;
  background:#fff!important;
  color:#475569!important;
  box-shadow:none!important;
  transform:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  z-index:2!important;
}
.sgm-field.has-combo .sgm-combo-toggle:hover,
.sgm-field.has-combo .sgm-combo-toggle:focus-visible{background:#f8fafc!important}
.sgm-field.has-combo .sgm-combo-toggle:focus-visible{outline:2px solid rgba(37,99,235,.28)!important;outline-offset:-3px!important}
.sgm-combo-chevron{
  display:block!important;
  width:7px!important;
  height:7px!important;
  border-right:1.5px solid currentColor!important;
  border-bottom:1.5px solid currentColor!important;
  transform:translateY(-2px) rotate(45deg)!important;
  transition:transform .15s ease!important;
}
.sgm-combo-toggle[aria-expanded="true"] .sgm-combo-chevron{transform:translateY(2px) rotate(225deg)!important}
.sgm-field.has-combo .sgm-dimension-select{display:none!important}
.sgm-field.is-discrete .sgm-input-wrap input[aria-invalid="true"]{box-shadow:inset 0 -2px 0 #ef4444!important}
.sgm-combo-menu{left:0!important;right:0!important;width:auto!important;min-width:100%!important;top:calc(100% + 6px)!important;bottom:auto!important;z-index:1000!important}
.sgm-combo-menu.is-up{top:auto!important;bottom:calc(100% + 6px)!important}
.sgm-measure-help{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:2px 8px!important;
  align-items:center!important;
  margin-top:6px!important;
  line-height:1.35!important;
}
.sgm-measure-help .sgm-help-title{
  grid-column:1/-1!important;
  display:block!important;
  color:#475569!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
}
.sgm-measure-help .sgm-help-detail{
  min-width:0!important;
  color:#64748b!important;
  font-size:10px!important;
  overflow-wrap:anywhere!important;
}
.sgm-help-open{
  justify-self:end!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#2563eb!important;
  font:inherit!important;
  font-size:10px!important;
  font-weight:700!important;
  line-height:1.35!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
.sgm-help-open:hover,.sgm-help-open:focus{text-decoration:underline!important;outline:0!important}
[dir="rtl"] .sgm-field.has-combo .sgm-input-wrap{grid-template-columns:44px auto minmax(0,1fr)!important}
[dir="rtl"] .sgm-field.has-combo .sgm-input-wrap input{grid-column:3!important;border-radius:0 8px 8px 0!important}
[dir="rtl"] .sgm-field.has-combo .sgm-input-wrap>span{grid-column:2!important}
[dir="rtl"] .sgm-field.has-combo .sgm-combo-toggle{grid-column:1!important;border-left:0!important;border-right:1px solid #e2e8f0!important;border-radius:8px 0 0 8px!important}
@media(max-width:600px){
  .sgm-field.has-combo .sgm-input-wrap{grid-template-columns:minmax(0,1fr) auto 44px!important;min-height:46px!important}
  .sgm-field.has-combo .sgm-input-wrap input{min-height:44px!important;font-size:16px!important;padding:9px 10px!important}
  .sgm-field.has-combo .sgm-combo-toggle{width:44px!important;min-width:44px!important;min-height:44px!important}
  .sgm-field.has-combo .sgm-input-wrap>span{min-width:30px!important;padding:0 6px!important;font-size:11px!important}
  .sgm-measure-help .sgm-help-title,.sgm-measure-help .sgm-help-detail,.sgm-help-open{font-size:10px!important}
  [dir="rtl"] .sgm-field.has-combo .sgm-input-wrap{grid-template-columns:44px auto minmax(0,1fr)!important}
}

/* v1.3.1 FINAL — pricing semantics, minimum-price/preset notes and unit-safe display. */
.sgm-pricing-note{margin-top:8px;padding-top:8px;border-top:1px dashed #dbe3ec;color:#64748b;font-size:11px;line-height:1.45}.sgm-pricing-note.is-hidden{display:none!important}.sgm-top-pricing-note{color:#64748b;font-weight:600}.sgm-summary-row.is-hidden{display:none!important}

/* v1.3.1.2 FINAL - combobox visibility and optional quick-pick support.
   has-combo controls presentation; is-discrete controls validation/restriction.
   This lets ready sizes appear as quick picks without blocking manual input. */
.sgm-field.has-combo .sgm-combo-toggle.is-hidden,
.sgm-field:not(.has-combo) .sgm-combo-toggle{
  display:none!important;
}
.sgm-field:not(.has-combo) .sgm-combo-menu{
  display:none!important;
}
.sgm-help-range{
  grid-column:1/-1!important;
  display:block!important;
  margin-top:1px!important;
  color:#94a3b8!important;
  font-size:10px!important;
  line-height:1.3!important;
}

/* v1.4.2 — adds 1:2,75 S Pile to selector and visual guide */
.sgm-pleat{margin:12px 0;padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.sgm-pleat-titlebar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.sgm-pleat-titlebar>.sgm-label{margin:0!important}.sgm-pleat-help-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid #cbd5e1;border-radius:50%;background:#fff;color:#2563eb;font:inherit;font-size:14px;font-weight:900;line-height:1;cursor:pointer;transition:.15s ease}.sgm-pleat-help-btn:hover,.sgm-pleat-help-btn:focus-visible{border-color:#2563eb;background:#eff6ff;outline:0;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.sgm-pleat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(122px,1fr));gap:8px}.sgm-pleat-option{position:relative;display:flex;min-width:0;margin:0;cursor:pointer}.sgm-pleat-option input{position:absolute;opacity:0;pointer-events:none}.sgm-pleat-option>span{display:flex;flex:1;min-width:0;min-height:86px;padding:8px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#334155;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition:.15s ease}.sgm-pleat-option b{display:block;font-size:11px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}.sgm-pleat-option input:checked+span{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;box-shadow:0 0 0 2px rgba(37,99,235,.08)}.sgm-pleat-option input:focus-visible+span{outline:2px solid rgba(37,99,235,.3);outline-offset:2px}
.sgm-pleat-sketch{display:block;width:76px;height:28px;margin:0 auto 7px;border-top:2px solid currentColor;border-bottom:1px solid #cbd5e1;border-radius:3px;background:repeating-linear-gradient(90deg,rgba(248,250,252,.98) 0 4px,rgba(148,163,184,.52) 4px 6px,#fff 6px 10px,rgba(100,116,139,.62) 10px 12px,#fff 12px 16px);background-size:var(--sgm-pleat-step,22px) 100%;box-shadow:inset 0 0 0 1px rgba(148,163,184,.13)}.sgm-pleat-level-1{--sgm-pleat-step:72px}.sgm-pleat-level-2{--sgm-pleat-step:36px}.sgm-pleat-level-3{--sgm-pleat-step:28px}.sgm-pleat-level-4{--sgm-pleat-step:21px}.sgm-pleat-level-5{--sgm-pleat-step:18px}.sgm-pleat-level-6{--sgm-pleat-step:16px}
.sgm-pleat-modal{display:none;position:fixed;inset:0;z-index:2147483000;align-items:center;justify-content:center;padding:18px}.sgm-pleat-modal.is-open{display:flex}.sgm-pleat-modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(15,23,42,.58);cursor:pointer}.sgm-pleat-dialog{position:relative;z-index:1;width:min(620px,100%);max-height:min(86vh,760px);overflow:auto;padding:22px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;color:#334155;box-shadow:0 24px 70px rgba(15,23,42,.28);text-align:start}.sgm-pleat-dialog h3{margin:0 42px 8px 0;font-size:20px;line-height:1.25;color:#0f172a}.sgm-pleat-dialog p{margin:0 0 14px;font-size:13px;line-height:1.6}.sgm-pleat-dialog>small{display:block;margin-top:10px;color:#64748b;font-size:11px;line-height:1.5}.sgm-pleat-dialog-close{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:50%;background:#f1f5f9;color:#334155;font-size:24px;line-height:1;cursor:pointer}.sgm-pleat-dialog-close:hover,.sgm-pleat-dialog-close:focus-visible{background:#e2e8f0;outline:2px solid rgba(37,99,235,.18)}.sgm-pleat-guide{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:15px 0}.sgm-pleat-guide-item{min-width:0;padding:9px 5px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;text-align:center}.sgm-pleat-guide-item .sgm-pleat-sketch{width:min(78px,100%)}.sgm-pleat-guide-item strong{display:block;margin-top:5px;color:#334155;font-size:10px;line-height:1.3;overflow-wrap:anywhere}.sgm-pleat-help-formula{padding:11px 12px;border-radius:10px;background:#eff6ff;color:#1e40af;font-size:12px;font-weight:700;line-height:1.5}
[dir="rtl"] .sgm-pleat-dialog h3{margin-left:42px;margin-right:0}[dir="rtl"] .sgm-pleat-dialog-close{right:auto;left:12px}
@media(max-width:700px){.sgm-pleat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sgm-pleat-option>span{min-height:92px}.sgm-pleat-guide{grid-template-columns:repeat(2,minmax(0,1fr))}.sgm-pleat-modal{align-items:flex-end;padding:0}.sgm-pleat-dialog{width:100%;max-height:82vh;border-radius:18px 18px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px))}.sgm-pleat-dialog h3{font-size:18px}.sgm-pleat-help-btn{width:36px;height:36px;flex-basis:36px}.sgm-pleat-sketch{height:30px}}
@media(max-width:370px){.sgm-pleat-grid{grid-template-columns:1fr}.sgm-pleat-guide{grid-template-columns:1fr}}
