/*! Copyright (c) 2026 StickerMint LLC. All rights reserved. Proprietary software. See LICENSE.txt. Third-party components retain their respective licenses. */
/* ── phone workspace ─────────────────────────────────────────────────────── */
html.sx-app .sm-codex #stickerStudio .sms-editor{grid-template-rows:48px 78px minmax(0,1fr) auto!important;overflow:hidden!important}

/* big tool tabs */
html.sx-app .sm-codex #stickerStudio .sms-toolstrip{grid-row:2!important;height:78px!important;padding:7px 10px!important;gap:8px!important;justify-content:stretch!important;background:#fff!important}
html.sx-app .sm-codex #stickerStudio .sms-toolstrip .sm-rail-button{flex:1 1 0!important;width:auto!important;min-width:0!important;height:64px!important;min-height:64px!important;gap:6px!important;border-radius:14px!important;padding:6px 4px!important;background:var(--tm-brand-f3f7fc,#f3f7fc)!important;color:var(--tm-brand-33475f,#33475f)!important;border:0!important;box-shadow:none!important}
html.sx-app .sm-codex #stickerStudio .sms-toolstrip .sm-rail-button svg{width:27px!important;height:27px!important;stroke-width:1.8}
html.sx-app .sm-codex #stickerStudio .sms-toolstrip .sm-rail-button span{font-size:14px!important;font-weight:700!important;letter-spacing:0!important}
html.sx-app .sm-codex #stickerStudio .sms-toolstrip .sm-rail-button[aria-expanded="true"]{background:var(--tm-brand-2475db,#2475db)!important;color:var(--tm-on-2475db,white)!important}
html.sx-app .sm-codex #stickerStudio:not(.sm-has-art) .sms-toolstrip .sm-rail-button:first-child{background:var(--tm-brand-2475db,#2475db)!important;color:var(--tm-on-2475db,white)!important}
/* canvas + edit bar */
html.sx-app .sm-codex #stickerStudio .sm-canvas-workspace{grid-row:3!important;grid-column:1!important;grid-template-rows:minmax(0,1fr) auto!important;min-height:0!important}
html.sx-app .sm-codex #stickerStudio .sm-canvas-workspace>.sms-canvas-area{padding:10px 8px 60px!important;overflow:clip!important}
html.sx-app .sm-codex #stickerStudio .sm-canvas-tools{padding:4px 6px 4px!important;border-top:1px solid var(--tm-brand-e3eaf3,#e3eaf3)!important;background:#fff!important}
html.sx-app .sm-codex #stickerStudio .sm-editbar{gap:0!important;width:100%!important}
html.sx-app .sm-codex #stickerStudio .sm-editbar .sm-toolbar-action{height:60px!important;min-height:60px!important;gap:5px!important;padding:6px 2px!important;border-radius:12px!important}
html.sx-app .sm-codex #stickerStudio .sm-editbar .sm-toolbar-action svg{width:25px!important;height:25px!important}
html.sx-app .sm-codex #stickerStudio .sm-editbar .sm-toolbar-action span{font-size:12px!important;font-weight:600!important}
/* floating Check design / Share (bottom-left) and zoom (bottom-right) on the canvas */
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities{position:absolute!important;left:10px!important;right:10px!important;bottom:10px!important;z-index:34!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;margin:0!important;padding:0!important;flex:none!important;pointer-events:none}
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities>*{pointer-events:auto}
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities #sxCheckDesign,html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities #btnShareLink{position:static!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;border:1px solid var(--tm-brand-d6e3f1,#d6e3f1)!important;background:var(--tm-workspace)!important;box-shadow:0 3px 12px rgba(36,73,113,.16)!important;font-size:0!important;color:var(--tm-brand-2b3d55,#2b3d55)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;transform:none!important;box-sizing:border-box!important}
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities #sxCheckDesign svg,html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities #btnShareLink svg{width:20px!important;height:20px!important;margin:0!important}
html.sx-app .sm-codex #stickerStudio #btnDownload,html.sx-app .sm-codex #stickerStudio #sxCheckDesign span{display:none!important}
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities #smsZoomControls{position:static!important;margin-left:auto!important;display:flex!important;align-items:center!important;height:44px!important;min-height:44px!important;transform:none!important;box-sizing:border-box!important;padding:2px!important;border-radius:999px!important;border:1px solid var(--tm-brand-d6e3f1,#d6e3f1)!important;background:var(--tm-workspace)!important;box-shadow:0 3px 12px rgba(36,73,113,.16)!important}
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities #smsZoomControls .sms-zb{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;border:0!important;border-radius:50%!important;background:var(--tm-workspace)!important;font-size:20px!important;font-weight:600!important;color:var(--tm-brand-2b3d55,#2b3d55)!important}
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities #smsZoomControls #btnZoomReset{width:auto!important;min-width:48px!important;font-size:13px!important;border-radius:999px!important}
html.sx-app.sx-editing .sm-codex #stickerStudio .sms-canvas-area>.sm-canvas-utilities{display:none!important}
html.sx-app .sm-codex #stickerStudio:not(.sm-has-art) .sms-canvas-area>.sm-canvas-utilities{display:none!important}
/* resolution note: only when it matters (low / cut problem), as a chip above the floating buttons */
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>#smCodexFeedback{position:absolute!important;left:50%!important;right:auto!important;bottom:62px!important;transform:translateX(-50%)!important;max-width:calc(100% - 24px)!important;width:max-content!important;padding:7px 12px!important;border-radius:10px!important;background:var(--tm-workspace)!important;border:1px solid #f5d48a!important;color:#7a5204!important;font-size:12px!important;line-height:1.35!important;text-align:center!important;z-index:33!important;box-shadow:0 3px 10px rgba(0,0,0,.08)!important}
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>#smCodexFeedback:not([data-level="low"]){display:none!important}
html.sx-app.sx-editing .sm-codex #stickerStudio .sms-canvas-area>#smCodexFeedback{display:none!important}
/* One bottom row: Check design, Share, Enhance/DPI, then Zoom. */
html.sx-app .sm-codex #stickerStudio .sm-canvas-utilities>.sx-enh-float{position:static!important;inset:auto!important;flex:0 0 auto!important;width:clamp(60px,calc(100vw - 260px),100px)!important;max-width:none!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font-family:Inter,Arial,sans-serif!important}
html.sx-app .sm-codex #stickerStudio .sx-enh-float .sx-enh-row{position:relative;display:block;min-height:44px;height:44px}
html.sx-app .sm-codex #stickerStudio .sx-enh-float #sxEnhBtn{justify-content:center;width:100%!important;height:44px!important;min-height:44px!important;padding:0 4px 14px!important;gap:4px!important;font-size:11px!important;border-radius:10px!important}
html.sx-app .sm-codex #stickerStudio .sx-enh-float #sxEnhDpi{position:absolute;left:0;right:0;bottom:5px;min-width:0;max-width:100%;padding:0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:10px;line-height:12px;pointer-events:none}
html.sx-app .sm-codex #stickerStudio .sx-enh-float #sxEnhDpi b{color:inherit}
html.sx-app .sm-codex #stickerStudio .sx-enh-float:has(#sxEnhBtn.sx-go) #sxEnhDpi{color:#fff}
html.sx-app .sm-codex #stickerStudio .sx-enh-float .sx-enh-detail{display:none}
html.sx-app.sx-editing .sm-codex #stickerStudio .sms-canvas-area .sx-enh-float,
html.sx-app .sm-codex #stickerStudio:has(#sxLayers.open,#smToolPanel:not([hidden])) .sms-canvas-area .sx-enh-float,
html.sx-app .sm-codex #stickerStudio .sms-canvas-area:has(>#smCodexFeedback[data-kind="error"][data-level="low"]) .sx-enh-float{display:none!important}
html.sx-app .sm-codex #stickerStudio .sms-canvas-area>#smCodexFeedback[data-kind="quality"]{display:none!important}
@media(max-width:359px){
 html.sx-app .sm-codex #stickerStudio .sx-enh-float #sxEnhBtn svg{display:none}
}
html.sx-app .sm-codex #stickerStudio .sms-config{grid-row:4!important;height:auto!important;grid-template-rows:auto!important;padding:0 12px calc(env(safe-area-inset-bottom)) !important;border-top:1px solid var(--tm-brand-e3eaf3,#e3eaf3)!important}
html.sx-app .sm-codex #stickerStudio .sms-config>.sms-config-section{display:none!important}
html.sx-app .sm-codex #stickerStudio .sms-price-box{grid-row:1!important;border-top:0!important;padding:10px 0 12px!important;grid-template-columns:auto minmax(0,1fr) auto!important;column-gap:12px!important}
html.sx-app .sm-codex #stickerStudio #btnATCBottom{height:52px!important;min-height:52px!important;font-size:17px!important;border-radius:14px!important}
html.sx-app .sm-codex #stickerStudio #sxCartBtn{height:52px!important;min-height:52px!important;width:52px!important;border-radius:14px!important}
html.sx-app .sm-codex #stickerStudio #sxCartBtn svg{width:22px!important;height:22px!important}
html.sx-app .sm-codex #stickerStudio .sms-price-total{font-size:25px!important}
html.sx-app .sm-codex #stickerStudio #unitPrice{font-size:12px!important}
/* bottom-sheet drawers sit above the bottom bar */
html.sx-app .sm-codex #stickerStudio .sm-tool-panel{max-height:52vh!important}

