[data-sos-designer]{box-sizing:border-box}.sos-el-card{direction:rtl}.sos-el-card label{display:grid;gap:7px}.sos-el-card input[type=text],.sos-el-card input[type=tel],.sos-el-card textarea{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #ddd;border-radius:10px;background:#fff}.sos-el-card textarea{min-height:90px;resize:vertical}.sos-el-title{font-weight:700;margin-bottom:10px}.sos-el-options,.sos-el-swatches{display:flex;flex-wrap:wrap;gap:8px}.sos-el-options button,.sos-el-template-list button,.sos-el-submit{cursor:pointer;border:1px solid #ddd;background:#fff;border-radius:10px;padding:10px 14px}.sos-el-options button.is-active,.sos-el-template-list button.is-active{border-color:currentColor;box-shadow:0 0 0 2px rgba(0,0,0,.08)}.sos-el-template-list{display:flex;flex-wrap:wrap;gap:10px}.sos-el-template-list button{display:grid;gap:3px;text-align:right}.sos-el-template-list small{opacity:.7}.sos-el-design-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.sos-el-design{cursor:pointer;border:1px solid #ddd;border-radius:12px;background:#fff;padding:8px;display:grid;gap:8px}.sos-el-design.is-active{outline:2px solid currentColor}.sos-el-design span{aspect-ratio:1.4;display:grid;place-items:center;overflow:hidden}.sos-el-design img{max-width:100%;max-height:100%;object-fit:contain}.sos-el-upload{position:relative;display:inline-flex!important;cursor:pointer}.sos-el-upload input{position:absolute;opacity:0;pointer-events:none}.sos-el-png-preview{display:flex;align-items:center;gap:10px;margin-top:10px}.sos-el-png-preview img{width:60px;height:60px;object-fit:contain}.sos-el-swatches button{width:32px;height:32px;border-radius:50%;border:1px solid #ccc;background:var(--sos-swatch);cursor:pointer}.sos-el-swatches button.is-active{outline:3px solid rgba(0,0,0,.18);outline-offset:2px}.sos-el-preview-wrap{direction:rtl}.sos-el-preview-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.sos-el-preview-stage{background:#f3f3f3;display:grid;place-items:center;overflow:hidden;min-height:300px;border-radius:12px}.sos-el-preview-stage svg{display:block;width:min(100%,760px);height:auto;max-height:75vh;background:#fff;box-shadow:0 4px 24px rgba(0,0,0,.12)}.sos-el-summary{display:grid;gap:8px}.sos-el-summary>div{display:flex;justify-content:space-between;gap:15px}.sos-el-order{display:grid;gap:12px}.sos-el-submit{font-weight:700}.sos-el-message.is-error{color:#b42318}.sos-el-message.is-success{color:#067647}@media(max-width:767px){.sos-el-design-list{grid-template-columns:repeat(2,minmax(0,1fr))}.sos-el-preview-stage{min-height:220px}}

.sos-el-font-size-select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;}

.sos-el-font-size-inline{display:flex;align-items:center;gap:10px;margin-top:12px}.sos-el-font-size-inline .sos-el-font-size-select{min-width:120px;max-width:180px}

