/* Guided order flow for configurable products. Loaded from boxes/product/attributes.tpl (progressive enhancement). */
:root{--of-accent:#11a0db;--of-accent-d:#0b7fb0;--of-accent-l:#e8f6fc;--of-ok:#2e9d5b;--of-bad:#d93025;--of-ink:#1d2733;--of-mut:#6b7785;--of-line:#dfe5ec;--of-bg:#f5f7fa}

/* ---------- info strip, stage headings ---------- */
.order-info{margin:10px 0;padding:10px 14px;background:var(--of-bg);border:1px solid var(--of-line);border-radius:10px;font-size:14px;line-height:1.5;color:var(--of-ink)}
.order-info .oi-sep{margin:0 8px;color:#aab4bf}
.order-flow-name-anchor,.order-flow-discount-anchor{display:none!important}
.flow-stage{display:flex;align-items:center;gap:10px;margin:26px 0 4px;padding:0 0 8px;border-bottom:2px solid var(--of-line);font-weight:700;font-size:18px;color:var(--of-ink)}
.flow-stage .fs-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--of-ink);color:#fff;font-size:13px}

/* ---------- quantity discount chips ---------- */
.quantity-discounts .heading-4{font-size:15px;margin-bottom:6px}
.qd-control-row{display:flex;align-items:center;gap:5px;min-width:0}
.qd-viewport{flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-behavior:smooth}
.qd-viewport::-webkit-scrollbar{display:none}
.quantity-discounts-content{display:flex;flex-wrap:nowrap;gap:7px;width:max-content;min-width:100%}
.quantity-discounts-content .item{display:flex;flex:0 0 auto;align-items:center;gap:7px;float:none;width:auto;margin:0!important;padding:8px 11px;border:1px solid var(--of-line);border-radius:10px;font-size:13px;line-height:1.2;text-align:center;white-space:nowrap;transition:border-color .15s,background .15s,box-shadow .15s}
.quantity-discounts-content .item .count,.quantity-discounts-content .item .price{display:inline;white-space:nowrap}
.quantity-discounts-content .item .price{padding-left:8px;border-left:1px solid var(--of-line);font-weight:700}
.quantity-discounts-content .item .per-item{display:none}
.quantity-discounts-content .item.is-current{border-color:var(--of-ok);background:#eaf7ef}
.qd-arrow{display:flex;flex:0 0 30px;align-items:center;justify-content:center;width:30px;height:36px;padding:0;border:1px solid var(--of-line);border-radius:9px;background:#fff;color:var(--of-ink);cursor:pointer}
.qd-arrow:hover:not(:disabled){border-color:var(--of-accent);color:var(--of-accent-d)}
.qd-arrow:disabled{opacity:.35;cursor:default}
.qd-control-row:not(.has-overflow) .qd-arrow{display:none}
.qd-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- step cards ---------- */
#product-attributes .flow-step{position:relative;margin:12px 0;padding:0;background:#fff;border:1.5px solid var(--of-line);border-radius:14px;transition:border-color .2s,box-shadow .2s}
#product-attributes .flow-step.is-open{border-color:var(--of-accent);box-shadow:0 4px 18px rgba(17,160,219,.14)}
#product-attributes .flow-step > .attributes-tuggler:first-child{display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px 2px;background:none;border:0;border-radius:0;font-size:17px;font-weight:700;color:var(--of-ink);cursor:pointer}
#product-attributes .flow-step > .attributes-tuggler:first-child .step-next{display:none}
#product-attributes .flow-step .fs-badge{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--of-ink);color:#fff;font-size:14px;font-weight:700;transition:background .2s}
#product-attributes .flow-step.is-open .fs-badge{background:var(--of-accent)}
#product-attributes .flow-step.is-done .fs-badge{background:var(--of-ink)}
#product-attributes .flow-step .fs-title{flex:1 1 auto;min-width:0}
#product-attributes .flow-step > .attributes-tuggler:first-child:after{content:none}
#product-attributes .flow-step.is-open > .attributes-tuggler:first-child:after{content:none}
#product-attributes .flow-step > .selected-option{display:block;margin:0;padding:0 16px 12px 56px;border:0;background:none;font-size:0;line-height:1.3;cursor:default;color:var(--of-mut)}
#product-attributes .flow-step > .selected-option:before,#product-attributes .flow-step > .selected-option:after{font-size:13px}
#product-attributes .selected-option.is-empty{display:none!important}
#product-attributes .selected-option.is-done{font-size:12px;color:var(--of-ink);font-weight:500}
#product-attributes .selected-option.is-done:before{content:none}
#product-attributes .selected-option.is-done:after{content:none}
#product-attributes .flow-step .attributes-wraper{padding:4px 16px 18px}
#product-attributes .flow-step .attributes-content{display:block}
.flow-error{margin:-6px 16px 8px 56px;color:var(--of-bad);font-size:13px;font-weight:700}
.flow-step.is-missing{border-color:var(--of-bad)}

/* ---------- option tiles (radio / checkbox without special UI) ---------- */
#product-attributes .flow-step.tiles .attributes-content{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
#product-attributes .flow-step.tiles .attributes-content > label{float:none;width:auto;margin:0;padding:0;display:block}
#product-attributes .flow-step.tiles .option-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:46px;height:100%;padding:8px;text-align:center;background:#fff;border:1.5px solid var(--of-line);border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
#product-attributes .flow-step.tiles .option-item:hover{border-color:var(--of-accent)}
#product-attributes .flow-step.tiles label.is-checked .option-item{border-color:var(--of-accent);background:var(--of-accent-l);box-shadow:0 0 0 2px rgba(17,160,219,.25)}
#product-attributes .flow-step.tiles .option-item .option-text{font-size:14px;font-weight:600;line-height:1.3}
#product-attributes .flow-step.tiles .option-item .image-container img{max-height:84px;width:auto;max-width:100%}
#product-attributes .flow-step .option-item input[type=radio],#product-attributes .flow-step .option-item input[type=checkbox]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
#product-attributes .flow-step.tiles label.is-checked .option-item:after{content:"\2714";position:absolute;top:6px;right:8px;width:20px;height:20px;border-radius:50%;background:var(--of-accent);color:#fff;font-size:12px;line-height:20px}

/* ---------- colour map ---------- */
.cm{margin-bottom:6px}
.cm-row{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:7px}
.cm-sw{position:relative;flex:0 0 auto;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);cursor:pointer;transition:transform .12s,box-shadow .12s}
.cm-sw:hover{transform:none;z-index:2}
.cm-sw:focus-visible{outline:2px solid var(--of-accent-d);outline-offset:2px}
.cm-sw.is-sel{box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 0 0 2px #fff,0 0 0 4px var(--of-accent)}
.cm-sw.is-sel:after{content:"\2714";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--k,#fff)}
.cm-sw.cm-custom{background:conic-gradient(#e4002b,#ffd100,#43b02a,#00a3e0,#7a2a8f,#e4002b);width:auto;min-width:36px;padding:0 12px 0 40px;display:inline-flex;align-items:center;font-size:13px;font-weight:700;color:var(--of-ink);background:#fff;box-shadow:inset 0 0 0 1.5px var(--of-line)}
.cm-sw.cm-custom:before{content:"";position:absolute;left:6px;top:6px;width:24px;height:24px;border-radius:7px;background:conic-gradient(#e4002b,#ffd100,#43b02a,#00a3e0,#7a2a8f,#e4002b)}
.cm-sw.cm-custom.is-sel:after{content:none}
.cm-sw.cm-custom.is-sel{box-shadow:inset 0 0 0 1.5px var(--of-accent),0 0 0 2px var(--of-accent-l)}
.cm-cap{display:flex;align-items:center;gap:8px;min-height:24px;margin-top:4px;font-size:14px;color:var(--of-mut)}
.cm-cap b{color:var(--of-ink)}
.cm-cap i{display:inline-block;width:16px;height:16px;border-radius:5px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}
.cm-on > label.cm-orig{display:none !important}
.cm-on > label.cm-custom-label{display:none !important}
.pan{margin-top:12px;padding:14px;background:var(--of-bg);border:1px solid var(--of-line);border-radius:12px}
.pan[hidden]{display:none}
.pan-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.pan-chip{flex:0 0 auto;width:54px;height:54px;border-radius:12px;background:repeating-linear-gradient(45deg,#e9edf2,#e9edf2 6px,#f6f8fa 6px,#f6f8fa 12px);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);transition:background .2s}
.pan-name{font-size:15px;font-weight:700;color:var(--of-ink)}
.pan-sub{font-size:12px;font-weight:400;color:var(--of-mut)}
.pan-search{width:100%;min-height:38px;margin:0 0 7px;padding:7px 10px;border:1px solid var(--of-line);border-radius:8px;font-size:13px;background:#fff;box-sizing:border-box}
.pan-grid{max-height:260px;overflow:auto;padding:2px}
.pan-grid .cm-sw{width:30px;height:30px;border-radius:8px}
.pan-grid .cm-row{gap:6px;margin-bottom:6px}
.pan-use{display:inline-block;margin:6px 0;padding:8px 12px;border:1.5px dashed var(--of-accent);border-radius:10px;background:#fff;color:var(--of-accent-d);font-size:13px;font-weight:700;cursor:pointer}
.pan-note{margin-top:8px;font-size:12px;color:var(--of-mut)}

/* ---------- logo step ---------- */
.logo-step .attributes-content{display:grid !important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px}
.logo-step .attributes-content > label{float:none !important;width:auto !important;margin:0 !important;padding:0 !important}
.logo-step .option-item{position:relative;display:flex !important;flex-direction:column;align-items:center;gap:4px;height:100%;padding:8px !important;text-align:center;background:#fff;border:1.5px solid var(--of-line) !important;border-radius:10px !important;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
.logo-step .option-item:hover{border-color:var(--of-accent) !important}
.logo-step label.is-checked .option-item{border-color:var(--of-accent) !important;background:var(--of-accent-l);box-shadow:0 0 0 2px rgba(17,160,219,.25)}
.logo-step .option-item .image-container{display:none}
.logo-step .option-item br{display:none}
.logo-step .lg-ic{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--of-bg);color:var(--of-accent-d)}
.logo-step label.is-checked .lg-ic{background:#fff}
.logo-step .lg-ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.logo-step .option-text{font-size:13px !important;font-weight:700 !important}
.logo-step .lg-sub{font-size:12px;color:var(--of-mut);line-height:1.35}
.logo-step .option-item input.file{width:100%;height:34px;padding:5px 8px;border:1px solid var(--of-line);border-radius:7px;background:#fff;font-size:12px;box-sizing:border-box}
.logo-step .option-item input.file:placeholder-shown{display:none}
.logo-step .option-item > div:not(.option-text):not(.image-container){display:flex;gap:6px;width:100%;align-items:center}
.logo-step .option-item .attr_myfile_clear{float:none !important;padding:5px 9px !important;line-height:1 !important;border-radius:8px;font-size:12px}
.logo-step .option-item > span{display:block;width:100%;margin-top:4px}
.logo-step input[type=file]{width:100%;min-height:38px;margin:0 !important;padding:5px 7px;border:1px dashed #b9c4d0;border-radius:8px;background:#fff;font-size:11px;box-sizing:border-box;cursor:pointer}
.logo-step input[type=file]::file-selector-button{margin-right:7px;padding:5px 8px;border:0;border-radius:6px;background:var(--of-accent);color:#fff;font-size:11px;font-weight:700;cursor:pointer}
.logo-step progress{width:100%;height:6px;margin-top:6px}
.logo-step .lg-thumb{display:block;max-width:100%;max-height:70px;margin-top:4px;border-radius:6px;background:#fff;box-shadow:0 0 0 1px var(--of-line)}

/* ---------- text fields (message, comments) ---------- */
.flow-step.fields .attributes-content > label{float:none !important;width:auto !important;display:block;margin:0 0 7px !important;padding:0 !important}
.flow-step.fields .attributes-content{display:block!important}
.flow-step.fields .option-item{display:block;padding:0 !important;border:0 !important;background:none !important}
.flow-step.fields .option-item .option-text{position:relative;z-index:1;display:table;max-width:calc(100% - 24px);margin:0 0 -7px 10px;padding:0 5px;background:#fff;font-size:11px;font-weight:600;line-height:14px;color:var(--of-mut)}
.flow-step.fields .option-item br{display:none}
.flow-step.fields .textinput,.flow-step.fields .option-item > div{width:100% !important}
.flow-step.fields .option-item input[type=text]{width:100% !important;height:38px;margin:0 !important;padding:9px 10px 6px;border:1px solid var(--of-line);border-radius:8px;background:#fff;font-size:14px;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.flow-step.fields .option-item input[type=text]:focus,.flow-step.fields .option-item textarea:focus{outline:0;border-color:var(--of-accent);box-shadow:0 0 0 3px rgba(17,160,219,.2)}
.flow-step.fields textarea{width:100% !important;height:64px;min-height:64px;padding:8px 10px;border:1px solid var(--of-line);border-radius:8px;font-size:14px;box-sizing:border-box;resize:vertical}
.flow-step .tx-count{margin-top:2px;font-size:10px;color:var(--of-mut);text-align:right}
.flow-step.fields .option-item.type-4 > div{display:flex;gap:6px;align-items:center}
.flow-step.fields .option-item.type-4 input[type=text]{flex:1 1 auto;width:auto !important;font-size:13px}
.flow-step.fields .option-item.type-4 > span{display:block;margin-top:6px}
.flow-step.fields input[type=file]{width:100%;min-height:36px;padding:5px 7px;border:1px dashed #b9c4d0;border-radius:8px;background:#fff;font-size:11px;box-sizing:border-box}
.flow-step.fields input[type=file]::file-selector-button{margin-right:7px;padding:5px 8px;border:0;border-radius:6px;background:var(--of-accent);color:#fff;font-size:11px;font-weight:700;cursor:pointer}
.flow-step.fields.comment-step .option-item:first-child > .option-text{display:none}
.flow-step .select-box > .attr-title{position:relative;z-index:1;display:table;max-width:calc(100% - 24px);margin:0 0 -7px 10px;padding:0 5px;background:#fff;font-size:11px;font-weight:600;line-height:14px;color:var(--of-mut)}
.flow-step select{width:100%;min-height:38px;padding:7px 30px 7px 10px;border:1px solid var(--of-line);border-radius:8px;background-color:#fff;font-size:14px;box-sizing:border-box}
.flow-step input[type=number]{min-height:34px;padding:5px 7px;border:1px solid var(--of-line);border-radius:7px;font-size:13px;box-sizing:border-box}
.flow-step input[type=file]{min-height:36px;padding:5px 7px;border:1px dashed #b9c4d0;border-radius:8px;background:#fff;font-size:11px;box-sizing:border-box}

/* ---------- font picker ---------- */
.fg-on > label.less{display:none !important}
.fg-on.show-custom > label.less:last-child{display:block !important}
.fg-on .select2-container{display:none !important}
.fg-search{width:100%;min-height:38px;margin:0 0 7px;padding:7px 10px;border:1px solid var(--of-line);border-radius:8px;font-size:13px;box-sizing:border-box}
.fg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:8px;max-height:340px;overflow:auto;padding:2px}
.fg-card{display:flex;flex-direction:column;gap:2px;padding:10px 10px 8px;text-align:left;background:#fff;border:1.5px solid var(--of-line);border-radius:10px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.fg-card:hover{border-color:var(--of-accent)}
.fg-card.is-sel{border-color:var(--of-accent);background:var(--of-accent-l);box-shadow:0 0 0 2px rgba(17,160,219,.25)}
.fg-sample{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:20px;line-height:1.3;color:var(--of-ink)}
.fg-name{font-size:11px;color:var(--of-mut)}
.fg-empty{padding:10px;font-size:13px;color:var(--of-mut)}

/* ---------- live preview ---------- */
.pv{margin:0 0 14px;background:#fff;border:1.5px solid var(--of-line);border-radius:16px;overflow:hidden}
.pv-tabs{display:flex;border-bottom:1px solid var(--of-line);background:var(--of-bg)}
.pv-tabs button{flex:1;padding:10px 8px;border:0;background:none;font-size:14px;font-weight:700;color:var(--of-mut);cursor:pointer;border-bottom:3px solid transparent}
.pv-tabs button.on{color:var(--of-ink);border-bottom-color:var(--of-accent);background:#fff}
.pv-stage{padding:12px 10px 4px;background:radial-gradient(ellipse at 50% 40%,#fff 0,#eef2f6 100%)}
.pv-stage svg{display:block;width:100%;height:auto;max-height:300px;overflow:visible}
.pv-stage svg .pv-t{transition:fill .35s,stroke .35s}
.pv-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0}
.pv-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:var(--of-bg);border:1px solid var(--of-line);font-size:12px;color:var(--of-ink)}
.pv-chip i{display:inline-block;width:11px;height:11px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.pv-hint{margin:10px 12px 0;padding:8px 12px;border-radius:10px;background:var(--of-accent-l);color:var(--of-accent-d);font-size:13px;font-weight:700;cursor:pointer}
.pv-hint.ok{background:#eaf7ef;color:var(--of-ok);cursor:default}
.pv-note{padding:8px 12px 12px;font-size:11px;color:var(--of-mut)}
body.pv-photos .pv-stage,body.pv-photos .pv-chips,body.pv-photos .pv-hint,body.pv-photos .pv-note{display:none}
body.pv-ai .pv-stage,body.pv-ai .pv-photo-view,body.pv-ai .pv-chips,body.pv-ai .pv-hint,body.pv-ai .pv-note{display:none}
body:not(.pv-photos).pv-ready .w-product-images{display:none}
body.order-flow-enabled .catalog-breadcrumb,body.order-flow-enabled .pv-chips,body.order-flow-enabled .pv-hint,body.order-flow-enabled .pv-note{display:none!important}
.pv-ai-view{display:none;padding:12px;background:#fff}
body.pv-ai .pv-ai-view{display:block}
.pv-ai-view [hidden]{display:none!important}
.pv-ai-info,.pv-ai-logo-unavailable{margin:0 0 10px;color:var(--of-mut);font-size:12px;line-height:1.45}
.pv-ai-consent{display:flex;align-items:flex-start;gap:8px;margin:0 0 10px;color:var(--of-ink);font-size:12px;line-height:1.4}
.pv-ai-consent input{flex:0 0 auto;margin:2px 0 0}
.pv-ai-generate{width:100%;min-height:42px;padding:9px 14px;border:0;border-radius:10px;background:var(--of-accent-d);color:#fff;font-size:14px;font-weight:700;cursor:pointer}
.pv-ai-generate:hover{background:#086a93}
.pv-ai-generate:disabled{opacity:.65;cursor:wait}
.pv-ai-status{margin:8px 0 0;color:var(--of-mut);font-size:12px;line-height:1.4}
.pv-ai-result{display:block;width:100%;max-height:360px;margin-top:10px;object-fit:contain}
@media (min-width:992px){
  .pv-col{position:static;top:auto;z-index:auto;align-self:auto}
}

.order-flow-chat{position:absolute;z-index:1300;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#202124;cursor:pointer;transition:background .15s}
.order-flow-chat:hover{background:#f1f3f4}
.order-flow-chat:focus-visible{outline:2px solid var(--of-accent);outline-offset:2px}
.order-flow-chat svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- sticky order bar ---------- */
.order-bar{position:fixed;left:0;right:0;bottom:0;z-index:999;display:flex;align-items:center;gap:16px;padding:10px 16px;background:#fff;border-top:1px solid #d5dae0;box-shadow:0 -2px 10px rgba(0,0,0,.08);font-size:14px}
.order-bar .ob-progress{flex:1 1 260px;min-width:0}
.order-bar .ob-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.order-bar .ob-track{display:block;height:6px;margin-top:4px;background:#e3e7eb;border-radius:3px;overflow:hidden}
.order-bar .ob-fill{display:block;height:100%;width:0;background:var(--of-ok);transition:width .3s}
.order-bar .ob-line{white-space:nowrap;font-size:13px}
.order-bar .ob-price{flex:0 1 auto;min-width:0}
.order-bar .ob-tier{font-size:12px;color:#5c6670}
.order-bar .ob-actions{display:flex;flex:0 0 auto;align-items:center;gap:7px}
.order-bar .ob-nav{min-height:44px;padding:9px 13px;border:1px solid var(--of-line);border-radius:10px;background:#fff;color:var(--of-ink);font-weight:700;cursor:pointer}
.order-bar .ob-nav:disabled{opacity:.4;cursor:not-allowed}
.order-bar .ob-add{flex:0 0 auto;white-space:nowrap;cursor:pointer}
.order-bar .ob-add.not-ready{opacity:.75}
body.has-order-bar{padding-bottom:90px}

@media (max-width:991px){
  .pv-stage svg{max-height:210px}
}
@media (max-width:768px){
  #product-attributes .flow-step.tiles .attributes-content{grid-template-columns:repeat(2,1fr)}
  .cm-sw{width:34px;height:34px}
}

/* ---------- mobile-first preview and one-page-at-a-time configurator ---------- */
.pv-photo-view{display:none}
body.pv-photos .pv-photo-view{display:block;padding:10px;background:#fff}
body.pv-photos .pv-photo-view .w-product-images{display:block}
body.pv-photos .pv-photo-view .w-product-images img{max-width:100%;height:auto}
.pv-hint{cursor:default}
.pv-hint:before{content:"";display:inline-block;width:7px;height:7px;margin:0 8px 1px 1px;border-radius:50%;background:var(--of-accent)}

.flow-book{position:relative;margin:10px 0 22px;padding:14px;background:#fff;border:1px solid var(--of-line);border-radius:16px;box-shadow:0 8px 28px rgba(29,39,51,.07);overflow:hidden}
.fb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;color:var(--of-mut);font-size:13px;font-weight:700}
.fb-progress{display:block;flex:0 0 auto;width:0;height:5px;border-radius:5px;background:var(--of-accent);transition:width .25s}
.fb-head:before{content:"";position:absolute;left:14px;right:14px;top:24px;height:5px;border-radius:5px;background:var(--of-line)}
.fb-head .fb-progress{position:relative;z-index:1;align-self:flex-start;margin-top:8px}
.fb-track{position:relative;min-height:120px;perspective:none}
#product-attributes .flow-step.flow-slide{display:none;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent}
#product-attributes .flow-step.flow-slide.is-active{display:block;animation:of-page-in-right .18s ease}
#product-attributes .flow-step.flow-slide.is-active.slide-from-left{animation:of-page-in-left .18s ease}
#product-attributes .flow-step.flow-slide > .attributes-tuggler:first-child{padding:10px 4px 2px;font-size:19px;cursor:default}
#product-attributes .flow-step.flow-slide > .selected-option{padding-left:44px}
#product-attributes .flow-step.flow-slide .attributes-wraper{padding:10px 4px 16px}
.flow-context{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:var(--of-bg);color:var(--of-mut);font-size:10px;font-weight:700;line-height:1.2}
.flow-step.tiles .attributes-content > label{min-width:0}
.quantity-discounts-content .item{cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.quantity-discounts-content .item:hover,.quantity-discounts-content .item:focus{border-color:var(--of-accent);outline:0;transform:translateY(-1px)}
.quantity-discounts-content .item.is-current{box-shadow:0 0 0 1px var(--of-ok)}
.logo-step .lg-file-input,.logo-step input[readonly],.logo-step .attr_myfile_clear{display:none!important}
.logo-step .lg-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:82px;margin-top:6px;padding:8px;border:1px dashed #aab8c5;border-radius:9px;background:#fff;color:var(--of-ink);cursor:pointer;transition:border-color .15s,background .15s}
.logo-step .lg-drop:hover,.logo-step .lg-drop.is-dragging{border-color:var(--of-accent);background:var(--of-accent-l)}
.logo-step .lg-drop-icon svg{width:20px;height:20px;stroke:var(--of-accent-d);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.logo-step .lg-drop-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:700}
.logo-step .lg-drop-sub{font-size:13px;color:var(--of-mut)}
.logo-step .lg-drop.is-uploading{border-style:solid;border-color:var(--of-accent)}
.logo-step progress.lg-progress[value="0"]{display:none}
.order-bar .ob-add{min-height:44px;padding:10px 18px;border:0;border-radius:11px;background:var(--of-accent-d);color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 10px rgba(11,127,176,.2)}
.order-bar .ob-add:hover{background:#086a93}
.order-bar .ob-add:disabled{opacity:.65;cursor:wait}
.order-bar .ob-tier{max-width:520px;line-height:1.35}

@keyframes of-page-in-right{
  from{opacity:.35}
  to{opacity:1}
}
@keyframes of-page-in-left{
  from{opacity:.35}
  to{opacity:1}
}

@media (min-width:769px){
  .pv-col{top:calc(var(--of-header-height, 0px) + 10px)}
  .flow-book{padding:18px}
}
@media (max-width:768px){
  .order-flow-enabled .block.header .w-search,.order-flow-enabled .block.header .my-acc-link{display:none!important}
  .order-flow-enabled .catalog-breadcrumb,.order-flow-enabled .order-info{display:none!important}
  .order-flow-enabled .w-product-name{margin:8px 15px 6px;font-size:20px;line-height:1.2}
  .order-flow-enabled .w-product-name h1{margin:0;font-size:20px;line-height:1.2}
  .pv{position:static;top:auto;z-index:auto;margin:0 0 10px;border-radius:0 0 14px 14px;box-shadow:0 6px 16px rgba(29,39,51,.1)}
  .pv-stage{height:132px;padding:2px 10px 0;display:flex;align-items:center;justify-content:center}
  .pv-stage svg{max-height:126px}
  .pv-tabs button{padding:6px;font-size:12px}
  .pv-chips,.pv-hint,.pv-note{display:none}
  .flow-product-grid.flow-mobile-layout{display:block!important;box-sizing:border-box;width:calc(100% + 30px)!important;max-width:none!important;margin-left:-15px!important}
  .flow-mobile-layout .flow-product-media{display:none!important}
  .flow-mobile-layout .flow-product-config{float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .flow-mobile-layout .w-product-attributes,#product-attributes{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .order-flow-enabled #product-attributes .flow-book{display:flex!important;flex-direction:column;box-sizing:border-box;width:100%!important;height:calc(100vh - var(--of-header-height, 66px) - var(--of-product-name-height, 52px) - var(--of-preview-height, 234px) - var(--of-order-bar-height, 100px) - 30px)!important;height:calc(100dvh - var(--of-header-height, 66px) - var(--of-product-name-height, 52px) - var(--of-preview-height, 234px) - var(--of-order-bar-height, 100px) - 30px)!important;min-height:180px;max-height:460px;margin:0!important;padding:8px 14px!important;border:0!important;border-radius:0!important;background:transparent;box-shadow:none!important;overflow:hidden}
  .fb-head{flex:0 0 auto;margin:0 0 5px}
  .fb-track{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  #product-attributes .flow-step.flow-slide > .attributes-tuggler:first-child{padding:7px 2px 2px;font-size:16px}
  #product-attributes .flow-step.flow-slide > .selected-option{padding:0 4px 7px 42px;font-size:13px}
  #product-attributes .flow-step.flow-slide .attributes-wraper{padding:4px 2px 8px}
  #product-attributes .flow-step.flow-slide .flow-context{display:none}
  .flow-mobile-layout .w-product-quantity-discounts{margin:8px 0 12px}
  .flow-mobile-layout .quantity-discounts .heading-4{margin:0 0 6px;font-size:14px}
  .flow-mobile-layout .quantity-discounts-content{min-width:max-content}
  .flow-mobile-layout .quantity-discounts-content .item{min-height:38px;padding:7px 9px;font-size:12px}
  .flow-mobile-layout .qd-arrow{flex-basis:28px;width:28px;height:34px}
  .order-bar{z-index:1000}
  .order-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:7px 10px}
  .order-bar .ob-progress{min-width:0}
  .order-bar .ob-topline{gap:8px}
  .order-bar .ob-prog-text{flex:0 0 auto;font-size:12px;font-weight:700}
  .order-bar .ob-line{overflow:hidden;font-size:11px;text-overflow:clip}
  .order-bar .ob-price,.order-bar .ob-tier{display:none}
  .order-bar .ob-actions{width:100%;gap:6px}
  .order-bar .ob-nav{flex:0 0 62px;min-height:42px;padding:8px 5px;font-size:12px}
  .order-bar .ob-add{flex:1 1 auto;width:auto;min-width:0;min-height:42px;padding:8px 8px;font-size:13px}
  body.has-order-bar{padding-bottom:108px}
}
@media (prefers-reduced-motion:reduce){
  #product-attributes .flow-step.flow-slide.is-active{animation:none}
}

/* reCAPTCHA badge: boxed on white, lifted above the sticky order bar */
.grecaptcha-badge{background:#fff!important;border:1px solid #dfe5ec!important;border-radius:12px!important;box-shadow:0 4px 16px rgba(20,30,60,.16)!important;overflow:hidden!important;z-index:1100!important}
body:has(#order-bar) .grecaptcha-badge{bottom:84px!important}

/* One fixed panel height for all three tabs so the page below never jumps */
.pv{--pv-h:330px}
.pv-stage,body.pv-photos .pv-photo-view,body.pv-ai .pv-ai-view{box-sizing:border-box;height:var(--pv-h);overflow:auto}
.pv-stage{display:flex;align-items:center;justify-content:center;padding:8px 10px}
.pv-stage svg{max-height:calc(var(--pv-h) - 20px)}
body.pv-photos .pv-photo-view{display:flex;align-items:center;justify-content:center;overflow:hidden}
body.pv-photos .pv-photo-view .w-product-images{width:100%;max-height:100%}
body.pv-photos .pv-photo-view .w-product-images img.main-image{display:block;margin:0 auto;width:auto;max-width:100%;height:auto;max-height:calc(var(--pv-h) - 90px);object-fit:contain}
body.pv-ai .pv-ai-view{display:flex;flex-direction:column}
.pv-ai-result{flex:1 1 auto;min-height:0;max-height:none;height:100%}
@media (max-width:767px){.pv{--pv-h:190px}.pv-stage{height:var(--pv-h)}.pv-stage svg{max-height:calc(var(--pv-h) - 12px)}body.pv-photos .pv-photo-view .w-product-images img.main-image{max-height:calc(var(--pv-h) - 70px)}}

/* Sticky three-row guide */
.flow-guide{position:sticky;top:0;z-index:50;display:grid;grid-template-rows:auto minmax(0,1fr) auto;box-sizing:border-box;width:100%;max-width:820px;margin:0 auto 16px;height:calc(100vh - var(--of-header-height,0px) - 8px);height:calc(100dvh - var(--of-header-height,0px) - 8px);max-height:760px;background:#fff;border:1px solid var(--of-line);border-radius:16px;box-shadow:0 8px 28px rgba(29,39,51,.1);overflow:hidden}
.flow-guide .fg-top{min-height:0}
.flow-guide .fg-top .pv{margin:0;border:0;border-radius:0;box-shadow:none;--pv-h:clamp(130px,26svh,300px)}
.flow-guide .fg-mid{min-height:0;display:flex;flex-direction:column;border-top:1px solid var(--of-line)}
.flow-guide #product-attributes .flow-book,.order-flow-enabled .flow-guide #product-attributes .flow-book{display:flex!important;flex-direction:column;flex:1 1 auto;height:100%!important;min-height:0;max-height:none;margin:0!important;padding:8px 12px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent;overflow:hidden}
.flow-guide #product-attributes{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0;padding:0}
.flow-guide .fb-track{flex:1 1 auto;min-height:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scroll-snap-type:none}
.flow-guide .fb-track img{-webkit-user-drag:none;user-select:none}
.flow-guide .flow-step.is-active{height:100%}
.flow-guide .flow-step.is-active .attributes-content,.flow-guide .flow-step.tiles .attributes-content{display:flex!important;flex-direction:column;flex-wrap:wrap;align-content:flex-start;gap:8px;height:100%;max-height:100%;grid-template-columns:none}
.flow-guide .flow-step .attributes-content>*{flex:0 0 auto;width:150px;max-width:70vw}
.flow-guide .fg-mid>*{flex:1 1 auto;min-height:0;max-height:100%;display:flex;flex-direction:column;overflow:hidden;margin:0;padding:0}
.flow-guide .flow-step.is-active{display:flex!important;flex-direction:column;height:100%}
.flow-guide .flow-step.is-active>.attributes-wraper{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.flow-guide .flow-step.is-active .attributes-wraper>.attributes-content{flex:1 1 auto;min-height:0}
.flow-guide .pv-stage,.flow-guide.flow-guide .pv-photo-view,.flow-guide .pv-ai-view{overflow:hidden}
.flow-guide{height:100vh;height:100svh;max-height:none;margin-bottom:0}
.grecaptcha-badge{visibility:hidden!important}
.recaptcha-notice{margin:8px 0;font-size:11px;line-height:1.4;color:#6b7684}
.recaptcha-notice a{color:inherit;text-decoration:underline}
.fg-contents{display:contents!important}
.flow-guide .fg-title{margin:0;padding:6px 12px 2px;background:#fff}
.flow-guide .fg-title,.flow-guide .fg-title *{font-size:16px!important;line-height:1.2!important;margin-top:0;margin-bottom:0}
.flow-guide .fg-bot{border-top:1px solid #d5dae0}
.flow-guide .order-bar{padding-bottom:max(8px,env(safe-area-inset-bottom));position:static;box-shadow:none;border:0;z-index:auto}
.flow-guide .fg-top .pv-tabs{flex-wrap:nowrap}
body.has-order-bar{padding-bottom:0}
body:has(#order-bar) .grecaptcha-badge{bottom:14px!important}
/* Guide as a modal: closed = off-screen but still laid out so measurements keep working */
.flow-guide{position:fixed;left:-10000px;top:0;visibility:hidden;margin:0;width:min(820px,100vw);height:700px;z-index:2001}
.flow-guide.is-open{visibility:visible;left:50%;top:50%;transform:translate(-50%,-50%);width:min(820px,calc(100vw - 32px));height:min(780px,calc(100vh - 32px));height:min(780px,calc(100svh - 32px));border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.fg-backdrop{display:none;position:fixed;inset:0;z-index:2000;background:rgba(15,20,35,.6)}
.fg-backdrop.on{display:block}
body.fg-modal-open{overflow:hidden}
.fg-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 14px;background:#fff;border-bottom:1px solid var(--of-line)}
.fg-head-title{font-size:16px;font-weight:700;color:#1d2733;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flow-guide .fg-head-title{flex:1 1 auto;min-width:0}
.fg-support-chat{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:36px;height:36px;padding:6px;border:1px solid var(--of-line);border-radius:10px;background:#fff;color:var(--of-accent-d);cursor:pointer}
.fg-support-chat svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fg-support-chat:hover{background:var(--of-accent-l);border-color:var(--of-accent)}
.fg-support-chat:focus-visible{outline:2px solid var(--of-accent);outline-offset:2px}
.fg-close{flex:0 0 auto;width:36px;height:36px;border:0;border-radius:50%;background:#eef1f5;color:#1d2733;font-size:24px;line-height:1;cursor:pointer}
.fg-launch{margin:0 0 14px;padding:0 12px;box-sizing:border-box;width:100%}
.fg-launch-img{display:block;width:100%;max-width:420px;height:auto;aspect-ratio:1/1;object-fit:contain;margin:0 auto 12px;background:#fff;border:1px solid var(--of-line);border-radius:16px}
.fg-open{display:flex;flex-direction:column;gap:3px;width:100%;max-width:420px;margin:0 auto;padding:16px 20px;border:0;border-radius:14px;background:#000066;color:#fff;text-align:left;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,102,.25)}
.fg-open strong{font-size:18px}
.fg-open span{font-size:13px;opacity:.85}
@media (max-width:767px){.flow-guide.is-open{left:0;top:0;transform:none;width:100vw;height:100vh;height:100dvh;border-radius:0;border:0}.flow-guide .fg-top .pv{--pv-h:clamp(110px,22svh,200px)}body.has-order-bar{padding-bottom:0}}

/* Step fitting: items grow to fill the space and are centred; overflow scrolls sideways */
.flow-guide .flow-step.is-active .attributes-content{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.flow-guide .flow-step .attributes-content>*{width:auto;max-width:none}
.flow-guide .flow-step.is-active .attributes-content.cm-on{display:flex!important;flex-direction:column;flex-wrap:nowrap;align-content:stretch;gap:6px}
.flow-guide .cm-on>.cm{flex:0 0 auto;display:grid;grid-auto-flow:column;grid-template-rows:repeat(var(--r,3),var(--s,44px));grid-auto-columns:var(--s,44px);gap:8px;width:max-content;min-width:100%;box-sizing:border-box;justify-content:center;align-content:center;align-self:flex-start}
.flow-guide .cm-on .cm-row{display:contents}
.flow-guide .cm-on .cm-sw{width:100%;height:100%;min-width:0;border-radius:10px}
.flow-guide .cm-on>.cm-cap{flex:0 0 auto;text-align:center;font-size:12px}
.flow-guide .cm-on>label.cm-orig{display:none!important}
.flow-guide .flow-step.tiles.is-active .attributes-content{display:grid!important;grid-auto-flow:column;grid-template-rows:repeat(var(--r,1),var(--sh,130px));grid-auto-columns:var(--s,100px);gap:10px;width:max-content;min-width:100%;box-sizing:border-box;justify-content:center;align-content:center;overflow:visible}
.flow-guide .flow-step.tiles .attributes-content>label{width:100%;height:100%;margin:0;min-width:0}
.flow-guide .flow-step.tiles .attributes-content>label>.option-item{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;box-sizing:border-box;overflow:hidden}
.flow-guide .flow-step.tiles .attributes-content>label img{max-width:100%;max-height:70%;object-fit:contain}
.flow-guide .flow-step.tiles.is-active .attributes-wraper{overflow-x:auto;overflow-y:hidden}
.flow-guide .fg-on{display:flex!important;flex-direction:column;flex-wrap:nowrap;overflow:hidden}
.flow-guide .fg-on .fg{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.flow-guide .fg-on .fg-grid{flex:1 1 auto;min-height:0;max-height:none;display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:none;grid-auto-columns:minmax(150px,200px);overflow-x:auto;overflow-y:hidden;align-content:center}
.flow-guide .flow-step.fields.is-active .attributes-content,.flow-guide .flow-step.comment-step.is-active .attributes-content,.flow-guide .flow-step.logo-step.is-active .attributes-content{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:10px;overflow-y:auto}
.flow-guide .flow-step.fields .attributes-content>*,.flow-guide .flow-step.comment-step .attributes-content>*,.flow-guide .flow-step.logo-step .attributes-content>*{width:min(100%,560px)}
.flow-guide .flow-step.fields textarea,.flow-guide .flow-step.comment-step textarea{width:100%;box-sizing:border-box;min-height:90px}
.flow-guide .pan{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;gap:6px}
.flow-guide .pan-grid{max-height:none;display:grid;grid-auto-flow:column;grid-template-rows:repeat(4,34px);grid-auto-columns:34px;grid-template-columns:none;gap:6px;overflow-x:auto;overflow-y:hidden;padding:2px;justify-content:start}
.flow-guide .pan-grid .cm-row{display:contents}
.flow-guide .pan-grid .cm-sw{width:34px;height:34px}
.flow-guide .flow-step.tiles.is-active .attributes-content{grid-template-columns:none!important;grid-template-rows:repeat(var(--r,1),var(--sh,130px))!important}
.logo-step .attributes-content{grid-template-columns:none!important}
.pv-ai-result,.pv-photo-view .main-image-box img,.pv-stage svg{cursor:zoom-in}
.of-lightbox{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;background:rgba(10,14,24,.88);cursor:zoom-out;padding:16px;box-sizing:border-box}
.of-lightbox[hidden]{display:none}
.of-lightbox img{max-width:100%;max-height:100%;object-fit:contain;background:#fff;border-radius:8px}
.of-lb-close{position:absolute;top:10px;right:14px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;font-size:26px;line-height:1;cursor:pointer}

.order-bar .ob-add:disabled{opacity:.35;cursor:not-allowed;filter:grayscale(.6)}

@media (max-width:767px){.order-bar .ob-actions{justify-content:flex-end;gap:5px}.order-bar .ob-nav{flex:0 0 auto;min-height:34px;padding:5px 10px;font-size:12px}.order-bar .ob-add{flex:0 0 auto;min-height:34px;padding:5px 12px;font-size:12px;border-radius:9px}}

.flow-guide .order-bar{box-sizing:border-box;width:100%;max-width:100%}
@media (max-width:767px){body.order-flow-enabled .order-bar .ob-actions{justify-content:flex-end;gap:5px}body.order-flow-enabled .order-bar .ob-nav{flex:0 0 auto;min-height:34px;padding:5px 12px;font-size:12px}body.order-flow-enabled .order-bar .ob-add{flex:0 0 auto;min-height:34px;padding:5px 14px;font-size:12px;border-radius:9px}}

.flow-guide{grid-template-columns:minmax(0,1fr)}
.flow-guide .cm-on .cm-cap{display:none}

.flow-guide .flow-step.is-active .attributes-content.cm-on{overflow-y:auto}
.flow-guide .pan-grid{grid-template-rows:repeat(3,34px)}

.flow-guide .fg-on{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.flow-guide .fg-on .fg{width:100%;min-width:0}
.flow-guide .fg-on .fg-search{flex:0 0 auto;width:100%}
.flow-guide .fg-on .fg-grid{grid-template-rows:repeat(2,min-content);gap:8px;padding:4px 2px 8px}
.flow-guide .fg-on .fg-card{justify-content:center;min-height:70px}

.flow-guide .flow-step.is-active>.attributes-wraper{min-width:0;width:100%;box-sizing:border-box}

.flow-guide .flow-step.fields .attributes-content>label{display:block;width:min(100%,560px);margin:0}
.flow-guide .flow-step.fields .attributes-content>label>.option-item{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;width:100%;box-sizing:border-box}
.flow-guide .flow-step.fields .js-attr-text-input{flex:1 1 100%;width:100%}
.flow-guide .flow-step.fields .js-attr-text-input input[type=text]{width:100%;box-sizing:border-box;min-height:48px;font-size:16px;padding:10px 14px;border:1.5px solid var(--of-line);border-radius:10px}
.flow-guide .flow-step.fields .option-item br{display:none}

.flow-guide .flow-step.fields.is-active .attributes-content,.flow-guide .flow-step.comment-step.is-active .attributes-content,.flow-guide .flow-step.logo-step.is-active .attributes-content{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
.flow-guide .flow-step.fields .attributes-content>label{width:min(100%,560px)!important}

@media (max-height:720px){.flow-guide .fg-top .pv,.flow-guide.is-open .fg-top .pv{--pv-h:92px}.flow-guide .fg-head{padding:3px 8px 3px 14px}.flow-guide .fg-close{width:30px;height:30px;font-size:20px}.flow-guide .order-bar{gap:4px;padding-top:5px}.flow-guide .order-bar .ob-tier{display:none}.flow-guide .fb-head{margin-bottom:2px}.flow-guide .fg-mid .flow-book{padding-top:4px!important}}

.flow-guide .flow-step.fields.is-active .attributes-content,.flow-guide .flow-step.comment-step.is-active .attributes-content,.flow-guide .flow-step.logo-step.is-active .attributes-content{flex-wrap:nowrap!important;align-content:center!important}

/* Logo step: one wide tile with a roomy drop zone */
.flow-guide .logo-step .attributes-content>label{width:min(100%,520px)!important}
.flow-guide .logo-step .option-item{width:100%;box-sizing:border-box;padding:12px!important}
.flow-guide .logo-step .lg-ic{display:none}
.flow-guide .logo-step .lg-drop{min-height:110px;margin-top:8px;border-width:2px}
.flow-guide .logo-step .lg-drop-icon svg{width:30px;height:30px}
.flow-guide .logo-step .lg-drop-title{font-size:16px}
.flow-guide .logo-step .lg-drop-sub{font-size:13px}
/* Multi-field steps (e.g. card message + logo + colour): two columns when wide, scroll when tall */
@media (min-width:600px){
.flow-guide .flow-step.fields.is-active .attributes-content:has(>label:nth-child(3)){display:grid!important;grid-template-columns:repeat(2,minmax(0,300px));justify-content:center;align-content:start!important;gap:10px;overflow-y:auto}
.flow-guide .flow-step.fields .attributes-content:has(>label:nth-child(3))>label{width:100%!important}
}
@media (min-width:600px){
.flow-guide .flow-step.is-active .attributes-content:has(>label:nth-child(3)){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;justify-content:stretch!important;align-items:start!important;align-content:center!important;gap:12px;overflow-y:auto}
.flow-guide .flow-step.is-active .attributes-content:has(>label:nth-child(3))>label{width:100%!important;min-width:0}
.flow-guide .flow-step.is-active .attributes-content:has(>label:nth-child(3)) .js-attr-text-input,.flow-guide .flow-step.is-active .attributes-content:has(>label:nth-child(3)) .js-attr-text-input input{width:100%!important;box-sizing:border-box}
}

/* Quantity chips: a clearly visible divider between range and price, with equal spacing on both sides */
body .quantity-discounts-content .item{gap:0!important;align-items:stretch!important}
body .quantity-discounts-content .item .count{padding:0 9px 0 0!important;margin:0!important;border:0!important;display:flex;align-items:center}
body .quantity-discounts-content .item .price{padding:0 0 0 9px!important;margin:0!important;border-left:1px solid #b8c2d0!important;display:flex;align-items:center;gap:1px}
body .quantity-discounts-content .item{width:auto!important;min-width:max-content!important;flex:0 0 auto!important}
body .quantity-discounts-content .item .count,body .quantity-discounts-content .item .price{width:auto!important;min-width:max-content!important;flex:0 0 auto!important}
.flow-guide .flow-step.is-active.fields .attributes-content:has(>label:nth-child(3))>label:not(:has(input:not([type=checkbox]):not([type=radio]),button,textarea,select)){display:none!important}
.flow-guide .flow-step.is-active .attributes-content:has(>label:nth-child(3)){align-items:center;align-content:center}
body.order-flow-enabled .order-bar .ob-next:not(:disabled){background:#0b7fb0!important;border-color:#0b7fb0!important;color:#fff!important;box-shadow:0 3px 10px rgba(11,127,176,.25)}
body.order-flow-enabled .order-bar .ob-next:not(:disabled):hover{background:#086a93!important;border-color:#086a93!important}
body.order-flow-enabled .order-bar .ob-next:disabled{opacity:.4}
.flow-guide .flow-step.is-active>.selected-option{display:none!important}

/* Pantone panel stays closed until Custom colour is chosen */
.flow-guide .pan[hidden]{display:none!important}

.flow-guide .pan{width:100%;max-width:100%;min-width:0;box-sizing:border-box;align-self:stretch}
.flow-guide .pan-grid{min-width:0;max-width:100%}
.flow-guide .cm-on>.cm{max-width:100%;padding:6px;scroll-padding:6px;overflow-x:auto;overflow-y:hidden;justify-content:start}

/* Pantone panel: compact, fills the remaining height, one vertical scroll only */
.flow-guide .flow-step.is-active .attributes-content.cm-on:has(.pan:not([hidden])){overflow:hidden!important}
.flow-guide .cm-on:has(.pan:not([hidden]))>.cm{display:none!important}
.pan-back{align-self:flex-start;flex:0 0 auto;padding:3px 0;border:0;background:transparent;color:var(--of-accent-d);font-size:12px;line-height:1.5;font-weight:600;cursor:pointer}
.pan-back:hover{text-decoration:underline}
.pan-back:focus-visible{outline:2px solid var(--of-accent);outline-offset:2px}
.flow-guide .pan:not([hidden]){flex:1 1 0;min-height:0;margin:0;padding:8px 10px;gap:6px;overflow:hidden}
.flow-guide .pan .pan-head{margin:0;gap:10px}
.flow-guide .pan .pan-chip{width:36px;height:36px;border-radius:9px}
.flow-guide .pan .pan-name{font-size:14px;line-height:1.2}
.flow-guide .pan .pan-sub,.flow-guide .pan .pan-note{display:none}
.flow-guide .pan .pan-search{min-height:34px;margin:0}
.flow-guide .pan .pan-grid{flex:1 1 0;min-height:0;display:grid;grid-auto-flow:row;grid-template-rows:none;grid-template-columns:repeat(auto-fill,34px);grid-auto-rows:34px;gap:8px;justify-content:center;align-content:start;overflow-y:auto;overflow-x:hidden;padding:6px}

/* Font grid: as many rows as fit the available height */
.flow-guide .fg-on .fg-grid{grid-template-rows:repeat(auto-fill,70px);align-content:start}

/* Mixed form steps (message + logo + colour): stacked cards, no horizontal scroll */
.flow-guide .flow-step.fields.logo-step .attributes-content{display:flex!important;flex-direction:column;gap:10px;overflow-x:hidden;padding:2px 2px 8px}
.flow-guide .flow-step.fields.logo-step .attributes-content > label{width:100%!important;min-width:0;margin:0!important;float:none!important}
.flow-guide .flow-step.fields.logo-step .option-item{display:flex!important;flex-direction:column;align-items:stretch;gap:6px;height:auto;padding:10px 12px!important;text-align:left;background:#fff!important;border:1px solid var(--of-line)!important;border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.04);box-sizing:border-box;max-width:100%}
.flow-guide .flow-step.fields.logo-step .option-item .option-text{position:static;display:block;max-width:none;margin:0;padding:0;background:none;font-size:13px!important;font-weight:700!important;line-height:1.3;color:var(--of-ink);text-align:left}
.flow-guide .flow-step.fields.logo-step .option-item .textinput,.flow-guide .flow-step.fields.logo-step .option-item > div:not(.option-text){width:100%!important;min-width:0;margin:0}
.flow-guide .flow-step.fields.logo-step .option-item input[type=text]{height:42px;padding:8px 12px;font-size:15px}
.flow-guide .flow-step.fields.logo-step .option-item > span{width:100%;min-width:0;margin:0}
.flow-guide .flow-step.fields.logo-step .lg-drop{margin-top:0;min-height:84px}
.flow-guide .flow-step.fields.logo-step .attributes-content{scrollbar-width:none}.flow-guide .flow-step.fields.logo-step .attributes-content::-webkit-scrollbar{display:none}

/* Inline Pantone picker under free-text colour fields */
.flow-guide .pk{margin:6px 0 10px;padding:10px;background:#fff;border:1px solid var(--of-line);border-radius:12px;box-shadow:0 4px 14px rgba(16,24,40,.08)}
.flow-guide .pk[hidden]{display:none!important}
.flow-guide .pk-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13px}
.flow-guide .pk-chip{flex:none;width:22px;height:22px;border-radius:50%;background:#e4e9ef;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.flow-guide .pk-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flow-guide .pk-done{flex:none;padding:5px 12px;border:0;border-radius:8px;background:var(--of-accent);color:#fff;font-size:12px;font-weight:700;cursor:pointer}
.flow-guide .pk-search{width:100%;height:36px;margin:0 0 8px;padding:6px 10px;border:1px solid var(--of-line);border-radius:8px;font-size:13px;box-sizing:border-box}
.flow-guide .pk-grid{display:flex;flex-wrap:wrap;gap:4px;max-height:150px;overflow-y:auto;overscroll-behavior:contain}
.flow-guide .pk-sw{flex:none;width:30px;height:30px;padding:0;border:1px solid rgba(0,0,0,.15);border-radius:7px;cursor:pointer}
.flow-guide .pk-sw.is-sel{outline:2px solid var(--of-ink);outline-offset:1px}
.flow-guide .pk-none{padding:8px 0;font-size:12px;color:var(--of-mut)}

/* Grocery tote, step 1: photo cards in reading order, with vertical scrolling on small screens. */
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .attributes-wraper{
  overflow-x:hidden;overflow-y:auto;
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .attributes-content{
  display:grid!important;grid-auto-flow:row;grid-template-columns:repeat(var(--photo-columns,6),minmax(0,1fr))!important;
  grid-template-rows:none!important;grid-auto-columns:auto;grid-auto-rows:minmax(124px,1fr);
  align-items:stretch!important;align-content:stretch!important;justify-content:stretch!important;
  gap:10px;width:100%;min-width:0;max-width:100%;padding:4px;box-sizing:border-box;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .attributes-content>label{
  display:block;float:none;width:100%;min-width:0;max-width:none;height:100%;margin:0;padding:0;
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .option-item{
  display:grid!important;grid-template-rows:minmax(0,1fr) 34px;align-items:stretch;gap:6px;
  width:100%;height:100%;min-height:124px;padding:8px;box-sizing:border-box;
  border:1.5px solid var(--of-line);border-radius:12px;background:#fff;overflow:hidden;
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .option-item>br{display:none}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .option-item .image-container{
  grid-row:1;display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;min-height:0;max-height:none;margin:0;padding:0;
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .option-item .image-container img{
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;object-fit:contain;
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .option-item .option-text{
  grid-row:2;display:flex;align-items:center;justify-content:center;position:static;width:100%;margin:0;padding:0;
  font-size:13px;font-weight:600;line-height:1.3;text-align:center;color:var(--of-ink);
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) label:has(input:checked) .option-item{
  border-color:var(--of-accent);background:#f2faff;box-shadow:0 0 0 2px rgba(17,160,219,.18);
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) label:has(input:checked) .option-item:after{
  content:"\2714";position:absolute;top:6px;right:6px;width:20px;height:20px;
  border-radius:50%;background:var(--of-accent);color:#fff;font-size:12px;line-height:20px;
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) label:has(input:focus-visible) .option-item{
  outline:3px solid var(--of-accent-d);outline-offset:2px;
}
#product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) label:has(input.option-input:disabled) .option-item{opacity:.45;cursor:not-allowed}
.flow-guide:has(:is(.bag-colour-step,.wristband-colour-step,.photo-options-step).is-active) .fg-top .pv{--pv-h:clamp(96px,20svh,180px)}
#product-attributes .flow-step:is(.wristband-colour-step,.photo-options-step) .attributes-content>br{display:none!important}
#product-attributes .flow-step:is(.wristband-colour-step,.photo-options-step) .attributes-content>label:has(input[type=text]),#product-attributes .flow-step:is(.wristband-colour-step,.photo-options-step) .attributes-content>.pk{grid-column:1/-1!important;width:100%!important;max-width:none!important}
#product-attributes .flow-step:is(.wristband-colour-step,.photo-options-step) label:has(input[type=text]) .option-item{grid-template-rows:auto auto;min-height:110px;height:auto}
#product-attributes .flow-step:is(.wristband-colour-step,.photo-options-step) label:has(input[type=text]) .option-text{grid-row:1}
#product-attributes .flow-step:is(.wristband-colour-step,.photo-options-step) .textinput{grid-row:2;min-width:0;width:100%}
#product-attributes .flow-step:is(.wristband-colour-step,.photo-options-step) .textinput input{box-sizing:border-box;width:100%!important;min-height:40px;padding:8px 10px}
#product-attributes .flow-step:is(.wristband-colour-step,.photo-options-step) .option-text{white-space:normal!important;overflow-wrap:anywhere;min-width:0;max-width:100%!important;font-size:12px}
#product-attributes .flow-step.photo-options-step .option-item{grid-template-rows:80px minmax(34px,auto);height:auto!important;min-height:134px}
#product-attributes .flow-step.photo-options-step label:has(input[type=text]) .option-item{grid-template-rows:auto auto;min-height:100px}
.flow-guide #product-attributes .flow-step.tiles:not(.photo-options-step):not(.bag-colour-step):not(.wristband-colour-step):not(.bag-printing-step) .option-text{position:static!important;white-space:normal!important;max-width:100%;margin:0!important;padding:2px;line-height:1.3}
@media (max-width:699px){
  #product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .attributes-content{grid-template-columns:repeat(var(--photo-tablet-columns,4),minmax(0,1fr))!important;grid-auto-rows:minmax(124px,1fr)}
}
@media (max-width:499px){
  #product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .attributes-content{grid-template-columns:repeat(var(--photo-mobile-columns,3),minmax(0,1fr))!important;gap:8px}
}
@media (max-width:359px){
  #product-attributes .flow-step:is(.bag-colour-step,.wristband-colour-step,.photo-options-step) .attributes-content{grid-template-columns:repeat(var(--photo-small-columns,2),minmax(0,1fr))!important}
}

/* Grocery tote, step 2: compare the same artwork in one ink and in full colour. */
#product-attributes .flow-step.bag-printing-step .attributes-wraper{overflow-x:hidden;overflow-y:auto}
#product-attributes .flow-step.bag-printing-step .attributes-content{
  display:grid!important;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,240px))!important;
  grid-template-rows:none!important;grid-auto-rows:minmax(164px,1fr);grid-auto-columns:auto;
  align-items:stretch!important;align-content:center!important;justify-content:center!important;
  gap:12px;width:100%;min-width:0;max-width:100%;padding:4px;box-sizing:border-box;
  overflow-x:hidden;overflow-y:auto;
}
#product-attributes .flow-step.bag-printing-step .attributes-content>label{
  display:block;float:none;width:100%;min-width:0;max-width:none;height:100%;margin:0;padding:0;
}
#product-attributes .flow-step.bag-printing-step .option-item{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  width:100%;height:100%;min-height:164px;padding:12px 10px;box-sizing:border-box;
  border:1.5px solid var(--of-line);border-radius:12px;background:#fff;overflow:hidden;
}
#product-attributes .flow-step.bag-printing-step .option-item>br{display:none}
#product-attributes .flow-step.bag-printing-step .image-container{
  order:0;margin:0;padding:0;
  display:flex;align-items:center;justify-content:center;flex:1 1 0;width:100%;min-height:76px;max-height:150px;
}
#product-attributes .flow-step.bag-printing-step .image-container img{
  display:block;width:100%;height:100%;max-width:220px;max-height:150px;object-fit:contain;
}
#product-attributes .flow-step.bag-printing-step .option-text{
  order:1;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:2.6em;
  margin:0;padding:0;font-size:14px;line-height:1.3;text-align:center;
}
#product-attributes .flow-step.bag-printing-step label:has(input:checked) .option-item{
  border-color:var(--of-accent);background:#f2faff;box-shadow:0 0 0 2px rgba(17,160,219,.18);
}
#product-attributes .flow-step.bag-printing-step label:has(input:focus-visible) .option-item{
  outline:3px solid var(--of-accent-d);outline-offset:2px;
}

/* Per-line typography and logo layout; original named inputs still carry order data. */
#product-attributes .flow-step.design-text-step.is-active .attributes-content,
#product-attributes .flow-step.design-logo-step.is-active .attributes-content{
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:flex-start!important;align-content:start!important;overflow-y:auto!important;
  padding:4px 4px 10px;box-sizing:border-box;
}
.design-lines,.design-logo-controls{width:100%;min-width:0;box-sizing:border-box}
.design-line{margin-bottom:10px}
.design-line-title,.design-control-title{display:block;margin:0 0 5px;font-size:13px;font-weight:700;color:var(--of-ink)}
.design-line-controls{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:8px;align-items:center}
.flow-step .design-line-controls .design-line-text,
.flow-step .design-line-controls .design-line-size{width:100%!important;min-width:0;min-height:40px;height:40px;margin:0!important;padding:8px!important;box-sizing:border-box;font-size:14px!important}
.design-help{margin:5px 0 8px;font-size:13px;line-height:1.45;color:var(--of-mut)}
.flow-guide .flow-step.design-text-step .option-item>.option-text{position:static;display:block;margin:0 0 8px;padding:0;background:none;font-size:14px}
.design-logo-controls{max-width:520px!important;padding:12px;border:1px solid var(--of-line);border-radius:12px;background:#fff}
.design-logo-scale{display:flex;align-items:center;gap:12px;min-width:0}
.design-logo-scale input[type=range]{flex:1;min-width:0;width:100%;accent-color:var(--of-accent-d)}
.design-logo-scale>span{display:flex;align-items:center;gap:5px;flex:0 0 auto;font-size:14px}
.design-logo-scale input[type=number]{width:64px!important;min-height:38px;box-sizing:border-box}
.design-position-label{display:flex;flex-direction:column;gap:5px;width:100%;font-size:13px;font-weight:600}
.design-position-label select{margin:0;min-height:40px}
.design-logo-limit{margin-bottom:0}
.design-note-summary{width:100%;margin:10px 0 0;padding:10px;border:1px solid var(--of-line);border-radius:10px;background:var(--of-bg);box-sizing:border-box;font-size:12px;line-height:1.4}
.design-note-summary[hidden],.flow-step textarea[hidden]{display:none!important}
.design-note-summary pre{margin:6px 0 0;padding:0;border:0;background:none;color:var(--of-ink);font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}

/* AI settings can scroll; a generated image gets the panel instead of shrinking behind the form. */
body.pv-ai .flow-guide .pv-ai-view{overflow-y:auto;overflow-x:hidden}
.flow-guide .pv-ai-view>.pv-ai-info,.flow-guide .pv-ai-view>.pv-ai-consent,
.flow-guide .pv-ai-view>.pv-ai-logo-unavailable,.flow-guide .pv-ai-view>.pv-ai-generate,
.flow-guide .pv-ai-view>.pv-ai-status,.flow-guide .pv-ai-view>.pv-ai-settings{flex:0 0 auto}
.pv-ai-settings{align-self:flex-end;min-height:30px;padding:4px 8px;border:1px solid var(--of-line);border-radius:7px;background:#fff;color:var(--of-accent-d);font-size:12px;cursor:pointer}
.pv-ai-view.has-result>.pv-ai-info,.pv-ai-view.has-result>.pv-ai-consent,
.pv-ai-view.has-result>.pv-ai-logo-unavailable,.pv-ai-view.has-result>.pv-ai-generate{display:none!important}
.flow-guide .pv-ai-view.has-result{overflow:hidden;gap:4px;padding:6px 10px}
.flow-guide .pv-ai-view.has-result>.pv-ai-status{margin:0;font-size:11px;line-height:1.3}
.flow-guide .pv-ai-view.has-result>.pv-ai-result{flex:1 1 0;min-height:0;height:0;max-height:none;width:100%;margin:0;object-fit:contain}

/* One self-contained photo rail; zoom uses the guide's own overlay. */
body.order-flow-enabled .flow-guide .pv-photo-view>.w-product-images{display:none!important}
body.order-flow-enabled.pv-photos .flow-guide .pv-photo-view{display:flex!important;padding:8px!important;overflow:hidden}
.pv-photo-rail{display:flex;align-items:stretch;gap:6px;min-width:0;width:100%;height:100%;min-height:0}
.pv-photo-strip{display:flex;flex:1;gap:10px;min-width:0;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior:contain;padding:2px 0 8px}
.pv-photo-tile{display:flex;flex:0 0 calc((100% - 20px)/3);align-items:center;justify-content:center;min-width:100px;min-height:0;height:100%;box-sizing:border-box;padding:6px;border:1px solid var(--of-line);border-radius:10px;background:#fff;scroll-snap-align:start;cursor:zoom-in}
.pv-photo-tile img{display:block;max-width:100%;width:100%;height:100%;min-height:0;object-fit:contain}
.pv-photo-prev,.pv-photo-next{align-self:center;flex:0 0 30px;width:30px;height:40px;padding:0;border:1px solid var(--of-line);border-radius:8px;background:#fff;color:var(--of-accent-d);font-size:30px;line-height:1;cursor:pointer}
.of-lightbox{z-index:100000!important}
@media(max-width:599px){.pv-photo-tile{flex-basis:calc((100% - 10px)/2);min-width:80px}}

/* The optional last-step invitation and email gate remain separate from order notes. */
.flow-guide .ai-final-step.is-active .attributes-content{display:flex!important;flex-direction:column;justify-content:flex-start!important;align-items:stretch!important;gap:14px;overflow-y:auto!important;padding:4px 8px 16px}
.ai-preview-offer{box-sizing:border-box;width:100%;max-width:620px;margin:0 auto;padding:18px;border:1px solid #d9e4f3;border-radius:14px;background:linear-gradient(135deg,#f2f7ff,#fff);text-align:left;color:var(--of-ink)}
.ai-offer-heading{display:flex;align-items:center;gap:12px}
.ai-offer-icon{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:#010066;color:#fff;font-size:24px}
.ai-offer-label{display:block;color:#52617f;font-size:10px;font-weight:700;letter-spacing:.07em}
.ai-preview-offer h3{margin:3px 0 0;font-size:18px;line-height:1.3;color:#010066}
.ai-preview-offer p{margin:12px 0;font-size:13px;line-height:1.55}
.ai-preview-offer .ai-offer-warning{padding-left:10px;border-left:3px solid #ddaf32;color:#596378;font-size:12px}
.ai-offer-open{display:flex;justify-content:center;align-items:center;gap:16px;min-height:42px;width:100%;padding:10px 14px;border:0;border-radius:9px;background:#010066;color:#fff;font-weight:700;cursor:pointer}
.ai-offer-open:hover{background:#171c8a}
.ai-offer-skip{display:block;margin-top:10px;text-align:center;color:var(--of-mut);font-size:11px;line-height:1.4}
.pv-ai-view>.ai-preview-warning{flex:0 0 auto;margin:0 0 10px;padding:10px 12px;border:1px solid #eadcae;border-radius:9px;background:#fffbef;color:#51472d;font-size:12px;line-height:1.5;text-align:left}
.ai-preview-access{flex:0 0 auto;margin:4px 0 10px;text-align:left}
.ai-preview-access>label:first-child{display:block;color:var(--of-ink);font-size:13px;font-weight:700}
.ai-preview-access .ai-preview-email{box-sizing:border-box;display:block;width:100%;height:42px;margin:6px 0 10px;padding:9px 12px;border:1px solid #cad6e7;border-radius:9px;background:#fff;color:var(--of-ink);font-size:16px}
.ai-preview-access .ai-recovery-consent{display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--of-mut);font-size:12px;line-height:1.5;font-weight:400}
.ai-recovery-consent input{flex:0 0 auto;width:16px;height:16px;margin:2px 0 0;accent-color:#010066}
.ai-recovery-consent a{color:#010066;text-decoration:underline}
.pv-ai-view.has-result>.ai-preview-access{display:none!important}
.pv-ai-view.has-result>.ai-preview-warning{padding:6px 9px;margin:0;font-size:11px}
body.pv-ai .flow-guide .pv-ai-view:not(.has-result){padding:14px;scrollbar-width:thin}
body.pv-ai .flow-guide:has(.ai-final-step.is-active) .pv{--pv-h:clamp(190px,36svh,340px)}
@media(max-width:599px){.ai-preview-offer{padding:14px}.ai-preview-offer h3{font-size:17px}.flow-guide .ai-final-step.is-active .attributes-content{padding:4px 2px 12px}}
.ai-preview-gate-title{flex:0 0 auto;text-align:left;margin:0 0 8px}
.ai-preview-gate-title>span{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#566581}
.ai-preview-gate-title h3{margin:3px 0;color:#010066;font-size:18px;line-height:1.3}
.pv-ai-view.has-result>.ai-preview-gate-title{display:none!important}
.flow-guide .pv-ai-generate{background:#010066}

/* A single product-order card, with the existing description and native purchase controls. */
body.order-flow-enabled .flow-purchase-panel{box-sizing:border-box;display:block!important;width:auto!important;max-width:none!important;min-width:0;margin:14px 0 0!important;padding:20px!important;border:1px solid var(--of-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 20px rgba(20,34,67,.035);text-align:left!important}
body.order-flow-enabled .flow-purchase-panel>.w-block-box,body.order-flow-enabled .flow-purchase-panel .flow-quantity-container{box-sizing:border-box;float:none;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.order-flow-enabled .flow-purchase-panel .flow-order-intro{box-sizing:border-box;margin:0 0 18px;padding:15px 17px;border:1px solid #e1e9f5;border-radius:11px;background:#f6f8fc;color:var(--of-ink)}
body.order-flow-enabled .flow-order-intro .w-product-description-short{box-sizing:border-box;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important}
body.order-flow-enabled .flow-order-intro .description-short{font-size:14px;line-height:1.65;color:#43516b}
body.order-flow-enabled .flow-order-intro .description-short>:first-child{margin-top:0}
body.order-flow-enabled .flow-order-intro .description-short>:last-child{margin-bottom:0}
body.order-flow-enabled .flow-purchase-panel .w-product-quantity{padding:0!important;margin:0 0 14px!important;text-align:left!important}
body.order-flow-enabled .flow-purchase-panel .qty-input{display:flex;justify-content:flex-start;align-items:center;gap:14px;margin:0!important;padding:0!important}
body.order-flow-enabled .flow-purchase-panel .qty-input label{float:none;width:auto;margin:0;font-size:14px;font-weight:700}
body.order-flow-enabled .flow-purchase-panel .qty-input>.input{float:none;width:auto;margin:0}
body.order-flow-enabled .flow-purchase-panel #qty{box-sizing:border-box;min-width:86px;min-height:42px;margin:0;border-radius:9px}
body.order-flow-enabled .flow-purchase-panel .w-product-buttons,body.order-flow-enabled .flow-purchase-panel #product-buttons{margin:0!important;padding:0!important;text-align:left!important}
body.order-flow-enabled .flow-purchase-panel #btn-cart .add-to-cart{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;width:100%;max-width:400px;margin:0;padding:12px 20px;border-radius:10px;background:#010066;color:#fff;font-size:16px;line-height:1.4;white-space:normal}
body.order-flow-enabled .flow-price-tiers{box-sizing:border-box;width:auto!important;max-width:none!important;min-width:0;margin:14px 0 0!important;padding:15px 16px!important;border:1px solid var(--of-line);border-radius:14px;background:#fff}
body.order-flow-enabled .flow-price-tiers .heading-4{margin:0 0 10px;font-size:14px;color:var(--of-ink)}
body.order-flow-enabled .fg-launch.has-order-panel .fg-open{border:1px solid #dce3ee;background:#fff;color:#010066;box-shadow:none;padding:12px 16px}
body.order-flow-enabled .fg-launch.has-order-panel .fg-open strong{font-size:15px}
body.order-flow-enabled .fg-launch.has-order-panel .fg-open span{font-size:12px;color:#65738b}
@media(max-width:768px){
 body.order-flow-enabled .flow-purchase-panel{margin:12px var(--product-gutter,16px)!important;padding:16px!important}
 body.order-flow-enabled .flow-price-tiers{margin:12px var(--product-gutter,16px)!important;padding:12px!important}
 body.order-flow-enabled .flow-purchase-panel .flow-order-intro{padding:12px;margin-bottom:14px}
 body.order-flow-enabled .flow-purchase-panel #btn-cart .add-to-cart{max-width:none}
}

/* AI creation uses a full middle step; its image tab exists only after a successful preview. */
.pv-tabs button[hidden]{display:none!important}
.flow-guide .ai-preview-step>.selected-option{display:none!important}
.flow-guide .ai-preview-step.is-active .attributes-content{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;align-content:stretch!important;justify-content:flex-start!important;gap:0;height:auto;max-height:100%;overflow-y:auto!important;overflow-x:hidden!important;padding:6px 12px 18px;box-sizing:border-box;scrollbar-width:thin;touch-action:pan-y}
.flow-guide .ai-preview-step .attributes-content>.ai-preview-settings{flex:0 0 auto!important;box-sizing:border-box;width:100%!important;max-width:640px!important;margin:0 auto;padding:18px;border:1px solid #dce5f3;border-radius:13px;background:#f8faff;text-align:left}
.ai-preview-settings .ai-preview-intro{margin:8px 0 12px;color:#52617a;font-size:13px;line-height:1.5}
.ai-preview-settings .ai-preview-warning{margin:0 0 14px;padding:10px 12px;border:1px solid #eadcae;border-radius:9px;background:#fffbef;color:#51472d;font-size:12px;line-height:1.5}
.ai-preview-settings .pv-ai-info{margin:12px 0;color:#65738b;font-size:12px;line-height:1.5}
.ai-preview-settings .pv-ai-consent{margin:10px 0;font-size:12px;line-height:1.5}
.ai-preview-settings .pv-ai-status{margin:10px 0;color:#52617a;font-size:12px;line-height:1.5}
.ai-preview-settings .pv-ai-generate{display:block;box-sizing:border-box;min-height:44px;width:100%;margin-top:12px;padding:11px 16px;border:0;border-radius:9px;background:#010066;color:#fff;font-size:14px;font-weight:700;cursor:pointer}
.ai-preview-settings .ai-preview-skip{display:block;box-sizing:border-box;min-height:40px;width:100%;padding:9px 12px;border:1px solid #d6dfed;border-radius:9px;background:#fff;color:#010066;font-size:13px;cursor:pointer}
.ai-preview-settings button:disabled{opacity:.6;cursor:wait}
body.pv-ai .flow-guide .pv-ai-view{padding:6px!important;overflow:hidden!important}
@media(max-width:767px){
 body.fg-ai-step .flow-guide .fg-top .pv{--pv-h:clamp(96px,18svh,140px)}
 .flow-guide .ai-preview-step.is-active .attributes-content{padding:4px 4px 12px}
 .flow-guide .ai-preview-step .attributes-content>.ai-preview-settings{padding:14px}
}

.ai-preview-settings [hidden]{display:none!important}

/* Keep the native product widgets on one edge and give typography clear hierarchy. */
#product-form .flow-product-config .w-product-name,#product-form .flow-product-config .order-info{box-sizing:border-box;width:100%!important;margin-left:0!important;margin-right:0!important}
#product-form .flow-product-config .w-product-name{margin-top:0!important;margin-bottom:12px!important}
#product-form .flow-purchase-shell{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#product-form .flow-purchase-panel .w-block-box,#product-form .flow-purchase-panel .w-block-box>.block{float:none!important;width:100%!important;min-width:0;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#product-form .flow-order-intro .description-short,#product-form .flow-order-intro .description-short p{font-size:16px!important;line-height:1.65!important;color:#1c2b45!important}
#product-form .flow-purchase-panel .qty-input{display:flex!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box;width:100%!important;gap:14px;margin:0!important;padding:0!important}
#product-form .flow-purchase-panel .qty-input label{position:static!important;display:flex!important;align-items:center!important;float:none!important;width:auto!important;min-height:44px;margin:0!important;padding:0!important;line-height:1.3!important;transform:none!important}
#product-form .flow-purchase-panel .qty-input>.input{display:flex!important;align-items:center!important;float:none!important;width:auto!important;margin:0!important;padding:0!important}
#product-form .flow-purchase-panel #qty{height:44px!important;min-height:44px!important;margin:0!important;vertical-align:middle}
#product-form .flow-purchase-panel .w-product-buttons,#product-form .flow-purchase-panel #product-buttons,#product-form .flow-purchase-panel #btn-cart{margin:0!important;padding:0!important;text-align:left!important}
#product-form .flow-purchase-panel #btn-cart .add-to-cart{float:none!important;width:100%!important;max-width:400px!important;margin:0!important;text-align:center!important}
/* Font examples occupy three full-height rows and scroll horizontally for more choices. */
.flow-guide .flow-step.is-active .attributes-content.fg-on{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:stretch!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
.flow-guide .attributes-content.fg-on>.fg{display:flex!important;flex-direction:column!important;flex:1 1 0!important;width:100%!important;max-width:100%!important;min-width:0;min-height:0}
.flow-guide .attributes-content.fg-on .fg-search{flex:0 0 auto;max-width:none!important;width:100%!important;min-height:40px;margin:0 0 10px}
.flow-guide .attributes-content.fg-on .fg-grid{display:grid!important;flex:1 1 0!important;width:100%!important;min-height:0!important;max-height:none!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;grid-auto-columns:calc((100% - 16px)/3)!important;gap:8px!important;align-content:stretch!important;overflow-x:auto!important;overflow-y:hidden!important;box-sizing:border-box;padding:2px 2px 8px}
.flow-guide .attributes-content.fg-on .fg-card{box-sizing:border-box;width:100%;min-width:0;min-height:0!important;height:100%;justify-content:center;overflow:hidden}
.flow-guide .logo-step .lg-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;width:100%;margin-top:10px;padding:10px 12px;border:1px solid #dce3ee;border-radius:9px;background:#f6f8fc}
.flow-guide .logo-step .lg-selected[hidden],.flow-guide .logo-step .lg-drop[hidden]{display:none!important}
.flow-guide .lg-selected-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;color:#23334d}
.flow-guide .lg-remove{flex:0 0 auto;min-height:36px;padding:7px 10px;border:1px solid #cbd7e8;border-radius:8px;background:#fff;color:#010066;font-size:12px;font-weight:700;cursor:pointer}
.ai-preview-access .ai-recovery-notice{margin:8px 0 0;color:#52617a;font-size:12px;line-height:1.5;font-weight:400}
.ai-recovery-notice a{color:#010066;text-decoration:underline}
@media(max-width:768px){
 #product-form .flow-product-config .w-product-name,#product-form .flow-product-config .order-info,#product-form .flow-price-tiers,#product-form .flow-purchase-panel{box-sizing:border-box;width:calc(100% - 32px)!important;margin-left:16px!important;margin-right:16px!important}
 #product-form .flow-purchase-panel #btn-cart .add-to-cart{max-width:none!important}
 .flow-guide .attributes-content.fg-on .fg-grid{grid-auto-columns:calc((100% - 8px)/2)!important}
}

/* Keep price, quantity and total readable; the next tier is a real quantity action. */
.flow-guide .order-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center}
.flow-guide .order-bar .ob-progress{grid-column:1;grid-row:1;min-width:0}
.flow-guide .order-bar .ob-topline{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:3px}
.flow-guide .order-bar .ob-line{display:block;max-width:100%;white-space:normal!important;overflow:visible!important;text-overflow:unset!important;font-size:13px;line-height:1.4}
.flow-guide .order-bar .ob-prog-text{white-space:normal;line-height:1.3;font-size:12px}
.flow-guide .order-bar .ob-price{grid-column:1;grid-row:2;min-width:0}
.flow-guide .order-bar .ob-actions{grid-column:2;grid-row:1 / 3}
.flow-guide .order-bar .ob-track{height:4px;margin-top:5px}
.flow-guide .order-bar .ob-next-tier{display:inline-block;max-width:100%;padding:2px 0;border:0;background:transparent;color:#010066;font:inherit;text-align:left;line-height:1.4;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.flow-guide .order-bar .ob-next-tier:hover{color:#007fae}
.flow-guide .order-bar .ob-next-tier:focus-visible{outline:2px solid #01adee;outline-offset:3px;border-radius:3px}
@media(max-width:768px){
 .flow-guide .order-bar{grid-template-columns:minmax(0,1fr);gap:5px}
 .flow-guide .order-bar .ob-actions{grid-column:1;grid-row:3}
 .flow-guide .order-bar .ob-price{display:block;grid-column:1;grid-row:2}
 .flow-guide .order-bar .ob-tier{display:block;font-size:11px;line-height:1.3}
 .flow-guide .order-bar .ob-line{font-size:12px}
}

.ai-preview-settings .pv-ai-logo-confirmation{margin:6px 0 10px;font-size:12px;line-height:1.4;color:#334a70}

/* Compact footer: discounts belong beside the product quantity, not in an extra footer row. */
.flow-guide .order-bar{padding:8px 14px!important;gap:5px 14px}
.flow-guide .order-bar .ob-actions{grid-row:1}
.flow-guide .order-bar .ob-price[hidden]{display:none!important}
.flow-guide .order-bar .ob-price:not([hidden]){grid-column:1 / -1;grid-row:2;padding:4px 0 0}
#product-form .flow-purchase-panel .flow-control-wrapper{display:contents!important}
#product-form .flow-purchase-panel .flow-duplicate-qty-label{display:none!important}
#product-form .flow-purchase-panel .w-product-quantity{box-sizing:border-box;display:block;width:100%!important}
#product-form .product-next-tier{display:block!important;clear:both;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;margin:8px 0 0;padding:0;font-size:12px;line-height:1.4;color:#65738b;text-align:left}
#product-form .product-next-tier:empty{display:none}
#product-form .product-next-tier .ob-next-tier{display:inline-block;max-width:100%;margin:0;padding:3px 0;border:0;background:transparent;color:#010066;font:inherit;white-space:normal;word-break:normal;overflow-wrap:normal;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#product-form .product-next-tier .ob-next-tier:focus-visible{outline:2px solid #01adee;outline-offset:3px}
@media(max-width:768px){
 .flow-guide .order-bar .ob-actions{grid-row:2}
 .flow-guide .order-bar .ob-price:not([hidden]){grid-row:3}
}

#product-form .flow-purchase-panel .w-product-buttons{width:100%!important;max-width:100%!important}

/* Every product's active stage owns the full middle panel, regardless of its original widget layout. */
#product-attributes .flow-step.flow-slide{float:none!important;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;align-self:stretch}
#product-attributes .flow-step.flow-slide.is-active{display:flex!important;flex-direction:column;min-height:0;height:100%!important}
#product-attributes .flow-step.flow-slide.is-active>.attributes-wraper{display:flex!important;flex-direction:column;flex:1 1 0;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;min-height:0;height:auto!important}
#product-attributes .flow-step.flow-slide .attributes-content{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;align-self:stretch}
#product-attributes .flow-step .attributes-content.fg-on{height:100%!important;flex:1 1 0;align-items:stretch!important;justify-content:flex-start!important}
#product-attributes .text-colour-step .attributes-content.cm-on:not(:has(.pan:not([hidden])))>.cm{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(var(--colour-columns,4),minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:minmax(44px,1fr);width:100%!important;max-width:640px!important;min-width:0!important;align-self:center;gap:10px;justify-content:stretch!important;align-content:stretch!important;overflow-y:auto;overflow-x:hidden;padding:6px}
#product-attributes .text-colour-step .cm-on>.cm .cm-sw{box-sizing:border-box;width:100%;height:100%;min-height:44px;min-width:0;max-width:none;transform:none}
/* An open Pantone map owns the stage instead of entering the native option columns. */
.flow-guide #product-attributes .flow-step .attributes-content.cm-on{display:flex!important;flex-direction:column;flex-wrap:nowrap!important;align-items:stretch!important;align-content:stretch!important;justify-content:center!important;gap:6px}
.flow-guide #product-attributes .flow-step .attributes-content.cm-on:has(>.pan:not([hidden])){display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;grid-auto-flow:row!important;align-content:stretch!important;align-items:stretch!important;justify-content:stretch!important;gap:0!important;overflow:hidden!important;padding:4px!important}
.flow-guide #product-attributes .cm-on>.pan:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 36px minmax(0,1fr) auto;gap:6px;box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;height:100%!important;min-height:0;margin:0!important;padding:10px!important;align-self:stretch;overflow:hidden}
.flow-guide #product-attributes .pan>.pan-back{justify-self:start;min-height:24px;margin:0;padding:2px 0}
.flow-guide #product-attributes .pan>.pan-head{min-width:0;min-height:36px;margin:0}
.flow-guide #product-attributes .pan>.pan-search{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;height:36px!important;min-height:36px;margin:0!important;padding:7px 10px}
.flow-guide #product-attributes .pan>.pan-grid{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(auto-fill,minmax(32px,1fr))!important;grid-template-rows:none!important;grid-auto-rows:34px;align-content:start;gap:8px;box-sizing:border-box;min-height:0;height:100%;max-height:none;width:100%!important;max-width:none!important;margin:0;padding:5px;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.flow-guide #product-attributes .pan-grid .cm-sw{box-sizing:border-box;width:100%!important;height:34px!important;min-height:34px;min-width:0;max-width:none!important;margin:0;transform:none}
.flow-guide #product-attributes .pan>.pan-extra{font-size:12px;line-height:1.4;color:var(--of-mut)}
.flow-guide #product-attributes .pan>.pan-extra:empty{display:none}
#product-attributes .logo-step .lg-remove{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-width:90px;min-height:36px;max-width:none!important;padding:7px 10px!important;font-size:12px!important;line-height:1.3!important;white-space:nowrap!important}
#product-attributes .logo-step .lg-selected{max-width:100%;min-width:0}
#product-attributes .logo-step img.lg-thumb{max-height:70px!important;max-width:110px!important;object-fit:contain;margin:8px auto!important}
.ai-info-trigger{float:right;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin:-4px 0 0 8px;padding:0;border:1px solid #ced8e8;border-radius:50%;background:#fff;color:#010066;font:bold italic 16px Georgia,serif;cursor:pointer}
.ai-info-dialog{position:fixed;inset:0;z-index:100002;box-sizing:border-box;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 40px);overflow-y:auto;margin:auto;padding:22px;border:1px solid #d9e3f1;border-radius:16px;background:#fff;color:#1b2941;box-shadow:0 20px 70px #111a3d40}
.ai-info-dialog::backdrop{background:#111a3d80}
.ai-info-dialog h2{margin:0 0 12px;font-size:20px;font-weight:700}
.ai-info-dialog p{margin:0 0 12px;font-size:14px;line-height:1.6}
.ai-info-close{min-height:40px;padding:8px 20px;border:0;border-radius:9px;background:#010066;color:#fff;font-weight:700;cursor:pointer}
.ai-compact-note{margin:0 0 10px;font-size:12px;line-height:1.4;color:#695323}
.flow-guide .ai-preview-step .attributes-content>.ai-preview-settings{padding:14px 16px}
.ai-preview-settings .ai-preview-access{margin:0 0 8px}
.ai-preview-settings .ai-preview-email{margin:6px 0 8px}
.ai-preview-settings .pv-ai-consent{margin:8px 0;font-size:12px}
.ai-preview-settings .pv-ai-generate{margin-top:8px}
.ai-preview-settings :is(.pv-ai-status,.pv-ai-logo-confirmation):empty{display:none}
@media(min-width:768px){body.fg-ai-step .flow-guide .fg-top .pv{--pv-h:clamp(100px,20svh,190px)}}

/* Shared artwork controls remain full width for every native logo attribute. */
#product-attributes .flow-step.logo-step .attributes-content{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;overflow-y:auto!important;overflow-x:hidden!important;gap:10px}
#product-attributes .flow-step.logo-step .attributes-content>label,#product-attributes .flow-step.logo-step .attributes-content>.design-logo-controls{box-sizing:border-box;width:100%!important;max-width:560px!important;min-width:0;margin:0!important}
#product-attributes .flow-step.logo-step .lg-remove{flex:0 0 auto!important;max-width:none!important;letter-spacing:0}
#product-attributes .flow-step.logo-step .design-logo-scale>span{display:flex;align-items:center;flex:0 0 auto;width:auto!important;max-width:none!important}

/* Isolate the font picker from the theme's generic select-content sizing. */
/* Silicone wristbands: one order can contain several colour/size variants. */
.flow-guide #product-attributes .flow-step.wristband-design-step .attributes-content.wb-editor-on{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;align-content:stretch!important;overflow-x:hidden!important;overflow-y:auto!important;padding:4px!important}
.flow-guide #product-attributes .wristband-design-step .wb-editor-on>label,.flow-guide #product-attributes .wristband-design-step .wb-editor-on>br,.flow-guide #product-attributes .wristband-design-step .wb-editor-on>.pk,.flow-guide #product-attributes .wristband-design-step .wb-editor-on>input{display:none!important}
.flow-guide #product-attributes .wristband-design-step .wb-editor{display:flex;flex-direction:column;flex:0 0 auto;gap:9px;width:100%!important;max-width:none!important;min-width:0;box-sizing:border-box;padding:0 3px 8px}
.wb-variants{display:flex;gap:6px;overflow-x:auto;padding:2px;flex:0 0 auto}
.wb-variant,.wb-variant-actions button{flex:0 0 auto;min-height:30px;padding:5px 10px;border:1px solid var(--of-line);border-radius:8px;background:#fff;color:var(--of-ink);font-size:12px;cursor:pointer}
.wb-variant.is-selected{background:#010066;color:#fff;border-color:#010066}
.wb-variant-actions{display:flex;flex-wrap:wrap;gap:6px}
.wb-variant-actions .wb-add{color:#010066;font-weight:700}
.wb-variant-actions button:disabled{opacity:.4;cursor:default}
.wb-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.wb-type{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:58px;padding:6px;border:1px solid var(--of-line);border-radius:10px;background:#fff;color:var(--of-ink);font-size:12px;font-weight:700;line-height:1.2;cursor:pointer}
.wb-type.is-selected{border-color:var(--of-accent);background:#eefaff;box-shadow:0 0 0 1px var(--of-accent)}
.wb-type-sample{display:block;width:70%;height:15px;border-radius:5px;background:#164ab7;box-shadow:inset 0 -3px 4px #0002,inset 0 2px 3px #fff4}
.wb-type[data-type="2 Segmented"] .wb-type-sample{background:linear-gradient(90deg,#164ab7 50%,#f4d321 50%)}
.wb-type[data-type="3 Segmented"] .wb-type-sample{background:linear-gradient(90deg,#164ab7 33.3%,#fff 33.3%,#fff 66.6%,#d92432 66.6%)}
.wb-type[data-type="Swirl"] .wb-type-sample{background:repeating-radial-gradient(ellipse at 20% 90%,#164ab7 0 5px,#fff 7px 11px,#164ab7 14px 20px)}
.wb-colours{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
.wb-colour{display:flex;flex-direction:column;gap:5px;min-width:0}
.wb-colour>label,.wb-size-heading{margin:0;font-size:12px;font-weight:700;color:var(--of-ink)}
.wb-choice{display:flex;align-items:center;gap:5px;min-width:0}
.wb-swatch{display:inline-flex;align-items:center;justify-content:center;color:#8490a5;flex:0 0 25px;width:25px;height:32px;border:1px solid #d5dce7;border-radius:7px}
.flow-guide #product-attributes .wb-editor select,.flow-guide #product-attributes .wb-editor input{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0!important;height:36px!important;min-height:36px!important;margin:0!important;padding:6px!important;border:1px solid var(--of-line);border-radius:8px;background:#fff;font-size:13px!important;color:var(--of-ink)}
.wb-colours>.pk{grid-column:1/-1;width:100%!important;max-width:none!important}
.wb-sizes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.wb-sizes>label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;font-weight:600;color:var(--of-ink)}
.wb-total{font-size:12px;font-weight:700;color:#010066;line-height:1.4}
.wb-total.is-invalid{color:#b43b2f}
.wb-legacy{margin:0;padding:9px;border-radius:8px;background:#fff6df;font-size:12px}
.wb-editor [hidden]{display:none!important}
.wb-edit-order{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:6px 8px;border:1px solid #dfe5ef;border-radius:8px;background:#f6f8fc;color:#010066;font-size:12px;font-weight:600;cursor:pointer;text-align:center}
.flow-guide:has(.wristband-design-step.is-active) .fg-top .pv{--pv-h:clamp(80px,14svh,130px)}
@media(max-width:499px){.wb-colours{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-type{font-size:11px;padding:5px}.wb-type-sample{width:90%}.wb-editor{gap:7px}.wb-variant-actions button{font-size:11px;padding:4px 7px}.wb-sizes{gap:5px}.wb-sizes>label{font-size:11px}}
.flow-guide #product-attributes .flow-step.font-step .attributes-content.fg-on{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important;align-content:stretch!important;align-items:stretch!important;justify-content:stretch!important;gap:6px;overflow:hidden!important}
.flow-guide #product-attributes .font-step .font-picker{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:40px minmax(0,1fr);gap:8px;box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:2px!important;align-self:stretch!important}
.flow-guide #product-attributes .font-step .fg-search{width:100%!important;max-width:none!important;min-width:0!important;height:40px!important;margin:0!important}
.flow-guide #product-attributes .font-step .fg-grid{display:grid!important;grid-template-columns:none!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - 20px)/3)!important;gap:8px!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;align-content:stretch!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 10px;box-sizing:border-box}
.flow-guide #product-attributes .font-step .fg-card{width:100%!important;max-width:none!important;min-width:0!important;height:100%!important;min-height:0!important;margin:0!important;justify-content:center;box-sizing:border-box;overflow:hidden}
.flow-guide #product-attributes .font-step .fg-sample{max-width:100%;flex:0 0 auto}
@media(min-width:769px){
 .flow-guide #product-attributes .flow-step.design-text-step .attributes-content{padding:4px!important;gap:6px!important}
 .flow-guide #product-attributes .design-text-step .option-item>.option-text{display:none!important}
 .flow-guide #product-attributes .design-text-step .design-lines{max-width:680px!important;width:100%!important}
 .flow-guide #product-attributes .design-text-step .design-line{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:10px;margin:0 0 9px}
 .flow-guide #product-attributes .design-text-step .design-line-title{margin:0;font-size:12px}
 .flow-guide #product-attributes .design-text-step .design-line-controls input,.flow-guide #product-attributes .design-text-step .design-line-controls select{height:38px!important;min-height:38px!important}
 .flow-guide #product-attributes .design-text-step .design-help{margin:2px 0;font-size:12px;line-height:1.3}
 .flow-guide #product-attributes .flow-step.design-logo-step .attributes-content{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:min-content;align-items:start!important;align-content:start!important;gap:14px;padding:4px!important}
 .flow-guide #product-attributes .flow-step.design-logo-step .attributes-content>label,.flow-guide #product-attributes .flow-step.design-logo-step .attributes-content>.design-logo-controls{width:100%!important;max-width:none!important;margin:0!important}
 .flow-guide #product-attributes .design-logo-step .design-logo-controls{padding:10px}
 .flow-guide #product-attributes .design-logo-step .design-help{font-size:12px;line-height:1.3;margin:5px 0 8px}
 .flow-guide #product-attributes .design-logo-step .lg-drop{min-height:100px}
}
@media(max-width:768px){
 .flow-guide #product-attributes .font-step .fg-grid{grid-auto-columns:calc((100% - 12px)/2)!important}
 .flow-guide #product-attributes .font-step .fg-sample{font-size:18px}
}

/* Keep native colour samples square inside the centered option cards. */
.flow-guide #product-attributes .flow-step.tiles .option-item .option-color{display:block;box-sizing:border-box;flex:0 0 34px;width:34px!important;min-width:34px;height:34px!important;min-height:34px;padding:0;margin:4px auto 0;border:1px solid #ccd5e2;border-radius:8px;float:none}

/* Give the sketch more room on larger screens, while retaining space for choices. */
.flow-guide .pv-stage svg{height:100%;max-width:100%}
@media(min-width:1000px) and (min-height:850px){
 .flow-guide.is-open{width:min(1000px,calc(100vw - 48px));height:min(900px,calc(100svh - 48px))}
 .flow-guide .fg-top .pv{--pv-h:clamp(240px,30svh,360px)}
}

/* Multiple print messages use the full available width, one field per row. */
.flow-guide #product-attributes .flow-step.fields.message-fields-step.is-active .attributes-content{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;align-content:stretch!important;justify-content:flex-start!important;width:100%;max-width:none;gap:10px;padding:4px;overflow-x:hidden;overflow-y:auto;box-sizing:border-box}
.flow-guide #product-attributes .flow-step.fields.message-fields-step .attributes-content>label{flex:0 0 auto;width:100%!important;max-width:none!important;min-width:0;margin:0!important}
.flow-guide #product-attributes .flow-step.fields.message-fields-step .option-item{position:relative;display:block!important}
.flow-guide #product-attributes .flow-step.fields.message-fields-step .option-text{width:auto!important;max-width:calc(100% - 100px)}
.flow-guide #product-attributes .flow-step.fields.message-fields-step .tx-count{position:absolute;z-index:2;top:0;right:8px;width:auto!important;margin:0;padding:0 4px;background:#fff;font-size:10px;line-height:14px}
.flow-guide #product-attributes .flow-step.fields.message-fields-step .js-attr-text-input input[type=text]{height:40px;min-height:40px;padding:8px 12px;font-size:16px}

/* Binary accessories: two compact choices beside one independent image. */
.flow-guide #product-attributes .flow-step.binary-accessory-step .attributes-content{position:relative;display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;grid-template-rows:64px 64px!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-auto-rows:auto!important;align-items:stretch!important;align-content:start!important;justify-content:stretch!important;gap:10px;width:100%!important;min-width:0;overflow-y:auto!important;overflow-x:hidden!important;padding:4px!important;box-sizing:border-box}
.flow-guide #product-attributes .binary-accessory-step .attributes-content>label{width:100%!important;max-width:none!important;height:100%!important;min-width:0;margin:0!important}
.flow-guide #product-attributes .binary-accessory-step .binary-yes{grid-column:1;grid-row:1}
.flow-guide #product-attributes .binary-accessory-step .binary-no{grid-column:1;grid-row:2}
.flow-guide #product-attributes .binary-accessory-step .option-item{display:flex!important;flex-direction:column!important;justify-content:center!important;box-sizing:border-box;width:100%!important;height:100%!important;min-height:0!important;padding:12px 8px!important}
.flow-guide #product-attributes .binary-accessory-step .image-container,.flow-guide #product-attributes .binary-accessory-step br{display:none!important}
.flow-guide #product-attributes .binary-accessory-step .option-text{position:static!important;width:auto!important;margin:0!important;padding:0!important;max-width:100%!important;white-space:normal!important;font-size:13px!important}
.flow-guide #product-attributes .binary-accessory-step label.is-checked .option-item:after{top:3px;right:3px;width:15px;height:15px;line-height:15px;font-size:10px}
.flow-guide #product-attributes .flow-step.binary-accessory-photo .attributes-content{grid-template-rows:64px 64px minmax(0,1fr)!important}
.flow-guide #product-attributes .binary-accessory-step .accessory-zoom{position:relative;grid-column:2;grid-row:1/4;display:block;box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;height:clamp(150px,30svh,310px);margin:0;padding:12px;border:1px solid #dce5f0;border-radius:12px;background:#fff;color:#010066;cursor:zoom-in;overflow:hidden}
.flow-guide #product-attributes .binary-accessory-step .accessory-zoom:hover{border-color:#00b9e8;background:#f7fcff}
.flow-guide #product-attributes .binary-accessory-step .accessory-zoom>img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0;object-fit:contain}
.accessory-magnifier{position:absolute;right:10px;bottom:10px;box-sizing:content-box;width:22px;height:22px;padding:7px;border:1px solid #dce5f0;border-radius:50%;background:#fff;color:#010066;pointer-events:none;box-shadow:0 2px 8px #15213b12}
@media(max-width:420px){.flow-guide #product-attributes .flow-step.binary-accessory-step .attributes-content{grid-template-columns:90px minmax(0,1fr)!important;gap:8px}}
.accessory-image-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:20px;border:1px solid #dbe4ef;border-radius:16px;background:#fff;color:#15213b;box-shadow:0 24px 80px #10183155;z-index:100010}
.accessory-image-dialog::backdrop{background:#10183199}
.accessory-image-dialog h2{margin:0 85px 16px 0;font-size:20px;font-weight:700;line-height:1.4}
.accessory-image-dialog>img{display:block;object-fit:contain;width:100%;height:min(65dvh,650px);margin:auto}
.accessory-image-close{position:absolute;right:16px;top:16px;padding:8px 14px;border:1px solid #dbe4ef;border-radius:8px;background:#f6f8fc;color:#010066;font-weight:700;cursor:pointer}
.accessory-zoom:focus-visible,.accessory-image-close:focus-visible{outline:3px solid #00b9e8;outline-offset:2px}
