@import url('./context-editor.css');
@import url('./editor-fonts.css');
.bb-product-page{max-width:1400px;margin:auto;padding:20px 4% 60px}.bb-breadcrumb{font-size:12px;color:#888;margin:0 0 25px}.bb-editor-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr);gap:45px;align-items:start}.bb-stage-panel{position:sticky;top:20px}.bb-stage-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;font-size:12px;color:#777}.bb-side-buttons{display:flex;gap:4px;border:1px solid #ddd;border-radius:999px;padding:4px}.bb-side-buttons button{border:0;padding:9px 18px;border-radius:99px;background:none;color:#777;font-size:13px}.bb-side-buttons button[aria-pressed=true]{background:#111;color:#fff}.bb-stage{position:relative;aspect-ratio:1;background:#f8f8f8;border-radius:18px;overflow:hidden}.bb-stage>img{width:100%;height:100%!important;object-fit:contain}.bb-stage>svg{position:absolute;border:1px dashed #a7a7a7;overflow:hidden;touch-action:none}.bb-stage>svg g{cursor:move}.bb-stage>svg g.is-selected .bb-selection-rect{stroke:#1687d9;stroke-width:.06;stroke-dasharray:.2 .12;fill:none;pointer-events:none}.bb-stage-note{font-size:11px;color:#888;line-height:1.5;text-align:center;margin:15px 0}.bb-history{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.bb-history button,.bb-selection-actions button{background:#fff;border:1px solid #ddd;border-radius:7px;padding:8px 10px;font-size:12px;color:#333}.bb-history button:disabled{opacity:.4}.bb-tools-panel h1{font-size:29px;line-height:1.15;margin:0 0 18px}.bb-product-description{font-size:13px;color:#777;max-height:120px;overflow:auto}.bb-tools-panel label{display:block;font-size:12px;font-weight:600;margin-bottom:10px}.bb-tools-panel input:not([type=checkbox]),.bb-tools-panel select,.bb-tools-panel textarea{display:block;width:100%;padding:10px;border:1px solid #ddd;border-radius:7px;background:#fff;color:#111;margin-top:6px}.bb-tools-panel input[type=color]{height:41px;padding:4px}.bb-tool-tabs{display:flex;border-bottom:1px solid #ddd;margin:24px 0 20px;gap:6px}.bb-tool-tabs button{flex:1;background:none;border:0;border-radius:0;padding:12px 5px;font-size:13px;color:#777}.bb-tool-tabs button[aria-selected=true]{box-shadow:inset 0 -2px #111;color:#111;font-weight:bold}.bb-upload{background:#f6f6f6;padding:20px;border:1px dashed #bbb;border-radius:12px;text-align:center;cursor:pointer}.bb-upload input{font-weight:normal;font-size:12px!important}.bb-help{color:#888;font-size:11px;line-height:1.6}.bb-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bb-secondary{background:#111;color:#fff;border:0;border-radius:8px;padding:10px 15px}.bb-template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.bb-template-grid button{background:#fafafa;border:1px solid #ddd;border-radius:8px;padding:12px 6px;font-size:11px}.bb-template-grid span{display:block;font-size:32px;margin-bottom:7px}.bb-template-grid button:first-child span{color:#dc336b}.bb-template-grid button:nth-child(2) span{color:#217ad6}.bb-template-grid button:nth-child(3) span{color:#b77915}.bb-template-grid button:last-child span{color:#e4a600}#bb-selection{border:1px solid #ddd;padding:16px;border-radius:12px;margin:20px 0}#bb-selection h3{font-size:14px;margin:0 0 15px}.bb-selection-actions{display:flex;gap:5px;flex-wrap:wrap}.bb-layers{border-bottom:1px solid #ddd;padding:18px 0}.bb-layers summary{font-size:13px;font-weight:bold;cursor:pointer}#bb-layers{display:grid;gap:7px;margin-top:12px}#bb-layers button{text-align:left;padding:9px 12px;background:#fafafa;border:1px solid #eee;border-radius:6px;font-size:12px}#bb-layers button[aria-pressed=true]{border-color:#1687d9;background:#eff7ff}.bb-order-box{margin-top:25px}.bb-price-summary{display:flex;justify-content:space-between;align-items:center;margin:20px 0 5px;font-size:13px}.bb-price-summary strong{font-size:23px;font-weight:500}.bb-order-box>.bb-button{width:100%;margin-top:14px}.bb-quality-confirm label{font-weight:normal;display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#888}.bb-quality-confirm input{margin-top:3px;flex-shrink:0}.bb-alert{background:#fff7e8;border:1px solid #f1d8a4;border-radius:9px;padding:13px;font-size:12px}.bb-review-dialog{border:0;border-radius:20px;padding:35px;width:min(800px,94vw);max-height:90vh;overflow:auto}.bb-review-dialog h2{font-size:27px;margin-top:15px}.bb-review-dialog p{font-size:13px;color:#777}.bb-review-dialog label{display:block;font-size:13px;margin:25px 0}.bb-review-dialog .bb-button{width:100%}#bb-review-faces{display:grid;grid-template-columns:1fr 1fr;gap:20px}#bb-review-faces figure{margin:0;text-align:center;background:#f8f8f8;border-radius:12px;padding:10px}#bb-review-faces img{max-height:360px;object-fit:contain;width:100%}#bb-review-faces figcaption{font-size:13px;color:#777;padding:10px}#bb-editor-message{font-size:12px}#bb-editor-message.error,#bb-review-message.error{color:#ba281e}#bb-quality.is-low{color:#b06b00}@media(max-width:900px){.bb-editor-layout{grid-template-columns:1fr;gap:25px}.bb-stage-panel{position:relative;top:auto}.bb-stage{max-width:640px;margin:auto}.bb-tools-panel h1{font-size:26px}.bb-product-page{padding:15px 18px 40px}.bb-stage-top{margin-bottom:12px}.bb-tools-panel{max-width:640px;width:100%;margin:auto}.bb-review-dialog{padding:25px 20px}.bb-stage>svg{border-color:#777}.bb-breadcrumb{margin-bottom:18px}}@media(max-width:480px){.bb-history button{font-size:11px}.bb-template-grid{gap:6px}.bb-side-buttons button{font-size:12px;padding:8px 14px}#bb-review-faces{gap:10px}.bb-review-dialog h2{font-size:23px}}
.bb-stage-panel{position:relative;top:auto}.bb-qr-tool{font-size:12px;margin:16px 0;padding:12px;border:1px solid #eee;border-radius:8px}.bb-qr-tool summary{cursor:pointer;font-weight:600}.bb-qr-tool label{margin-top:12px}
.bb-import{display:block;font-size:11px;text-align:center;color:#777;margin:18px 0}.bb-import input{max-width:220px;font-size:11px}

.bb-stage>svg{border:0}
.bb-resize-handle{cursor:nwse-resize;touch-action:none}.bb-resize-handle:focus ellipse:last-of-type{stroke:#111}.bb-stage>svg#bb-canvas{overflow:visible}

#bb-review-faces figure.is-expanded{grid-column:1/-1}#bb-review-faces .bb-review-product{width:100%;height:auto;max-height:none;object-fit:contain} .bb-review-zoom{margin:10px auto;display:block} #bb-review-faces figure{min-width:0}

.bb-mobile-editor-actions,.bb-return-preview,.bb-mobile-size-actions,.bb-mobile-editor-dock{display:none}@media(max-width:1024px){body.bb-store:has(.bb-product-page){padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}body:has(.bb-product-page) .bb-mobile-nav{display:none}.bb-product-page{padding:14px 14px 28px}.bb-breadcrumb{font-size:11px;margin-bottom:16px}.bb-editor-layout{gap:20px}.bb-stage-panel,.bb-tools-panel{scroll-margin-top:122px}.bb-stage-top{font-size:11px}.bb-side-buttons{background:#fff;border-color:#e4e7ef}.bb-side-buttons button{min-height:40px;padding:8px 17px}.bb-stage{background:#fff;border:1px solid #e8ebf2;border-radius:22px;box-shadow:0 5px 18px #11172806}.bb-stage-note{font-size:10px;margin:10px 5px}.bb-mobile-editor-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:12px}.bb-mobile-editor-actions button,.bb-return-preview,.bb-mobile-size-actions button{min-height:44px;border:1px solid #dfe4ed;background:#fff;border-radius:12px;font-size:11px;font-weight:600;padding:8px;color:#1a2538}.bb-history{gap:6px;display:grid;grid-template-columns:repeat(4,1fr)}.bb-history button{min-height:42px;padding:7px 3px;font-size:10px;border-radius:10px}.bb-import{margin:12px 0;font-size:10px}.bb-tools-panel{background:#fff;padding:18px;border:1px solid #e8ebf2;border-radius:22px;box-shadow:0 5px 18px #11172804}.bb-tools-panel h1{font-size:22px;margin:0 0 12px}.bb-return-preview{display:block;width:100%;margin-top:16px;background:#eef6ff;color:#1866ad;border-color:#d9eaff}.bb-tool-tabs{margin:16px 0;background:#f3f5f9;border:0;border-radius:12px;padding:4px;gap:2px}.bb-tool-tabs button{border-radius:9px;min-height:44px;font-size:12px;padding:8px 3px}.bb-tool-tabs button[aria-selected=true]{background:#fff;box-shadow:0 2px 7px #11172812;color:#111728}.bb-tools-panel input:not([type=checkbox]),.bb-tools-panel select,.bb-tools-panel textarea{font-size:16px;min-height:46px;border-radius:11px;border-color:#dfe4ec}.bb-upload{padding:16px 10px;border-radius:14px;background:#f4f8ff;border-color:#c4d7f3}.bb-upload input{font-size:12px!important;min-height:44px}.bb-template-grid{grid-template-columns:repeat(2,1fr);gap:9px}.bb-template-grid button{min-height:76px;border-radius:13px}.bb-template-grid span{font-size:28px}.bb-mobile-size-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.bb-mobile-size-actions button{background:#eef6ff;border-color:#d9eaff;font-size:13px}#bb-selection{padding:14px;background:#fafbfe;border-color:#e2e7ef}.bb-selection-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.bb-selection-actions button{min-height:44px;font-size:12px;border-radius:10px}#bb-layers button{min-height:44px}.bb-secondary{min-height:44px;width:100%;border-radius:11px}.bb-quality-confirm label{font-size:11px;line-height:1.6}.bb-quality-confirm input,#bb-approved{width:20px;height:20px}.bb-mobile-editor-dock{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;left:0;right:0;bottom:0;z-index:50;background:#ffffffed;backdrop-filter:blur(16px);border-top:1px solid #e1e5ed;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));box-shadow:0 -5px 25px #11172809}.bb-mobile-editor-dock small{display:block;font-size:10px;color:#778093}.bb-mobile-editor-dock strong{display:block;font-size:18px;color:#121a2a}.bb-mobile-editor-dock .bb-button{min-height:46px;border-radius:13px;padding:12px 18px;font-size:12px}.bb-review-dialog{width:calc(100vw - 20px);padding:24px 16px;border-radius:22px}.bb-review-dialog h2{font-size:24px}#bb-review-faces{grid-template-columns:1fr}.bb-review-dialog label{font-size:12px;line-height:1.6}.bb-review-dialog .bb-button{min-height:48px;border-radius:13px}.bb-review-zoom{min-height:44px;border:1px solid #dce3ef;border-radius:10px;background:#fff;padding:10px 18px}}

@media(max-width:1024px){.bb-editor-layout{grid-template-columns:minmax(0,1fr)}.bb-tools-panel{min-width:0}.bb-mobile-editor-dock>div{min-width:0}.bb-mobile-editor-dock strong{font-size:clamp(14px,4.5vw,18px)}.bb-mobile-editor-dock .bb-button{white-space:normal}.bb-review-dialog{max-height:calc(90dvh - 25px)}}