/* v0.43 polished customer PNG upload */
.sos-el-upload-card{display:grid;gap:14px;padding:20px;border:1px solid #e8e8ee;border-radius:16px;background:#fff;box-shadow:0 6px 22px rgba(16,24,40,.05)}
.sos-el-upload-copy{display:grid;gap:5px}.sos-el-upload-copy .sos-el-title{font-size:18px;margin:0}.sos-el-upload-meta{font-size:14px;opacity:.78}.sos-el-upload-tip{font-size:13px;line-height:1.55;opacity:.72}
.sos-el-upload{position:relative;display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;box-sizing:border-box;padding:12px 18px;border:1px solid currentColor;border-radius:12px;background:#fff;font-weight:700;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.sos-el-upload:hover{transform:translateY(-1px);box-shadow:0 5px 15px rgba(16,24,40,.08)}.sos-el-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.sos-el-upload-icon{font-size:20px;line-height:1}
.sos-el-png-preview{align-items:center;gap:12px;padding:10px;border:1px solid #ececf1;border-radius:12px;background:#fafafa}.sos-el-png-preview:not([hidden]){display:flex}.sos-el-png-preview img{width:72px;height:72px;object-fit:contain;border-radius:9px;background:#fff}.sos-el-png-info{display:grid;gap:7px;min-width:0}.sos-el-png-info [data-sos-png-name]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sos-el-png-info button{justify-self:start;border:0;background:transparent;text-decoration:underline;cursor:pointer;padding:0}
@media(max-width:767px){.sos-el-upload-card{padding:16px}.sos-el-upload{min-height:56px}.sos-el-upload-copy .sos-el-title{font-size:17px}}

/* v0.45 Smart Master / app-like preview */
.sos-el-preview-wrap.sos-master-preview .sos-el-preview-stage{min-height:520px;display:flex;align-items:center;justify-content:center;background:#f3f4f5;padding:18px}
.sos-el-preview-wrap.sos-master-preview [data-sos-preview-svg]{width:100%;max-height:72vh;background:#fff;box-shadow:0 12px 34px rgba(0,0,0,.10)}
.sos-el-preview-wrap{direction:rtl}
@media(max-width:767px){
 .sos-el-preview-wrap.sos-master-preview .sos-el-preview-stage{min-height:260px;padding:8px}
 .sos-el-preview-wrap.sos-master-preview [data-sos-preview-svg]{max-height:38vh}
}

/* v0.46 visual template cards + larger font library */
.sos-el-template-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}
.sos-el-template-list button{padding:8px;overflow:hidden;text-align:right;align-content:start;gap:8px;position:relative}
.sos-el-template-thumb{display:grid;place-items:center;width:100%;aspect-ratio:420/297;background:#f7f8fa;border:1px solid #eceef2;border-radius:8px;overflow:hidden}
.sos-el-template-thumb img{width:100%;height:100%;object-fit:contain;background:#fff}
.sos-el-template-copy{display:grid;gap:2px;padding:0 3px 3px}
.sos-el-template-list button.is-active:after{content:'✓';position:absolute;top:13px;left:13px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);font-weight:800}
.sos-el-template-thumb:not(:has(img)){grid-template-columns:repeat(3,1fr);gap:5px;padding:16px;box-sizing:border-box}
.sos-el-template-thumb:not(:has(img)) i{display:block;width:100%;aspect-ratio:1.8;border:2px solid currentColor;border-radius:7px;opacity:.45}
.sos-el-template-thumb--circle i{aspect-ratio:1;border-radius:50%}
.sos-el-template-thumb--mix i:nth-child(2){aspect-ratio:1;border-radius:50%}.sos-el-template-thumb--mix i:nth-child(3){border-radius:999px}
.sos-el-fonts{max-height:290px;overflow:auto;padding:2px}.sos-el-fonts button{min-width:115px}
@media(max-width:767px){.sos-el-template-list{grid-template-columns:repeat(2,minmax(0,1fr))}.sos-el-fonts{max-height:240px}}

/* v0.50 - Customer preview: representatives only + mobile-first layout */
.sos-el-preview-wrap.sos-master-preview .sos-el-preview-stage{
  min-height:340px;
  padding:18px;
  background:#f6f7f8;
}
.sos-el-preview-wrap.sos-master-preview [data-sos-preview-svg]{
  width:min(100%,820px);
  max-height:none;
  border-radius:14px;
  box-shadow:none;
}
.sos-el-preview-head{align-items:center;flex-wrap:wrap}
.sos-el-template-copy small{font-size:.88em}
@media(max-width:767px){
  .sos-el-preview-wrap.sos-master-preview .sos-el-preview-stage{
    min-height:0;
    padding:10px;
    border-radius:14px;
  }
  .sos-el-preview-wrap.sos-master-preview [data-sos-preview-svg]{
    width:100%;
    max-height:none;
  }
  .sos-el-preview-head{
    gap:6px;
    margin-bottom:8px;
    font-size:14px;
  }
  .sos-el-template-list{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    gap:10px;
    padding-bottom:6px;
    -webkit-overflow-scrolling:touch;
  }
  .sos-el-template-list button{
    flex:0 0 min(76vw,230px);
    scroll-snap-align:start;
  }
  .sos-el-template-thumb{aspect-ratio:420/297}
}

/* v0.54 - Free-flow Elementor designer (no Stepper / no Wizard) */
.sos-el-preview-wrap[data-sos-sticky="1"]{position:sticky;top:20px;z-index:4}
.sos-el-summary-line{display:block!important;padding:11px 13px;border-radius:10px;background:#f9fafb;font-weight:800;text-align:center;margin-bottom:3px}
.sos-el-fonts:not(.is-expanded) button:nth-child(n+7){display:none}.sos-el-font-more{margin-top:10px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;padding:8px 12px;cursor:pointer;font-weight:700}

@media(max-width:767px){
 .sos-el-preview-wrap[data-sos-sticky="1"]{top:0;z-index:10;background:#fff;padding:7px 0;box-shadow:0 7px 18px rgba(16,24,40,.06)}
 .sos-el-preview-wrap[data-sos-sticky="1"] .sos-el-preview-head{margin:0 8px 6px}.sos-el-preview-wrap[data-sos-sticky="1"] .sos-el-preview-stage{max-height:210px;min-height:0!important}.sos-el-preview-wrap[data-sos-sticky="1"] [data-sos-preview-svg]{max-height:200px;width:100%}
}

/* v0.54 - Custom Sticker / KISS CUT Builder */
.sos-custom-card{direction:rtl;display:grid;gap:12px}.sos-custom-card p,.sos-custom-card small{margin:0;color:#667085}
.sos-cut-modes,.sos-qty-presets{display:flex;flex-wrap:wrap;gap:8px}.sos-cut-modes button,.sos-qty-presets button{border:1px solid #d0d5dd;background:#fff;border-radius:10px;padding:9px 12px;cursor:pointer}.sos-cut-modes button.is-active{border-color:#ff2b88;box-shadow:0 0 0 2px rgba(255,43,136,.12);font-weight:800}
.sos-custom-card input[type=number],.sos-custom-card input[type=text],.sos-custom-card input[type=tel],.sos-custom-card textarea{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:10px;padding:10px;margin-top:5px}.sos-size-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sos-lock{display:flex!important;align-items:center;gap:7px}.sos-lock input{width:auto!important;margin:0!important}.sos-custom-summary{padding:12px;border-radius:10px;background:#f9fafb;font-weight:800;text-align:center}
.sos-custom-preview{direction:rtl;border-radius:16px;background:#fff;padding:14px}.sos-custom-preview svg{display:block;width:100%;max-height:520px;border-radius:14px;background:#f7f7f8}.sos-cut-legend{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:12px;color:#667085}.sos-cut-legend i{width:24px;border-top:2px solid #ff00ff}.sos-custom-card [data-custom-file-name]{font-size:13px;font-weight:700;color:#027a48;overflow-wrap:anywhere}
@media(max-width:767px){.sos-size-grid{grid-template-columns:1fr}.sos-custom-preview{padding:8px}.sos-custom-preview svg{max-height:300px}.sos-cut-modes button{flex:1 1 100%}}