/* Shape silhouettes share the header's SVG geometry, including Die-cut. */

/* tool drawers: full-width bottom sheet; the sticker slides up above it (dev-studio-phone.js) */
html.sx-app .sm-codex #stickerStudio .sm-tool-panel{left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;max-width:none!important;margin:0!important;max-height:46vh!important;border:0!important;border-radius:20px 20px 0 0!important;box-shadow:0 -10px 30px rgba(16,42,77,.18)!important;padding-bottom:env(safe-area-inset-bottom)!important;z-index:150!important}
html.sx-app .sm-codex #stickerStudio .sm-tool-panel .sm-panel-head{position:sticky!important;top:0!important;z-index:2!important;background:#fff!important;padding:16px 16px 8px!important}
html.sx-app .sm-codex #stickerStudio .sm-tool-panel .sm-panel-head:before{content:"";position:absolute;top:6px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:var(--tm-brand-d3dce8,#d3dce8)}
html.sx-app .sm-codex #stickerStudio .sm-tool-panel .sm-panel-head small{display:none!important}
html.sx-app .sm-codex #stickerStudio .sm-tool-panel .sm-panel-head strong{font-size:18px!important}
html.sx-app .sm-codex #stickerStudio .sm-tool-panel .sms-tool-group{padding:8px 16px 16px!important}
html.sx-app .sm-codex #stickerStudio #previewArea{transition:transform .25s ease}
/* the old bottom-sheet drag handle under the price (a stray grey bar) */
@media(max-width:768px){.sm-codex #stickerStudio .sms-config::before{display:none!important;content:none!important}}
html.sx-app .sm-codex #stickerStudio .sm-tool-panel .sm-panel-close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;font-size:22px!important}
html.sx-app .sm-codex #stickerStudio #btnDoneAdjust{min-height:44px!important;height:44px!important;padding:0 22px!important;font-size:16px!important;border-radius:12px!important}
html.sx-app #sl2-proof-ol [data-sx-enh]{min-height:40px!important;padding:0 14px!important}
html.sx-app .sm-codex #stickerStudio .sms-price-box{grid-template-rows:auto auto!important;row-gap:0!important;align-items:center!important;align-content:center!important;min-height:76px!important;height:auto!important}

/* One mobile workspace: desktop categories, one total and one purchase action. */
@media(max-width:768px){
 .sm-codex .sm-codex-bar{height:64px!important;padding:8px 10px!important;gap:8px!important;justify-content:space-between!important}
 .sm-codex .sm-codex-bar .sm-codex-brand{margin:0!important;width:128px!important;min-width:72px;flex:1 1 128px;max-width:144px;justify-content:center;overflow:hidden}
 .sm-codex .sm-codex-actions{display:flex!important;align-items:center;gap:6px!important;flex:none;min-width:0}
 .sm-codex .sm-codex-actions .sm-back-shop,.sm-codex .sm-codex-actions .sm-codex-status{display:none!important}
 #sxHeaderTotal{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:52px;gap:3px;color:var(--tm-brand-264e79,#264e79)}
 #sxHeaderTotal[hidden]{display:none!important}
 #sxHeaderTotal span{font:600 10px/1 Inter,Arial,sans-serif;color:#8294a9;text-transform:uppercase;letter-spacing:.6px}
 #sxHeaderTotal strong{font:800 18px/1.1 Inter,Arial,sans-serif;white-space:nowrap}
 .sm-codex .sm-codex-actions #smCodexHelp{display:none!important}
 .sm-codex .sm-codex-actions #sxCartBtn{display:grid!important;place-items:center;position:relative;flex:none;height:44px!important;min-height:44px!important;width:44px!important;min-width:44px!important;padding:6px!important;border:1px solid #dedfe2!important;border-radius:10px;background:#f6f6f7!important;color:#4b4f55!important;font:600 12px/1.2 Inter,Arial,sans-serif!important}
 .sm-codex .sm-codex-actions #sxCartBtn svg{width:22px;height:22px}
 .sm-codex .sm-codex-actions #sxCartBtn:hover{background:#ededf0!important;color:#303338!important}
 .sm-codex .sm-codex-actions #sxCartBtn:focus-visible{outline:2px solid #676b72;outline-offset:2px}
 html.sx-app .sm-codex #stickerStudio .sms-editor{inset:64px 0 0!important;top:64px!important;height:calc(100dvh - 64px)!important;grid-template-rows:42px 80px minmax(0,1fr) 62px!important;overflow:hidden!important}
 html.sx-app .sm-codex #stickerStudio .sms-toolstrip{display:none!important}
 html.sx-app .sm-codex #stickerStudio .sm-tool-rail{grid-row:2;grid-column:1;display:flex;flex-direction:row;align-items:center;gap:6px;min-width:0;padding:6px 10px;background:var(--tm-brand-f3f4f7,#f3f4f7);border-bottom:1px solid var(--tm-brand-e0e4eb,#e0e4eb);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--tm-brand-c7d7e9,#c7d7e9) transparent}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 80px;gap:6px;height:62px;min-height:62px;padding:6px 2px;border:1px solid transparent;border-radius:11px;background:transparent;color:#626b78;font:600 11px/1.25 Inter,Arial,sans-serif;cursor:pointer}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category svg{width:26px;height:26px;flex:none;color:var(--tm-brand-528bd0,#528bd0);stroke-width:1.8}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category:hover,html.sx-app .sm-codex #stickerStudio .sm-tool-category[aria-expanded=true]{background:var(--tm-brand-e1ecfd,#e1ecfd);border-color:var(--tm-brand-bfd5f3,#bfd5f3);color:var(--tm-brand-246cc3,#246cc3)}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category:focus-visible{outline:2px solid var(--tm-brand-4389df,#4389df);outline-offset:-2px}
 html.sx-app .sm-codex #stickerStudio .sms-config{grid-row:4!important;padding:6px 12px calc(6px + env(safe-area-inset-bottom))!important;min-height:62px!important}
 html.sx-app .sm-codex #stickerStudio .sms-price-box{display:flex!important;align-items:center!important;min-height:0!important;height:auto!important;padding:0!important;width:100%!important}
 html.sx-app .sm-codex #stickerStudio .sms-price-box>:not(#btnATCBottom){display:none!important}
 html.sx-app .sm-codex #stickerStudio #btnATCBottom{width:100%!important;flex:1!important;min-height:48px!important;height:48px!important;border-radius:11px!important;font-size:16px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel{max-height:72dvh!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:16px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel[hidden],html.sx-app .sm-codex #stickerStudio #smToolPanel [hidden]{display:none!important}
 html.sx-app .sm-tool-intro{padding:0 16px 8px;color:#6a7d92;font:400 13px/1.5 Inter,Arial,sans-serif}
 html.sx-app .sm-docked-tool>div{width:100%!important;max-width:none!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
 html.sx-app .sm-docked-tool>div>h3,html.sx-app .sm-docked-tool .sms-modal-close,html.sx-app .sm-docked-tool #sl2agX,html.sx-app .sm-docked-tool #sl2agCx,html.sx-app .sm-docked-tool #smsTextCancel,html.sx-app .sm-docked-tool#sl2-aigen-ol>div>div:first-child{display:none!important}
 html.sx-app .sm-docked-tool :is(input[type=text],textarea,select),html.sx-app .sm-library-controls :is(input,select){width:100%!important;min-height:44px;min-width:0;box-sizing:border-box;border:1px solid var(--tm-brand-dce3ed,#dce3ed)!important;border-radius:10px!important;background:var(--tm-brand-f8fafc,#f8fafc)!important;color:var(--tm-brand-24476f,#24476f)!important;padding:10px!important;font-size:16px!important}
 html.sx-app .sm-library-controls{display:grid;gap:8px;margin-bottom:14px}
 html.sx-app .sm-docked-tool .sm-text-font-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px}
 html.sx-app #smsTextPreview{min-height:72px!important;background:var(--tm-brand-f3f5f8,#f3f5f8)!important;border:0!important;border-radius:12px!important}
 html.sx-app .sm-docked-tool #smsTextAdd,html.sx-app .sm-docked-tool #sl2agGo,html.sx-app .sm-upload-action,html.sx-app .sm-qr-shortcut{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;width:100%;padding:10px;border:0!important;border-radius:11px!important;background:var(--tm-brand-2878dc,#2878dc)!important;color:var(--tm-on-2878dc,white)!important;font:600 15px/1.3 Inter,Arial,sans-serif!important;cursor:pointer}
 html.sx-app .sm-upload-action svg{width:24px;height:24px}
 html.sx-app .sm-upload-formats,html.sx-app .sm-upload-empty,html.sx-app .sm-library-empty{color:#6a7d92;font:400 13px/1.5 Inter,Arial,sans-serif}
 html.sx-app .sm-gallery-title{margin:18px 0 10px;font:600 13px/1.4 Inter,Arial,sans-serif;color:var(--tm-brand-536b86,#536b86)}
 html.sx-app .sm-upload-gallery{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 html.sx-app .sm-upload-thumb{display:grid;place-items:center;gap:6px;padding:8px;border:1px solid var(--tm-brand-dce3ed,#dce3ed);border-radius:10px;background:var(--tm-brand-f7f9fc,#f7f9fc);color:var(--tm-brand-536b86,#536b86)}
 html.sx-app .sm-upload-thumb img{width:100%;height:80px;object-fit:contain}
 html.sx-app #smToolPanel .sms-modal-grid,html.sx-app .sm-docked-tool div[style*="repeat(4,1fr)"]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 html.sx-app #smToolPanel :is(.sms-modal-item,.sms-template-card){display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:84px;min-width:0;padding:10px 4px!important;border:1px solid var(--tm-brand-e1e6ee,#e1e6ee)!important;border-radius:11px!important;background:#f3f4f6!important;color:var(--tm-brand-536b86,#536b86)}
 html.sx-app #smToolPanel :is(.sms-modal-item,.sms-template-card)>svg,html.sx-app #smToolPanel .sms-tpl-icon{width:32px!important;height:32px!important;margin:0!important}
 html.sx-app #smToolPanel :is(.sms-modal-item,.sms-template-card) span{font-size:12px!important;line-height:1.3;overflow-wrap:anywhere}
 html.sx-app #smToolPanel :is(.sms-tool-icon,.sms-tool-action){height:56px!important;min-height:56px!important;padding:6px 3px!important;gap:5px!important}
 html.sx-app #smToolPanel :is(.sms-tool-icon,.sms-tool-action) svg{width:23px!important;height:23px!important}
 html.sx-app #smToolPanel :is(.sms-tool-icon,.sms-tool-action) span{font-size:12px!important;line-height:1.25!important}
 html.sx-app #smToolPanel .sms-tool-group-label{font-size:12px!important;line-height:1.4!important;text-align:left;margin-bottom:10px!important}
 html.sx-app #smToolPanel .sl2-ag-chip{min-height:40px;border:1px solid var(--tm-brand-e1e6ee,#e1e6ee)!important;border-radius:9px;background:#f3f4f6!important;color:#637183!important;font-size:12px!important}
 html.sx-app #smToolPanel .sl2-ag-chip.sl2-ag-active,html.sx-app #smToolPanel .sl2-ag-chip:hover{background:var(--tm-brand-e1edff,#e1edff)!important;border-color:var(--tm-brand-9cbff0,#9cbff0)!important;color:var(--tm-brand-226ecb,#226ecb)!important}
 html.sx-app .sm-codex #stickerStudio .sm-editbar{overflow-x:auto!important;scrollbar-width:none;justify-content:flex-start!important}
 html.sx-app .sm-codex #stickerStudio .sm-editbar .sm-toolbar-action{flex:0 0 48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;gap:4px!important}
 html.sx-app .sm-codex #stickerStudio .sm-editbar .sm-toolbar-action svg{width:22px!important;height:22px!important}
 html.sx-app .sm-codex #stickerStudio .sm-editbar .sm-toolbar-action span{font-size:10px!important}
 html.sx-app #stickerStudio:has(#sxLayers.open) #smsTextToolbar,html.sx-app #stickerStudio:has(#smToolPanel:not([hidden])) #smsTextToolbar{display:none!important}
}
@media(max-width:768px) and (max-height:500px){
 html.sx-app .sm-codex #stickerStudio .sms-editor{grid-template-rows:36px 68px minmax(260px,1fr) 56px!important;overflow-y:auto!important;overscroll-behavior:contain}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category{height:54px;min-height:54px}
 html.sx-app .sm-codex #stickerStudio .sms-config{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;min-height:56px!important;height:56px!important;padding:4px 12px!important;z-index:1000}
 html.sx-app .sm-codex #stickerStudio #btnATCBottom{min-height:48px!important;height:48px!important}
}

/* Merchant finish labels remain readable alongside their swatches. */

/* One bottom menu: scrolling edit tools and a purchase action pinned on the
   right. Start Over remains in the canvas; its hidden Reset handler is reused. */
@media(max-width:768px){
 html.sx-app #stickerStudio{--sm-mobile-toolbar-height:calc(62px + env(safe-area-inset-bottom))}
 html.sx-app .sm-codex #stickerStudio .sms-editor{grid-template-rows:var(--sm-mobile-specs-height,102px) var(--sm-mobile-categories-height,64px) minmax(0,1fr)!important}
 html.sx-app .sm-codex #stickerStudio .sms-config{display:none!important}
 html.sx-app .sm-codex #stickerStudio .sm-canvas-tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px;align-items:center;column-gap:8px;row-gap:0;min-height:var(--sm-mobile-toolbar-height);height:var(--sm-mobile-toolbar-height);padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;background:#fff!important}
 html.sx-app .sm-codex #stickerStudio .sm-editbar{grid-column:1;grid-row:1;min-width:0!important;width:100%!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
 html.sx-app .sm-codex #stickerStudio .sm-editbar::-webkit-scrollbar{display:none}
 html.sx-app .sm-codex #stickerStudio .sm-editbar>#btnStartOver{display:none!important}
 html.sx-app .sm-codex #stickerStudio .sm-canvas-tools>#btnATCBottom{grid-column:2!important;grid-row:1!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;flex:none!important;width:124px!important;min-width:112px!important;max-width:128px;min-height:48px!important;height:48px!important;padding:8px 10px!important;margin:0!important;position:relative!important;inset:auto!important;align-self:center!important;border-radius:10px!important;font-size:13px!important;line-height:1.2!important;white-space:nowrap!important}
 html.sx-app .sm-codex #stickerStudio .sm-canvas-tools>#btnATCBottom svg{flex:none;width:18px;height:18px}
 html.sx-app .sm-codex #stickerStudio #smToolPanel{bottom:var(--sm-mobile-toolbar-height)!important;max-height:min(72dvh,calc(100% - var(--sm-mobile-toolbar-height)))!important}
}
@media(max-width:768px) and (max-height:500px){
 html.sx-app .sm-codex #stickerStudio .sms-editor{grid-template-rows:var(--sm-mobile-specs-height,94px) var(--sm-mobile-categories-height,64px) minmax(0,1fr)!important;overflow:hidden!important}
}

/* Preserve the desktop rows; phones combine all text colors into one strip. */
.sm-codex #stickerStudio #smsTbPalette{display:contents}
/* Phone editing tools share the studio's light surfaces and blue selection. */
@media(max-width:768px){
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar{
  left:8px!important;right:8px!important;top:auto!important;bottom:8px!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  max-height:min(44dvh,calc(100% - 68px))!important;
  margin:0!important;padding:8px!important;gap:0!important;
  transform:none!important;border:1px solid var(--tm-brand-d4dfed,#d4dfed)!important;border-radius:13px!important;
  background:#fff!important;color:var(--tm-brand-24476d,#24476d)!important;
  box-shadow:0 5px 22px rgba(25,54,91,.14)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  z-index:70!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 }
 html.sx-app .sm-codex #stickerStudio #smsTbRow1{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  flex:0 0 auto!important;min-width:0!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;
  padding:1px 0 4px!important;scrollbar-width:none;overscroll-behavior-x:contain;
 }
 html.sx-app .sm-codex #stickerStudio #smsTbRow1::-webkit-scrollbar,
 html.sx-app .sm-codex #stickerStudio #smsTbPalette::-webkit-scrollbar{display:none}
 html.sx-app .sm-codex #stickerStudio #smsTbRow1>.sms-tbi{
  min-height:44px!important;height:44px!important;margin:0!important;
  padding:8px!important;border:1px solid var(--tm-brand-d6e0ed,#d6e0ed)!important;border-radius:8px!important;
  background:var(--tm-brand-f5f8fc,#f5f8fc)!important;color:var(--tm-brand-24476d,#24476d)!important;font-size:16px!important;line-height:1.2!important;
 }
 html.sx-app .sm-codex #stickerStudio #smsTbFont{flex:1 0 90px!important;min-width:90px!important;max-width:none!important;width:90px!important;text-overflow:ellipsis}
 html.sx-app .sm-codex #stickerStudio #smsTbSize{flex:0 0 48px!important;width:48px!important;min-width:48px!important;text-align:center;padding:8px 2px!important}
 html.sx-app .sm-codex #stickerStudio #smsTbRow1>.sms-tbb{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;border:1px solid var(--tm-brand-d6e0ed,#d6e0ed)!important;border-radius:8px!important;
  background:var(--tm-brand-f5f8fc,#f5f8fc)!important;color:var(--tm-brand-24476d,#24476d)!important;font-size:16px!important;line-height:1!important;
  text-shadow:none!important;box-shadow:none!important;
 }
 html.sx-app .sm-codex #stickerStudio #smsTbRow1>.sms-tbb[aria-pressed=true]{background:var(--tm-brand-e6f0ff,#e6f0ff)!important;border-color:var(--tm-brand-8fb8f1,#8fb8f1)!important;color:var(--tm-brand-1a64ca,#1a64ca)!important}
 html.sx-app .sm-codex #stickerStudio #smsTbRow1>div{display:none!important}
 html.sx-app .sm-codex #stickerStudio #smsTbPalette{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;
  flex:0 0 auto!important;width:100%!important;min-width:0!important;min-height:46px!important;gap:3px!important;margin:3px 0 0!important;padding:1px 0!important;
  overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:none;
  touch-action:pan-x;-webkit-overflow-scrolling:touch;
 }
 html.sx-app .sm-codex #stickerStudio #smsTbSwatches,
 html.sx-app .sm-codex #stickerStudio #smsTbGradients{display:contents!important}
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar .sms-swlbl{display:none!important}
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar :is(.sms-csw,.sms-gsw){
  display:inline-block!important;flex:0 0 44px!important;width:44px!important;height:44px!important;
  margin:0!important;padding:7px!important;box-sizing:border-box!important;border:1px solid transparent!important;border-radius:50%!important;
  background-clip:content-box!important;transform:none!important;box-shadow:none!important;cursor:pointer;
 }
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar :is(.sms-csw,.sms-gsw)[aria-pressed=true]{border-color:var(--tm-brand-2878dc,#2878dc)!important;background-color:var(--tm-brand-eff5ff,#eff5ff)}
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar :is(.sms-csw,.sms-gsw):focus-visible{outline:2px solid var(--tm-brand-2878dc,#2878dc)!important;outline-offset:-2px!important}
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar .sms-csw[data-c="#ffffff"]{box-shadow:inset 0 0 0 8px var(--tm-brand-f2f5f9,#f2f5f9)!important}
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar :is(#smsTbColor,#smsTbStrokeColor){
  flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;border:1px solid var(--tm-brand-ccd9e9,#ccd9e9)!important;border-radius:50%!important;
  background:conic-gradient(#ff6464,#ffd65d,#61ce9a,var(--tm-brand-58b8f5,#58b8f5),#ab7be3,#ff6464)!important;
  cursor:pointer;overflow:hidden;-webkit-appearance:none;appearance:none;
 }
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar :is(#smsTbColor,#smsTbStrokeColor)::-webkit-color-swatch-wrapper{padding:8px!important;border-radius:50%!important}
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar :is(#smsTbColor,#smsTbStrokeColor)::-webkit-color-swatch{border:1px solid rgba(35,62,96,.25)!important;border-radius:50%!important}
 html.sx-app .sm-codex #stickerStudio #smsTextToolbar :is(#smsTbColor,#smsTbStrokeColor)::-moz-color-swatch{margin:7px;border:1px solid rgba(35,62,96,.25)!important;border-radius:50%!important}

 /* Background takes only its content height and stays above purchase. */
 html.sx-app .sm-codex #stickerStudio #smToolPanel:has(.sm-background-tools:not([hidden])){
  height:auto!important;min-height:0!important;
  max-height:min(56dvh,calc(100% - var(--sm-mobile-toolbar-height)))!important;
  padding-bottom:10px!important;border-radius:15px 15px 0 0!important;
  background:#fff!important;box-shadow:0 -5px 22px rgba(25,54,91,.14)!important;
 }
 html.sx-app .sm-codex #stickerStudio #smToolPanel:has(.sm-background-tools:not([hidden])) .sm-panel-head{padding:10px 14px 2px!important;min-height:54px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel:has(.sm-background-tools:not([hidden])) .sm-panel-head strong{font-size:17px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel:has(.sm-background-tools:not([hidden])) .sm-tool-intro{padding:0 14px 6px!important;color:#5d728b;font-size:12px;line-height:1.4}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools{padding:4px 14px 2px!important;border:0!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools>.sms-tool-group-label{margin:0 0 6px!important;font-size:11px!important;line-height:1.4!important;color:#5d728b!important;letter-spacing:.2px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #smsBorderColorRow{margin:11px 0 0!important;padding:10px 0 0!important;border-top:1px solid var(--tm-brand-e3eaf3,#e3eaf3)!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #smsBorderColorRow>.sms-tool-group-label{margin:0 0 5px!important;font-size:11px!important;color:#5d728b!important;letter-spacing:.2px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #smsBorderColorRow>div{display:grid!important;grid-template-columns:repeat(8,minmax(0,36px))!important;align-items:center!important;gap:5px!important;overflow:visible!important;padding:3px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #smsBorderColorRow :is(.sms-border-color-btn,#smsBorderColorCustom){width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-width:36px!important;aspect-ratio:1/1!important;border-radius:50%!important;transform:none!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #smsBorderColorCustom::-webkit-color-swatch-wrapper{padding:4px!important;border-radius:50%!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #smsBorderColorCustom::-webkit-color-swatch{border-radius:50%!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #smsBorderColorCustom::-moz-color-swatch{border-radius:50%!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #bgStatus{margin:7px 0 0!important;padding:0!important;font-size:12px!important;line-height:1.45!important;color:#5d728b!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #bgStatus:empty{display:none!important}
}

/* Every mobile design category is visible without scrolling. */
@media(max-width:768px){
 html.sx-app #stickerStudio{--sm-mobile-categories-height:64px;--sm-mobile-specs-height:102px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-rail{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;gap:4px;padding:4px 8px;overflow:visible;scrollbar-width:none}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category{box-sizing:border-box;flex:0 0 auto;width:auto;min-width:30px;height:56px;min-height:56px;padding:4px;gap:3px;border-radius:9px;touch-action:manipulation}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category svg{width:22px;height:22px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category span{display:flex;align-items:center;justify-content:center;min-height:24px;max-width:100%;font-size:clamp(9px,2.4vw,11px);line-height:12px;letter-spacing:-.25px;text-align:center;white-space:nowrap}
 html.sx-app .sm-codex #stickerStudio #smToolPanel{max-height:min(72dvh,calc(100% - var(--sm-mobile-toolbar-height) - var(--sm-mobile-categories-height) - var(--sm-mobile-specs-height,102px)))!important}
}
@media(max-width:359px){
 html.sx-app #stickerStudio{--sm-mobile-categories-height:108px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-rail{flex-wrap:wrap;justify-content:center;align-content:center;gap:4px 12px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category{height:48px;min-height:48px;gap:3px;padding:4px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category svg{width:20px;height:20px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category span{min-height:14px;font-size:10px;line-height:14px;letter-spacing:-.2px;white-space:nowrap}
}
@media(max-width:768px) and (max-height:500px){
 html.sx-app .sm-codex #stickerStudio #smToolPanel{max-height:min(72dvh,calc(100% - var(--sm-mobile-toolbar-height) - var(--sm-mobile-categories-height) - var(--sm-mobile-specs-height,94px)))!important}
}

/* Both tool icons and the circular palette stay visible in one compact panel. */
@media(max-width:768px){
 html.sx-app .sm-codex #stickerStudio #smToolPanel:has(.sm-background-tools:not([hidden])) .sm-tool-intro{display:none!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools .sm-bg-remove-panel{display:block!important;margin:0!important;padding:0!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools .sm-bg-remove-panel>.sms-tool-group-icons{display:grid!important;grid-template-columns:repeat(5,minmax(44px,1fr))!important;gap:6px!important;width:100%!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools .sm-bg-remove-panel>.sms-tool-group-icons>[data-bg]{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;grid-column:auto!important;width:100%!important;min-width:44px!important;max-width:none!important;height:52px!important;min-height:52px!important;margin:0!important;padding:5px 2px!important;gap:3px!important;border-radius:9px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools .sm-bg-remove-panel>.sms-tool-group-icons>[data-bg] svg{width:20px!important;height:20px!important;min-width:20px!important}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools .sm-bg-remove-panel>.sms-tool-group-icons>[data-bg] span{font-size:12px!important;line-height:1.25!important;white-space:nowrap}
 html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools .sm-bg-remove-panel>.sms-tool-group-icons>[data-bg].active{background:var(--tm-brand-e6f0ff,#e6f0ff)!important;border-color:var(--tm-brand-94baf0,#94baf0)!important;color:var(--tm-brand-1d65c4,#1d65c4)!important}
}

/* One page on phones: curved specification bar, inline menus, live total. */
.sm-spec-done{display:none}
@media(max-width:768px){
 html.sx-app .sm-codex #stickerStudio .sms-editor>.sm-spec-group{grid-row:1;grid-column:1;position:relative;z-index:160;display:grid;grid-template-columns:1fr 1.15fr 1.35fr 1.1fr;align-items:stretch;align-self:center;box-sizing:border-box;width:calc(100% - 16px);min-width:0;height:88px;margin:0 8px;padding:0;border:1px solid var(--tm-ui-border,var(--tm-brand-dfe6ef,#dfe6ef));border-radius:14px;background:var(--tm-ui-panel,#fff);box-shadow:0 2px 10px #203a630a;overflow:visible}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group>.sms-config-section{position:static!important;grid-row:1!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group>.sms-config-section+.sms-config-section{border-left:1px solid var(--tm-ui-border,var(--tm-brand-cbd7e4,#cbd7e4))!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle{position:relative;display:flex;flex-direction:column;align-items:flex-start!important;justify-content:center;gap:6px;box-sizing:border-box;width:100%;min-width:0;min-height:86px;height:100%;padding:10px 4px;border:0;border-radius:12px;background:transparent;color:var(--tm-ui-ink,var(--tm-brand-172d4b,#172d4b));text-align:left!important;touch-action:manipulation}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle[aria-expanded=true]{background:var(--tm-ui-soft,var(--tm-brand-edf4fc,#edf4fc))}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-label{display:flex;align-items:center!important;gap:3px;width:100%;margin:0;white-space:nowrap;color:var(--tm-ui-ink,var(--tm-brand-294c73,#294c73))!important;font:700 16px/20px Inter,Arial,sans-serif!important;letter-spacing:-.2px!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-label i{display:inline!important;color:var(--tm-ui-muted,#8999ae);font:500 9px/16px Inter,Arial,sans-serif!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-value{display:flex;align-items:center;gap:4px;width:100%;min-width:0;min-height:36px;height:auto}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle strong{display:block;min-width:0;max-width:100%;overflow:visible;text-overflow:clip;white-space:normal!important;overflow-wrap:anywhere;hyphens:auto;color:var(--tm-ui-ink,var(--tm-brand-172d4b,#172d4b))!important;font:700 14px/18px Inter,Arial,sans-serif!important;letter-spacing:-.2px!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group :is(.sm-shape-preview,.sm-finish-preview){display:inline-flex;width:16px;height:16px;flex:0 0 16px}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-caption,html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle>svg{display:none!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle:focus-visible{outline:2px solid var(--tm-ui-accent,var(--tm-brand-4675ad,#4675ad));outline-offset:-3px}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-options{position:absolute;inset:calc(100% + 8px) 0 auto!important;box-sizing:border-box;width:auto;max-width:none;max-height:min(58dvh,calc(100dvh - 64px - var(--sm-mobile-specs-height,102px) - 20px));margin:0;padding:16px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--tm-ui-border,var(--tm-brand-dfe6ef,#dfe6ef));border-radius:14px;background:var(--tm-ui-panel,#fff);color:var(--tm-ui-ink,var(--tm-brand-172d4b,#172d4b));box-shadow:0 10px 30px #172d4b26}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-options:not([hidden]){display:flex;flex-direction:column}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-options>*{flex-shrink:0}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-options[hidden]{display:none!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-options h3{margin:0 0 12px!important;font:700 14px/20px Inter,Arial,sans-serif!important;color:var(--tm-ui-ink,var(--tm-brand-294c73,#294c73))!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-options h3 svg{display:none}
 html.sx-app .sm-codex #stickerStudio .sm-spec-options :is(.sms-size-label,.sms-qty-pre){min-height:44px!important;height:auto!important;font-size:14px!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-options :is(input,select){min-height:44px;font-size:16px!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-options .sm-spec-done{order:1;display:block;width:100%;min-height:44px;margin:14px 0 0;padding:10px 16px;border:1px solid var(--tm-ui-border,var(--tm-brand-dfe6ef,#dfe6ef));border-radius:10px;background:var(--tm-ui-soft,var(--tm-brand-edf4fc,#edf4fc));color:var(--tm-ui-ink,var(--tm-brand-294c73,#294c73));font:600 14px/20px Inter,Arial,sans-serif;cursor:pointer}
 html.sx-app .sm-codex #stickerStudio .sm-spec-options .sm-spec-done:focus-visible{outline:2px solid var(--tm-ui-accent,var(--tm-brand-4675ad,#4675ad));outline-offset:2px}
}
@media(max-width:359px){
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle{padding-inline:5px}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-label{font-size:14px!important;gap:2px}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle strong{font-size:13px!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group :is(.sm-shape-preview,.sm-finish-preview){width:13px;height:13px;flex-basis:13px}
}
@media(max-width:768px) and (max-height:500px){html.sx-app .sm-codex #stickerStudio .sms-editor>.sm-spec-group{height:80px}html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle{min-height:78px}}

@media(max-width:768px){html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-label:after{content:"";width:3px;height:3px;flex:none;margin:0 0 2px auto;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);opacity:.8}html.sx-app .sm-codex #stickerStudio:has(.sm-spec-toggle[aria-expanded=true]) #smsTextToolbar{display:none!important}}


@media(max-width:768px) and (max-height:500px){html.sx-app #stickerStudio{--sm-mobile-specs-height:94px}}

@media(max-width:359px){html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-label i{display:none!important}}

/* Give removal and color the same visible section heading on phones. */
@media(max-width:768px){html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools>.sm-bg-remove-label,html.sx-app .sm-codex #stickerStudio #smToolPanel .sm-background-tools #smsBorderColorRow>.sms-tool-group-label{display:block!important;margin:0 0 6px!important;font-size:11px!important;line-height:1.4!important;color:#5d728b!important;letter-spacing:.2px!important}}

/* Center the mobile selector headings and selected values. */
@media(max-width:768px){html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle{align-items:center!important;text-align:center!important}html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-label{justify-content:center!important;gap:4px;text-align:center!important}html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-label:after{margin:0 0 2px 0}html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-value{justify-content:center!important}html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle strong{text-align:center!important}}

/* Every editing category, including Upload, remains reachable on phones. */
@media(max-width:768px){
 html.sx-app #stickerStudio{--sm-mobile-categories-height:72px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-rail{display:grid!important;grid-template-columns:repeat(var(--sm-tool-count),minmax(0,1fr));gap:2px;padding:4px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category{width:100%;min-width:0;height:64px;min-height:64px;padding:4px 1px;gap:3px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category[hidden]{display:none!important}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category span{min-height:26px;max-width:100%;font-size:clamp(9px,2.4vw,11px);line-height:13px;letter-spacing:-.2px;white-space:normal;overflow-wrap:normal}
}
@media(max-width:768px){
 html.sx-app .sm-codex #stickerStudio #smToolPanel{scroll-padding-top:76px;scroll-padding-bottom:16px}
 html.sx-app .sm-codex #stickerStudio #smToolPanel :is(button,input,select,textarea){scroll-margin-top:76px;scroll-margin-bottom:16px}
}
@media(max-width:768px) and (max-height:500px){
 html.sx-app .sm-codex #stickerStudio #smToolPanel{position:fixed!important;top:auto!important;left:8px!important;right:8px!important;bottom:calc(var(--sm-mobile-toolbar-height,62px) + 8px)!important;max-height:calc(100dvh - 80px - var(--sm-mobile-toolbar-height,62px))!important;z-index:180!important}
 html.sx-app #stickerStudio{--sm-mobile-specs-height:60px;--sm-mobile-categories-height:56px;--sm-mobile-toolbar-height:calc(56px + env(safe-area-inset-bottom))}
 html.sx-app .sm-codex .sm-codex-bar{height:48px!important;padding:2px 8px!important}
 html.sx-app .sm-codex #stickerStudio .sms-editor{top:48px!important;inset:48px 0 0!important;height:calc(100dvh - 48px)!important}
 html.sx-app .sm-codex #stickerStudio .sms-editor>.sm-spec-group{height:56px}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle{min-height:54px;padding:4px;gap:2px}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-label{font-size:13px!important;line-height:16px!important}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-value{min-height:18px}
 html.sx-app .sm-codex #stickerStudio .sm-spec-group .sm-spec-toggle strong{font-size:13px!important;line-height:18px!important}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category{height:48px!important;min-height:48px!important;gap:2px;padding-block:2px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category svg{width:16px!important;height:16px!important}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category span{min-height:13px}
 html.sx-app .sm-codex #stickerStudio .sm-canvas-tools{grid-template-rows:44px}
 html.sx-app .sm-codex #stickerStudio .sm-canvas-tools>#btnATCBottom{height:44px!important;min-height:44px!important}
 html.sx-app .sm-codex .sm-codex-bar:has(>.tm-deal-banner:not([hidden]))>.tm-brand-lockup{display:none!important}
 html.sx-app .sm-codex .sm-codex-bar>.tm-deal-banner{flex:1 1 auto;min-width:0;min-height:44px;padding:0;gap:6px;flex-wrap:nowrap;border:0;background:transparent}
 html.sx-app .sm-codex .sm-codex-bar>.tm-deal-banner [data-deal-description]{flex:1 1 auto;flex-basis:auto;font-size:10px;line-height:13px}
 html.sx-app .sm-codex .sm-codex-bar>.tm-deal-banner button{min-height:44px;padding:4px 6px;font-size:10px}
 html.sx-app .sm-codex .sm-codex-bar>.tm-deal-banner .tm-deal-dismiss{position:static;flex:none;width:36px;height:44px;margin:0}
}

/* Keep platform attribution on desktop; give the phone canvas more room. */
@media(max-width:768px){html body .sm-codex #stickerStudio #smsAutoSaveIndicator #tm-powered-by{display:none!important}}

/* Tool rows scroll sideways: fade the right edge so hidden tools read as "more this way". The padding keeps the last tool clear of the fade. */
@media(max-width:768px){
 html.sx-app .sm-codex #stickerStudio .sm-editbar,html.sx-app .sm-codex #stickerStudio #smsTbRow1{padding-right:22px!important;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent)}
}
/* Smallest phones: a narrower Add to Cart leaves more of the tool row visible, and a one-line tool rail gives the height back to the canvas. */
@media(max-width:359px){
 html.sx-app .sm-codex #stickerStudio .sm-canvas-tools>#btnATCBottom{width:96px!important;min-width:96px!important;padding:8px 6px!important}
 html.sx-app .sm-codex #stickerStudio .sm-canvas-tools>#btnATCBottom svg{display:none!important}
}
@media(max-width:359px) and (max-height:620px){
 html.sx-app #stickerStudio{--sm-mobile-categories-height:60px}
 html.sx-app .sm-codex #stickerStudio .sm-tool-rail{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;gap:2px;padding-right:22px;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent)}
 html.sx-app .sm-codex #stickerStudio .sm-tool-rail::-webkit-scrollbar{display:none}
 html.sx-app .sm-codex #stickerStudio .sm-tool-category{flex:none}
}
