/* Scheme B with live catalogue, artwork, quantities and existing order persistence. */
#configuration.workbench-ready{display:flex!important;flex-direction:column;gap:0;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:clip;max-width:100%;width:100%}
.workbench-ready .config-overview{position:static!important;display:grid!important;grid-template-columns:70px minmax(0,1fr) auto;gap:6px 14px;padding:16px 20px!important;border:0!important;border-bottom:1px solid var(--line)!important;background:#fff!important;align-items:center;width:100%;box-shadow:none}
.workbench-ready #config-images{grid-column:1!important;grid-row:1/3!important;margin:0!important}.workbench-ready #config-name{grid-column:2!important;grid-row:1!important;font-size:20px!important;margin:0!important}.workbench-ready #config-description{grid-column:2!important;grid-row:2!important;font-size:13px!important}.workbench-ready #config-price-view{grid-column:3!important;grid-row:1/3!important;margin:0!important;padding:0 0 0 18px!important;border:0!important;border-left:1px solid var(--line)!important;display:flex!important;gap:8px;align-items:center}.workbench-ready #config-price-view p[hidden]{display:none!important}.workbench-ready #config-price-view select{min-height:38px}.workbench-ready #config-images img{height:64px!important;width:64px!important}.workbench-ready #config-images small{display:none}
.workbench-ready .config-controls{padding:18px 20px!important;display:block!important;border:0!important;min-width:0}.workbench-ready .config-plan-section{margin:0!important;padding:0!important;border:0!important;background:transparent!important}.workbench-ready .field-heading>label{font-size:18px!important}.workbench-ready #plan-price-note{font-size:12px;max-width:850px;margin:0 0 12px!important;line-height:1.6}
.workbench-ready #plan-options{display:flex!important;flex-direction:column;gap:0!important}.workbench-ready #plan-options[hidden],.workbench-ready .config-plan-section[hidden]{display:none!important}.ready-plan-row{border-bottom:1px solid var(--line);position:relative;padding-right:0}.ready-plan-row.is-selected{border:1px solid #c08c68;border-radius:7px;background:#fffaf5;overflow:clip}.workbench-ready .workspace-plan{border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;margin:0!important;padding:10px 104px 10px 12px!important;display:flex!important;min-height:76px;gap:8px!important;align-items:center!important;width:100%}.workbench-ready .workspace-plan:has(input:checked){background:#fff3e9!important}.workbench-ready .workspace-plan>input{flex:none;width:15px;height:15px;margin:0!important}.workbench-ready .plan-summary{display:grid!important;grid-template-columns:70px minmax(145px,1fr) minmax(105px,.7fr) minmax(110px,.7fr)!important;grid-template-rows:auto auto;gap:3px 12px!important;align-items:center;width:100%}.workbench-ready .plan-summary>b{grid-column:2!important;grid-row:1!important;font-size:14px!important;line-height:1.5}.workbench-ready .plan-size{grid-column:2!important;grid-row:2!important;font-size:12px!important}.workbench-ready .plan-sketch{grid-column:1!important;grid-row:1/3!important;min-width:0}.workbench-ready .plan-sketch svg{min-height:0!important;height:52px!important;width:68px!important;max-width:100%}.workbench-ready .plan-summary-price{grid-column:3!important;grid-row:1/3!important;display:block!important;border:0!important;padding:0!important;align-self:center}.workbench-ready .plan-summary-price.unit{grid-column:4!important}.workbench-ready .plan-summary-price>small{font-size:11px!important;margin-bottom:4px}.workbench-ready .plan-summary-price .price-primary{font-size:16px!important;display:flex!important;gap:4px!important;white-space:nowrap}.workbench-ready .plan-summary-price.unit .price-primary{font-size:21px!important}.workbench-ready .plan-summary-price strong{font-size:16px!important}.workbench-ready .plan-summary-price .price-primary small{font-size:10px!important}
.price-alternate{display:none!important}.ready-details{position:absolute;right:10px;top:24px;padding:7px 5px;border:0;background:transparent;color:#a25e38;font-size:12px;line-height:1.4;cursor:pointer;min-height:32px;width:85px;z-index:1}.ready-details:hover{text-decoration:underline;text-underline-offset:3px}.ready-details:focus-visible{outline:2px solid #a25e38;outline-offset:2px}
.ready-expanded{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);background:#fff;border-top:1px solid #e5cbb9;min-width:0}.ready-expanded[hidden]{display:none!important}.ready-preview{padding:18px;background:#f6f9f4;border-right:1px solid var(--line);min-width:0}.ready-fields{padding:16px 20px;min-width:0}.workbench-ready #finished-preview{border:0!important;margin:0!important;padding:0!important;background:none!important;display:block!important}.workbench-ready #finished-preview:empty::before{content:'选择图案后查看成品效果';display:block;text-align:center;padding:70px 12px;color:var(--muted)}html[lang=es] .workbench-ready #finished-preview:empty::before{content:'Elige un diseño para ver el resultado'}html[lang=en] .workbench-ready #finished-preview:empty::before{content:'Choose artwork to preview your product'}.workbench-ready .finished-preview-heading h3{font-size:18px!important}.workbench-ready .preview-canvas{width:100%;min-height:0!important;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden}.workbench-ready .preview-canvas svg{max-height:280px!important;width:100%!important;min-height:0!important}.workbench-ready .preview-canvas .angle-zoom{padding:0!important}.workbench-ready .preview-canvas figcaption{font-size:13px!important}.workbench-ready .preview-tabs{margin:8px 0!important}.workbench-ready .preview-tabs button{min-height:30px!important;padding:4px 8px!important;font-size:12px!important}.workbench-ready .preview-meta,.workbench-ready .preview-reference-note{font-size:11px!important;line-height:1.55!important}.workbench-ready .position-designs{border:0!important;margin:0!important;padding:0 0 16px!important}.workbench-ready .position-designs>h3{font-size:17px!important}.workbench-ready .position-designs>.muted{font-size:12px!important;line-height:1.5!important}.workbench-ready .position-design-card{padding:10px!important;border:1px solid var(--line)!important;background:#fafcf8!important;border-radius:7px!important}.workbench-ready .visual-design-trigger img{width:52px!important;height:52px!important}.workbench-ready .visual-design-trigger strong{font-size:14px!important}.workbench-ready .position-upload-entry{font-size:11px!important;min-height:30px!important;padding:6px 8px!important}.workbench-ready .position-design-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.workbench-ready .position-design-grid.single-position{grid-template-columns:1fr!important}.workbench-ready .same-design-toggle{display:none!important}.workbench-ready .config-quantity-section{border-top:1px solid var(--line);padding-top:14px!important}.workbench-ready .size-quantity-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}.workbench-ready .size-quantity-grid label{display:flex!important;align-items:center!important;gap:6px!important;padding:7px!important}.workbench-ready .size-quantity-grid input{min-height:34px!important;width:100%!important;min-width:0!important;font-size:15px!important;padding:4px 6px!important}.workbench-ready .size-quantity-grid span{font-size:13px!important}.workbench-ready .size-batch legend{font-size:17px!important}.workbench-ready #size-batch-hint{font-size:12px!important;line-height:1.5!important}.workbench-ready #size-batch-summary{font-size:12px!important}.workbench-ready #position-picker{margin:0 0 14px!important}.workbench-ready .side-options{display:grid;grid-template-columns:1fr 1fr!important}.workbench-ready .side-options label{min-height:70px!important}.workbench-ready .side-options svg{width:58px!important;height:58px!important}
.ready-checkout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:16px 20px;border-top:1px solid var(--line);align-items:center;background:#fff}.workbench-ready #quote{display:block!important;border:0!important;background:none!important;margin:0!important;padding:0!important}.workbench-ready .workspace-totals{display:flex!important;gap:28px!important;padding:0!important;border:0!important}.workbench-ready .workspace-totals>div{padding:0!important}.workbench-ready #quote .workspace-totals .price-primary{font-size:24px!important;line-height:1.4!important}.workbench-ready .workspace-totals span{font-size:12px!important}.workbench-ready .workspace-unit-equation{font-size:12px!important;margin:6px 0!important}.workbench-ready .workspace-shipping{font-size:12px!important;margin:4px 0!important}.workbench-ready .workspace-price-notes{font-size:11px!important}.workbench-ready .config-actions{display:flex!important;flex-direction:row-reverse;flex-wrap:wrap;gap:8px!important;margin:0!important;padding:0!important;border:0!important;max-width:440px;justify-content:flex-start}.workbench-ready .config-actions>.primary,.workbench-ready .config-actions>.secondary{min-height:44px!important;padding:10px 14px!important;width:auto!important;font-size:13px!important;flex:none!important}.workbench-ready #config-error:not(:empty){flex-basis:100%}.workbench-ready #config-more-hint{font-size:11px;flex-basis:100%;max-width:400px;margin:3px 0!important}.ready-gallery-current{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid #cbd9c9;border-radius:8px;background:#f3f8ef;margin:0 0 14px}.ready-gallery-current img{width:68px;height:68px;object-fit:contain;background:#fff;border-radius:5px}.ready-gallery-current>div{display:grid;gap:5px}.ready-gallery-current small{color:var(--muted);font-size:12px}.ready-gallery-current strong{font-size:16px}.ready-gallery-current span{font-size:12px}.gallery-design{position:relative}.gallery-design[aria-pressed=true]{outline:2px solid #ae754c;outline-offset:-2px;background:#fff6ec}.ready-selected-art{position:absolute;right:8px;top:8px;background:#2e6555;color:#fff;border-radius:4px;padding:4px 8px;font-size:12px}
@media(max-width:1100px){.workbench-ready .plan-summary{grid-template-columns:62px minmax(130px,1fr) 85px 100px!important;gap:3px 7px!important}.workbench-ready .plan-summary-price>small{max-width:85px;font-size:10px!important}.ready-expanded{grid-template-columns:1fr}.ready-preview{border-right:0;border-bottom:1px solid var(--line)}.workbench-ready .preview-canvas{max-width:570px;margin:auto}.workbench-ready .preview-canvas svg{max-height:220px!important}.ready-checkout{grid-template-columns:1fr}.workbench-ready .config-actions{max-width:none}.workbench-ready .config-actions>button{flex:1!important}.workbench-ready #config-more-hint{max-width:none}}
@media(max-width:700px){#config-step .config-step-heading{gap:8px!important}.workbench-ready .config-overview{grid-template-columns:54px minmax(0,1fr)!important;padding:12px!important;gap:5px 10px}.workbench-ready #config-images img{width:54px!important;height:54px!important}.workbench-ready #config-name{font-size:16px!important}.workbench-ready #config-description{font-size:11px!important}.workbench-ready #config-price-view{grid-column:1/-1!important;grid-row:3!important;border:0!important;padding:8px 0 0!important}.workbench-ready .config-controls{padding:12px 9px!important}.workbench-ready .workspace-plan{padding:10px 4px 32px 8px!important;gap:4px!important;min-height:86px}.workbench-ready .plan-summary{grid-template-columns:44px minmax(0,1fr) 82px!important;gap:4px 6px!important}.workbench-ready .plan-sketch svg{width:42px!important;height:43px!important}.workbench-ready .plan-summary>b{font-size:12px!important;line-height:1.45!important}.workbench-ready .plan-size{font-size:10px!important}.workbench-ready .plan-summary-price:not(.unit){display:none!important}.workbench-ready .plan-summary-price.unit{grid-column:3!important}.workbench-ready .plan-summary-price.unit .price-primary{font-size:17px!important;gap:2px!important;white-space:normal}.workbench-ready .plan-summary-price .price-primary small{font-size:9px!important}.ready-details{top:auto;bottom:3px;right:6px;min-height:26px;padding:4px!important;font-size:11px;width:82px}.ready-plan-row.is-selected .ready-details{top:58px;bottom:auto}.workbench-ready .field-heading>label{font-size:16px!important}.workbench-ready #plan-price-note{font-size:11px!important}.ready-preview{padding:12px}.ready-fields{padding:12px}.workbench-ready .preview-canvas svg{max-height:190px!important}.workbench-ready .position-design-grid{grid-template-columns:1fr 1fr!important}.workbench-ready .position-design-card{padding:8px!important}.workbench-ready .visual-design-trigger{grid-template-columns:1fr!important}.workbench-ready .visual-design-trigger>span{grid-column:1!important}.workbench-ready .visual-design-trigger strong{font-size:12px!important}.workbench-ready .position-design-card>label{font-size:12px!important;line-height:1.5}.workbench-ready .size-quantity-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ready-checkout{padding:12px;gap:12px}.workbench-ready .workspace-totals{gap:18px!important}.workbench-ready #quote .workspace-totals .price-primary{font-size:20px!important}.workbench-ready .config-actions{flex-direction:column}.workbench-ready .config-actions>.primary,.workbench-ready .config-actions>.secondary{width:100%!important}.ready-gallery-current img{width:54px;height:54px}.ready-gallery-current strong{font-size:14px}.ready-selected-art{font-size:10px;right:4px;top:4px}}

#preview-zoom{width:min(1000px,calc(100vw - 24px));max-width:1000px;max-height:calc(100dvh - 24px);padding:18px;overflow:hidden}#preview-zoom .dialog-head{margin-bottom:10px}#preview-zoom .dialog-head h2{font-size:20px}.zoom-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.zoom-views{display:flex;gap:6px;margin-right:auto}.zoom-toolbar button{border:1px solid #d1ddd2;border-radius:5px;padding:7px 13px;background:#fff;min-height:36px}.zoom-toolbar button.on{background:#fff1e4;border-color:#bd8057}.zoom-toolbar button:disabled{opacity:.4;cursor:default}.zoom-level{min-width:40px;text-align:center;font-size:13px}.zoom-viewport{overflow:auto;background:#f4f6f2;border:1px solid #e0e6dc;border-radius:7px;max-height:calc(100dvh - 205px);overscroll-behavior:contain}.zoom-canvas{margin:auto;flex:none}.zoom-canvas svg{display:block;width:100%;height:100%;max-height:none!important}.zoom-note{margin-top:10px;font-size:12px;color:#718076;line-height:1.5}@media(max-width:700px){#preview-zoom{padding:12px}.zoom-toolbar{gap:5px}.zoom-toolbar button{padding:6px 10px}.zoom-note{font-size:11px}.zoom-viewport{max-height:calc(100dvh - 210px)}}


#preview-zoom .dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}#preview-zoom .dialog-head button{width:36px;height:36px;border-radius:50%;background:#edf1ed;border:0;font-size:24px}#preview-zoom .zoom-note{font-size:12px}.ready-checkout #quote{order:0!important}.ready-checkout .config-actions{order:1!important}
@media(max-width:700px){.workbench-ready .ready-details{position:static!important;margin:-28px 6px 2px auto!important;display:block;min-height:24px!important;width:84px!important}.workbench-ready .ready-plan-row.is-selected .ready-details{position:static!important}}
/* Selection has one source of truth: the checked plan radio. Hover never mimics selection. */
#configuration.workbench-ready .workspace-plan .plan-summary>b::after{content:none!important;display:none!important}
#configuration.workbench-ready .workspace-plan:not(:has(input:checked)),#configuration.workbench-ready .workspace-plan:not(:has(input:checked)):hover{background:#fff!important;border:0!important;outline:0;box-shadow:none!important}
#configuration.workbench-ready .workspace-plan:not(:has(input:checked)):hover{background:#f4f6f3!important}
#configuration.workbench-ready .workspace-plan:has(input:checked){background:#fff3e9!important;border:0!important;box-shadow:none!important}
#configuration.workbench-ready .ready-plan-row{border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;outline:0}
#configuration.workbench-ready .ready-plan-row.is-selected{border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff3e9;overflow:clip}
#configuration.workbench-ready .workspace-plan input[type=radio]{accent-color:#a9653e}
#configuration.workbench-ready .workspace-plan:focus-within{outline:0;box-shadow:none!important}
#configuration.workbench-ready .workspace-plan input[type=radio]:focus-visible{outline:2px solid #506d7d;outline-offset:3px}
#configuration.workbench-ready .ready-expanded{border-top:1px solid #eadbce}
/* Dedicated header columns avoid overlaying the radio label with the details button. */
#configuration.workbench-ready .ready-plan-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:stretch}
#configuration.workbench-ready .ready-plan-row>.workspace-plan{grid-column:1;grid-row:1;padding:10px 12px!important;min-width:0;transform:none!important;z-index:auto!important}
#configuration.workbench-ready .ready-plan-row>.ready-details{position:static!important;grid-column:2;grid-row:1;align-self:center;justify-self:stretch;margin:0 8px 0 0!important;width:auto!important;z-index:2;top:auto!important;bottom:auto!important;right:auto!important}
#configuration.workbench-ready .ready-plan-row>.ready-expanded{grid-column:1/-1;grid-row:2}
#configuration.workbench-ready .ready-details:focus-visible{outline:2px solid #506d7d;outline-offset:2px}
@media(max-width:700px){#configuration.workbench-ready .ready-plan-row{grid-template-columns:minmax(0,1fr)}#configuration.workbench-ready .ready-plan-row>.workspace-plan{grid-column:1;grid-row:1;padding:10px 8px 6px!important}#configuration.workbench-ready .ready-plan-row>.ready-details{grid-column:1;grid-row:2;justify-self:end;min-height:30px!important;margin:0 8px 3px 0!important;padding:5px 9px!important}#configuration.workbench-ready .ready-plan-row>.ready-expanded{grid-column:1;grid-row:3}}
#configuration.workbench-ready .ready-checkout #quote{grid-column:1!important;grid-row:1!important;align-self:center}
#configuration.workbench-ready .ready-checkout .config-actions{grid-column:2!important;grid-row:1!important;align-self:center}
@media(max-width:1100px){#configuration.workbench-ready .ready-checkout #quote{grid-column:1!important;grid-row:1!important}#configuration.workbench-ready .ready-checkout .config-actions{grid-column:1!important;grid-row:2!important}}
/* Keep the full workspace width independent of whether a detail panel is open. */
#configuration.workbench-ready{align-items:stretch!important}
#configuration.workbench-ready>.config-overview,#configuration.workbench-ready>.config-controls,#configuration.workbench-ready>.ready-checkout{width:100%!important;max-width:100%;align-self:stretch!important;box-sizing:border-box}
#configuration.workbench-ready #plan-options,#configuration.workbench-ready .ready-plan-row{width:100%;min-width:0;box-sizing:border-box}
#configuration.workbench-ready .preview-canvas{min-height:280px!important;align-content:center;align-items:center}
#configuration.workbench-ready .preview-canvas.ready-single-view{display:flex!important;justify-content:center;align-items:center}
#configuration.workbench-ready .preview-canvas.ready-single-view>figure{width:50%;max-width:280px;margin:0 auto}
.ready-required-side{color:var(--muted);font-size:14px;line-height:1.7;max-width:330px;text-align:center;padding:25px;margin:auto;grid-column:1/-1}
@media(max-width:700px){#configuration.workbench-ready .preview-canvas{min-height:200px!important}#configuration.workbench-ready .preview-canvas.ready-single-view>figure{width:50%;max-width:190px}.ready-required-side{font-size:12px}}
.ready-select-prompt{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.workbench-ready .config-actions>button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
