/* Mobile Schrift-Fallbacks: Comic Relief und Oleo Script (SIL OFL 1.1), Ultra (Apache 2.0).
   Quellen und Lizenzen: https://github.com/google/fonts/tree/main/ofl/comicrelief,
   https://github.com/google/fonts/tree/main/ofl/oleoscript,
   https://github.com/google/fonts/tree/main/apache/ultra. */
@font-face{font-family:'Comic Relief';font-style:normal;font-weight:400;font-display:swap;src:url('https://fonts.gstatic.com/s/comicrelief/v2/BCauqZkHrvL55SZ8uaEhHMYGWxhg.woff2') format('woff2')}
@font-face{font-family:'Comic Relief';font-style:normal;font-weight:700;font-display:swap;src:url('https://fonts.gstatic.com/s/comicrelief/v2/BCaxqZkHrvL55SZ8uaEhHMYO4D11ASoj.woff2') format('woff2')}
@font-face{font-family:'Ultra';font-style:normal;font-weight:400;font-display:swap;src:url('https://fonts.gstatic.com/s/ultra/v25/zOLy4prXmrtY-uT9wrI.woff2') format('woff2')}
@font-face{font-family:'Oleo Script';font-style:normal;font-weight:400;font-display:swap;src:url('https://fonts.gstatic.com/s/oleoscript/v15/rax5HieDvtMOe0iICsUccChdu08.woff2') format('woff2')}
@font-face{font-family:'Oleo Script';font-style:normal;font-weight:700;font-display:swap;src:url('https://fonts.gstatic.com/s/oleoscript/v15/raxkHieDvtMOe0iICsUccCDmnlrf0Ts.woff2') format('woff2')}
.texlab-builder-test{margin:22px 0;padding:18px;border:1px solid #d9dde3;border-radius:8px;background:#fff}.texlab-builder-test>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.texlab-builder-test>header span{padding:3px 8px;border-radius:12px;background:#eef1f5;font-size:12px}.texlab-builder-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.texlab-builder-field{grid-column:1/-1}.texlab-builder-field[hidden]{display:none!important}.texlab-builder-field.is-disabled{opacity:.5}.texlab-builder-label{display:block;margin-bottom:6px;font-weight:700!important}.texlab-builder-label>span{color:#b32d2e}.texlab-builder-field input[type=text],.texlab-builder-field input[type=number],.texlab-builder-field select,.texlab-builder-field textarea{width:100%;max-width:none}.texlab-builder-notice,.texlab-builder-help{margin:0 0 7px;font-size:.92em}.texlab-builder-help{margin:6px 0 0;color:#5f6670}.texlab-builder-tooltip{width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#1d2327;color:#fff;font-size:12px;cursor:help}.texlab-builder-choices{display:flex;flex-wrap:wrap;gap:10px}.texlab-builder-choices label,.texlab-builder-check{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid #ccd0d4;border-radius:6px;background:#fff;cursor:pointer}.texlab-builder-choices label:has(input:checked){border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;background:#f0f6fc}.display-cards .texlab-builder-choices label,.display-tiles .texlab-builder-choices label,.display-image_tiles .texlab-builder-choices label,.display-font_tiles .texlab-builder-choices label{min-width:110px;justify-content:center}.display-image_tiles .texlab-builder-choices label,.display-tiles .texlab-builder-choices label:has(img){width:145px;min-height:112px;flex-direction:column;text-align:center}.display-image_tiles .texlab-builder-choices img,.display-tiles .texlab-builder-choices img,.type-image .texlab-builder-choices img{display:block;width:62px;height:62px;object-fit:contain}.display-font_tiles .texlab-builder-choices label span,.type-font .texlab-builder-choices label span{font-size:22px;line-height:1.2}.texlab-builder-upload-preview{margin-top:8px;color:#50575e;font-size:.9em}.texlab-builder-upload-preview img{display:block;max-width:160px;max-height:120px;margin-top:7px;object-fit:contain;border:1px solid #dcdcde;border-radius:4px}.texlab-builder-preview{margin-top:16px;padding:12px;background:#f6f7f7}@media(max-width:680px){.texlab-builder-test{padding:14px}.texlab-builder-fields{grid-template-columns:1fr;gap:13px}.texlab-builder-choices label{min-height:44px}.display-image_tiles .texlab-builder-choices label,.display-tiles .texlab-builder-choices label:has(img){width:calc(50% - 5px);min-width:0}}
.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label{width:145px;min-height:112px;flex-direction:column;justify-content:center;text-align:center}.type-symbols .texlab-builder-choices img,.type-image .texlab-builder-choices img{display:block;width:62px;height:62px;object-fit:contain}@media(max-width:680px){.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label{width:calc(50% - 5px);min-width:0}}
.type-symbols .texlab-builder-choices,.type-image .texlab-builder-choices,.display-image_tiles .texlab-builder-choices{display:grid;grid-template-columns:repeat(var(--texlab-tile-columns,3),minmax(0,1fr))}.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label,.display-image_tiles .texlab-builder-choices label{width:auto;min-width:0}.type-symbols .texlab-builder-choices img,.type-image .texlab-builder-choices img,.display-image_tiles .texlab-builder-choices img{width:var(--texlab-symbol-size,62px);height:var(--texlab-symbol-size,62px)}@media(max-width:680px){.type-symbols .texlab-builder-choices,.type-image .texlab-builder-choices,.display-image_tiles .texlab-builder-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
.texlab-builder-choices img.texlab-choice-preview-only{display:none!important}
.texlab-builder-choices img[hidden],.texlab-builder-choices .texlab-choice-preview-only{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important}
.texlab-builder-preview{margin-top:22px;padding:14px;border:1px solid #ccd0d4;border-radius:7px;background:#f6f7f7}.texlab-builder-preview-title{display:block;margin-bottom:10px}.texlab-builder-preview-stage{min-height:210px;padding:20px;border:1px solid #aeb4bb;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.07)}.texlab-builder-preview-empty{margin:70px 0;text-align:center;color:#777}.texlab-builder-preview-content{text-align:center}.texlab-builder-preview-logo{display:block;max-width:180px;max-height:80px;margin:0 auto 12px;object-fit:contain}.texlab-builder-preview-row{margin:7px 0}.texlab-builder-preview-row strong{display:block;font-size:.78em;color:#646970}.texlab-builder-preview-row span{display:block;font-size:1.15em;white-space:pre-wrap}.texlab-builder-preview-symbols{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:15px}.texlab-builder-preview-symbols figure{margin:0;text-align:center}.texlab-builder-preview-symbols img{display:block;width:54px;height:54px;margin:auto;object-fit:contain}.texlab-builder-preview-symbols figcaption{margin-top:3px;font-size:.78em}
.texlab-builder-preview-stage{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.texlab-builder-preview-inner{position:relative;z-index:2;width:100%;max-height:100%;overflow:hidden}.texlab-builder-safe-zone{position:absolute;z-index:1;border:1px dashed rgba(185,28,28,.55);pointer-events:none}.texlab-builder-fold{display:none;position:absolute;z-index:1;top:0;bottom:0;left:50%;border-left:1px dashed rgba(34,113,177,.7);pointer-events:none}.texlab-builder-preview-stage.fold-center .texlab-builder-fold{display:block}.woocommerce-product-gallery.texlab-has-live-preview{position:sticky!important;top:24px}.woocommerce-product-gallery.texlab-has-live-preview>:not(.texlab-builder-preview){display:none!important}.woocommerce-product-gallery .texlab-builder-preview{width:100%;margin:0;box-sizing:border-box}.woocommerce-product-gallery .texlab-builder-preview-stage{width:100%;min-height:0;box-sizing:border-box}@media(max-width:768px){.woocommerce-product-gallery.texlab-has-live-preview{position:static!important}}
.single-product div.product{overflow:visible!important}.woocommerce-product-gallery.texlab-has-live-preview{top:90px!important;align-self:flex-start;overflow:visible!important}.single-product form.cart>.quantity,.single-product .product_meta{display:none!important}.texlab-builder-price{margin:0 0 18px}.texlab-builder-price label{display:block;margin-bottom:6px}.texlab-builder-price label span{color:#b32d2e}.texlab-builder-price select{width:100%;max-width:none}.texlab-builder-price-error{padding:10px;border-left:4px solid #b32d2e;background:#fcf0f1}
.texlab-builder-preview-stage{border:2px solid #444;border-radius:0;background:#fff;transition:height .18s ease}.texlab-builder-seam{position:absolute;z-index:3;left:0;right:0;height:var(--texlab-seam-size,var(--texlab-seam-percent));background:#eeeeee;pointer-events:none}.texlab-builder-seam.seam-top{top:0;height:var(--texlab-seam-top-size,var(--texlab-seam-size,var(--texlab-seam-percent)))}.texlab-builder-seam.seam-bottom{bottom:0;height:var(--texlab-seam-bottom-size,var(--texlab-seam-size,var(--texlab-seam-percent)))}.texlab-builder-preview-inner{position:absolute;z-index:2;top:var(--texlab-seam-top-size,var(--texlab-seam-size,var(--texlab-seam-percent)));right:0;bottom:var(--texlab-seam-bottom-size,var(--texlab-seam-size,var(--texlab-seam-percent)));left:0;width:auto;max-height:none;display:flex;align-items:center;justify-content:center;padding:10px;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif}.texlab-builder-preview-stage .texlab-builder-fold{display:block;position:absolute;z-index:4;top:var(--texlab-fold-position,50%);right:0;bottom:auto;left:0;border:0;border-top:1px dashed #666;pointer-events:none}.texlab-builder-preview-row span{font-family:Arial,Helvetica,sans-serif}
.texlab-builder-preview-inner{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));align-items:stretch;justify-content:stretch;padding:0}.texlab-builder-preview-half{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;gap:4px;overflow:hidden;box-sizing:border-box}.texlab-builder-preview-half.preview-top{justify-content:flex-end;padding:var(--texlab-side-safe,10px) var(--texlab-side-safe,10px) var(--texlab-fold-clearance-top,var(--texlab-fold-clearance,10px))}.texlab-builder-preview-half.preview-bottom{justify-content:flex-start;padding:var(--texlab-fold-clearance-bottom,var(--texlab-fold-clearance,10px)) var(--texlab-side-safe,10px) var(--texlab-side-safe,10px)}.texlab-builder-preview-row,.texlab-builder-preview-symbols{position:static;width:auto;max-width:100%;margin:0}.texlab-builder-preview-row span{max-width:100%;line-height:1.12;overflow-wrap:anywhere}.texlab-builder-preview-symbols{display:flex;width:auto;max-width:100%;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px}.texlab-builder-preview-symbols figure{display:block;min-width:0;flex:0 1 auto;margin:0}.texlab-builder-preview-symbols img{max-width:100%;height:auto}.texlab-builder-preview-logo{margin:0 auto 4px}.woocommerce-product-gallery .texlab-builder-preview{width:65%;margin-left:auto;margin-right:auto}
.texlab-builder-preview-row span{line-height:1}.texlab-builder-preview-wishname span{font-size:1.55em;font-weight:700;line-height:1}.texlab-builder-wishname-font{margin-top:-8px;padding-top:0}
.texlab-builder-preview-row[data-preview-role="name"] span{font-size:63.5px;font-weight:700;line-height:1}
.texlab-builder-preview-row[data-preview-role="address"] span{font-size:38.8px;line-height:1.12}
.texlab-builder-preview-row[data-preview-role="material"] span,.texlab-builder-preview-row[data-preview-role="care_text"] span{font-size:35.3px;line-height:1.12}
.texlab-builder-preview-half.preview-top.has-no-logo{padding-top:var(--texlab-side-safe,10px)}
.texlab-builder-preview-half.preview-top.has-logo{position:relative;justify-content:flex-end;padding-top:var(--texlab-side-safe,10px)}
.texlab-builder-preview-half.preview-top.has-logo>.texlab-builder-preview-logo{position:absolute;z-index:2;top:var(--texlab-top-content-start,10px);left:50%;max-width:calc(100% - var(--texlab-side-safe,10px) - var(--texlab-side-safe,10px))!important;margin:0;transform:translateX(-50%)}
.single-product form.cart .quantity{display:none!important}.texlab-builder-length{margin:0 0 18px;padding:10px 12px;border:1px solid #ccd0d4;border-radius:6px;background:#f6f7f7}.texlab-builder-length strong{display:inline-block;margin-left:5px}.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label,.display-image_tiles .texlab-builder-choices label{width:max(52px,calc(var(--texlab-symbol-size,48px) + 20px));min-width:0;min-height:0;box-sizing:border-box;padding:4px 5px;gap:2px}.type-symbols .texlab-builder-choices label span,.type-image .texlab-builder-choices label span,.display-image_tiles .texlab-builder-choices label span{max-width:100%;font-size:13px;line-height:1.15;overflow-wrap:anywhere}.type-symbols .texlab-builder-choices,.type-image .texlab-builder-choices,.display-image_tiles .texlab-builder-choices{grid-template-columns:repeat(var(--texlab-tile-columns,3),max-content);justify-content:start;gap:6px}
.display-font_tiles .texlab-builder-choices label,.type-font .texlab-builder-choices label{min-width:0;padding:6px 9px;gap:5px}.display-font_tiles .texlab-builder-choices label span,.type-font .texlab-builder-choices label span{font-size:clamp(14px,var(--texlab-font-preview-size,18px),18px);line-height:1.05}
.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label,.display-image_tiles .texlab-builder-choices label{width:max(20px,calc(var(--texlab-symbol-size,48px) + 8px));min-width:0;min-height:0;padding:2px 3px;gap:1px;border-radius:4px}
.type-symbols .texlab-builder-choices label:has(input:checked),.type-image .texlab-builder-choices label:has(input:checked),.display-image_tiles .texlab-builder-choices label:has(input:checked){box-shadow:none}
.type-symbols .texlab-builder-choices label span,.type-image .texlab-builder-choices label span,.display-image_tiles .texlab-builder-choices label span{font-size:12px;line-height:1.05}
.type-symbols .texlab-builder-choices,.type-image .texlab-builder-choices,.display-image_tiles .texlab-builder-choices{gap:4px}
.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label,.display-image_tiles .texlab-builder-choices label{position:relative;padding-top:2px!important;padding-bottom:2px!important}
.type-symbols .texlab-builder-choices label>input,.type-image .texlab-builder-choices label>input,.display-image_tiles .texlab-builder-choices label>input{position:absolute;top:3px;right:3px;margin:0}
@media(max-width:680px){.display-image_tiles .texlab-builder-choices label,.display-tiles .texlab-builder-choices label:has(img),.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label{min-height:0!important;padding:2px 3px!important}}
.texlab-builder-preview-top,.texlab-builder-preview-bottom,.texlab-builder-preview-half{padding-left:var(--texlab-side-safe,10px)!important;padding-right:var(--texlab-side-safe,10px)!important;box-sizing:border-box}
.texlab-builder-preview-logo{max-width:100%!important;max-height:none!important;height:auto!important;object-fit:contain}
.texlab-builder-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin-top:18px;padding-top:14px;border-top:1px solid #d9dfe8}
.texlab-builder-summary .texlab-builder-length,.texlab-builder-summary .texlab-builder-total-price{margin:0;padding:0;background:none;border:0}
.texlab-builder-reset{margin-left:auto!important}
.texlab-builder-logo-size{display:grid;grid-template-columns:auto minmax(120px,1fr) 56px;align-items:center;gap:10px;margin-top:10px;font-weight:600}
.texlab-builder-logo-size output{font-weight:400;text-align:right}
.texlab-builder-upload>input[type=file]{display:inline-block;width:auto;max-width:calc(100% - 130px)}
.texlab-builder-upload-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.texlab-builder-upload-actions input[type=file]{flex:1 1 auto;min-width:0}.texlab-builder-logo-delete{flex:0 0 auto;margin-left:auto!important}.texlab-builder-top-actions{display:flex;justify-content:flex-end;margin:-4px 0 16px}
.texlab-builder-checkout-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:18px 0 12px;padding:14px 0;border-top:1px solid #d9dfe8}
.texlab-builder-checkout-controls .texlab-builder-total-price{font-size:18px}
.texlab-builder-checkout-controls+.single_add_to_cart_button{margin-top:0!important}
.single-product form.cart>.quantity,.single-product form.cart .quantity,.single-product button.plus,.single-product button.minus,.single-product .qty-button,.single-product .quantity-button,.single-product .woo-quantity-btn,.single-product .woo-quantity-minus,.single-product .woo-quantity-plus{display:none!important}
@media(max-width:600px){.texlab-builder-reset{width:100%;margin-left:0!important}.texlab-builder-logo-size{grid-template-columns:1fr}.texlab-builder-logo-size output{text-align:left}}

.texlab-builder-preview{padding:16px 16px 24px;border:1px solid #d7dce3;border-radius:12px;background-color:#f7f3ed;background-image:url("textile-configurator-workspace-v1.png");background-position:center;background-size:contain;background-repeat:no-repeat;box-shadow:0 8px 24px rgba(28,39,54,.08)}
.texlab-builder-preview-heading{display:flex;align-items:center;gap:10px;margin:-16px -16px 20px;padding:14px 16px;border-bottom:1px solid rgba(120,110,95,.18);border-radius:12px 12px 0 0;background:rgba(255,255,255,.86);backdrop-filter:blur(4px)}.texlab-builder-preview-title{margin:0;font-size:17px;color:#1f2937}.texlab-builder-preview-live{padding:3px 8px;border:1px solid #b9d6f2;border-radius:10px;background:#f6fbff;color:#0872c9;font-size:11px;font-weight:600}
.texlab-builder-preview-stage{box-shadow:0 14px 24px rgba(71,55,39,.18),0 3px 7px rgba(31,41,55,.16),inset 1px 0 rgba(255,255,255,.82),inset -1px 0 rgba(90,90,90,.08);background-color:#fff;background-image:linear-gradient(90deg,rgba(255,255,255,.14),rgba(80,80,80,.012) 48%,rgba(255,255,255,.12)),url("textile-label-preview-v3.png");background-position:center,center;background-size:auto,320px auto;background-repeat:no-repeat,repeat}
.texlab-builder-seam{display:flex;align-items:center;justify-content:center;color:#7b8188;background:#e9eaec}.texlab-builder-seam>span{font-size:clamp(8px,1.8vw,11px);font-weight:600;line-height:1;letter-spacing:.08em;text-transform:uppercase;opacity:.8}
.texlab-builder-preview-stage .texlab-builder-fold>span{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);padding:1px 6px;background:rgba(255,255,255,.88);color:#68707a;font:600 clamp(8px,1.7vw,10px)/1 Arial,Helvetica,sans-serif;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.single-product .summary p.stock,.single-product .summary .stock,.single-product .summary .delivery-time-info,.single-product .summary .product-delivery-time,.single-product .summary .shipping_de.shipping_de_string,.single-product .summary .wgm-info.delivery-time-info{display:none!important}
.texlab-builder-preview-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;margin:22px -16px -24px;padding:14px 16px;border-top:1px solid rgba(120,110,95,.18);border-radius:0 0 12px 12px;background:rgba(255,255,255,.88);color:#3f4852;font-size:12px;backdrop-filter:blur(4px)}.texlab-builder-preview-footer .texlab-builder-length{margin:0;padding:0;border:0;background:none}.texlab-builder-preview-footer .texlab-builder-length strong{margin-left:3px}.texlab-builder-preview-note{display:flex;align-items:center;gap:5px}.texlab-builder-preview-footer>div>span[aria-hidden=true]{font-size:16px;color:#6b7480}
@media(max-width:600px){.texlab-builder-preview{padding:12px}}
.woocommerce-product-gallery .texlab-builder-preview{width:100%;min-height:520px;margin-left:0;margin-right:0;box-sizing:border-box}.woocommerce-product-gallery .texlab-builder-preview-stage{width:65%;max-width:360px;margin:0 auto}.woocommerce-product-gallery .texlab-builder-preview-heading{margin-top:-16px}
@media(max-width:768px){.woocommerce-product-gallery .texlab-builder-preview{min-height:0}.woocommerce-product-gallery .texlab-builder-preview-stage{width:72%}}
/* Smartphone layout: full-width controls, touch-friendly choices and a compact preview above the form. */
@media(max-width:768px){
  .texlab-builder-test{margin:14px 0;padding:14px;border-radius:10px}
  .texlab-builder-test>header{align-items:flex-start;gap:8px}.texlab-builder-test>header span{flex:0 0 auto}
  .texlab-builder-fields{display:block}.texlab-builder-field{margin-bottom:15px}
  .texlab-builder-field input[type=text],.texlab-builder-field input[type=number],.texlab-builder-field select,.texlab-builder-field textarea{min-height:46px;font-size:16px}
  .texlab-builder-choices{gap:8px}.texlab-builder-choices label{padding:8px;min-height:42px}
  .display-font_tiles .texlab-builder-choices,.type-font .texlab-builder-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .display-font_tiles .texlab-builder-choices label,.type-font .texlab-builder-choices label{min-width:0;width:auto;overflow:hidden}
  .display-image_tiles .texlab-builder-choices label,.display-tiles .texlab-builder-choices label:has(img),.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label{min-height:82px;padding:6px}
  .texlab-builder-upload-actions{align-items:stretch;flex-direction:column}.texlab-builder-logo-delete{width:100%;margin-left:0!important}
  .texlab-builder-logo-size{grid-template-columns:1fr auto}.texlab-builder-logo-size label,.texlab-builder-logo-size input{grid-column:1/-1}
  .texlab-builder-checkout-controls{align-items:flex-start;flex-direction:column}.texlab-builder-checkout-controls .texlab-builder-total-price{font-size:17px}
  .woocommerce-product-gallery.texlab-has-live-preview{position:static!important;width:100%!important;min-height:0!important;margin-bottom:16px!important}
  .woocommerce-product-gallery .texlab-builder-preview{width:100%;padding:10px;min-height:0}
  .woocommerce-product-gallery .texlab-builder-preview-heading{margin:-10px -10px 12px;padding:11px 12px}
  .woocommerce-product-gallery .texlab-builder-preview-stage{width:min(76%,300px);margin:0 auto}
  .woocommerce-product-gallery .texlab-builder-preview-footer{margin:14px -10px -10px;padding:11px 12px;gap:6px;font-size:11px}
}
@media(max-width:420px){
  .type-symbols .texlab-builder-choices,.type-image .texlab-builder-choices,.display-image_tiles .texlab-builder-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .woocommerce-product-gallery .texlab-builder-preview-stage{width:min(84%,280px)}
}

/* Compact symbol cards. Width, height and symbol size can be configured
   independently in the Builder backend. */
.type-symbols .texlab-builder-choices label,.type-image .texlab-builder-choices label,.display-image_tiles .texlab-builder-choices label{position:relative!important;width:var(--texlab-tile-width,calc(var(--texlab-symbol-size,80px) + 4mm))!important;height:auto!important;min-width:0!important;min-height:var(--texlab-tile-height,0)!important;padding:2mm!important;gap:0!important;box-sizing:border-box}
/* The card border communicates selection. Keep the native input accessible,
   but hide the visible radio/checkbox dot. */
.texlab-hide-choice-marker .texlab-builder-choices label>input[type=radio],.texlab-hide-choice-marker .texlab-builder-choices label>input[type=checkbox]{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none}
.texlab-hide-choice-marker .texlab-builder-choices label:has(input:focus-visible){outline:2px solid #2271b1;outline-offset:2px}
.type-symbols .texlab-builder-choices,.type-image .texlab-builder-choices,.display-image_tiles .texlab-builder-choices{gap:2mm!important}
.type-symbols .texlab-builder-choices label span,.type-image .texlab-builder-choices label span,.display-image_tiles .texlab-builder-choices label span{display:block;min-height:0!important;max-height:none!important;overflow:visible;text-align:center;line-height:1.2;overflow-wrap:anywhere;-webkit-line-clamp:unset;line-clamp:unset}
.type-symbols .texlab-builder-choices label>img+span,.type-image .texlab-builder-choices label>img+span,.display-image_tiles .texlab-builder-choices label>img+span{margin-top:var(--texlab-symbol-label-gap,8px)}
.texlab-builder-preview-symbols{gap:2mm}

/* Compatibility for older variables stored as display "tiles" with images. */
.display-tiles .texlab-builder-choices{display:grid;grid-template-columns:repeat(var(--texlab-tile-columns,3),max-content);justify-content:start;gap:2mm!important}
.display-tiles .texlab-builder-choices label:has(img){position:relative!important;width:var(--texlab-tile-width,calc(var(--texlab-symbol-size,80px) + 4mm))!important;height:auto!important;min-width:0!important;min-height:var(--texlab-tile-height,0)!important;padding:2mm!important;gap:0!important;box-sizing:border-box}
.display-tiles .texlab-builder-choices img{width:var(--texlab-symbol-size,62px);height:var(--texlab-symbol-size,62px);object-fit:contain}
.display-tiles .texlab-builder-choices label:has(img) span{display:block;min-height:0!important;max-height:none!important;overflow:visible;text-align:center;line-height:1.2;overflow-wrap:anywhere;-webkit-line-clamp:unset;line-clamp:unset}
.display-tiles .texlab-builder-choices label>img+span{margin-top:var(--texlab-symbol-label-gap,8px)}
.texlab-builder-choices img[data-texlab-choice-normalized="1"]{width:var(--texlab-visible-symbol-size,22px)!important;height:var(--texlab-visible-symbol-size,22px)!important;object-fit:contain!important;flex:0 0 auto}
.type-symbols .texlab-builder-choices label>span,.type-image .texlab-builder-choices label>span,.display-image_tiles .texlab-builder-choices label>span,.display-tiles .texlab-builder-choices label:has(img)>span{font-size:var(--texlab-symbol-label-font-size,14px)!important;line-height:1.2!important}
.type-symbols .texlab-builder-choices,.type-image .texlab-builder-choices,.display-image_tiles .texlab-builder-choices,.display-tiles .texlab-builder-choices{margin-left:var(--texlab-symbol-tile-offset,-5mm)!important}
@media(max-width:420px){.display-tiles .texlab-builder-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The preview remains in normal document flow so it always ends before the
   WooCommerce description/tabs section. */
.woocommerce-product-gallery.texlab-has-live-preview{position:relative!important;top:auto!important;align-self:stretch!important;overflow:visible!important}
.woocommerce-product-gallery.texlab-has-live-preview .texlab-builder-preview{position:sticky;top:90px}

/* Dynamic millimetre ruler outside the label; never part of the print image. */
.texlab-builder-preview{position:relative}
.texlab-preview-measure-wrap{position:relative;width:100%;min-height:0}
.texlab-builder-length-ruler{position:absolute;z-index:6;top:0;width:34px;border-left:1px solid #56606a;color:#4b5560;font:9px/1 Arial,sans-serif;pointer-events:none}
.texlab-builder-length-ruler.is-left{border-right:1px solid #56606a;border-left:0}
.texlab-ruler-mark{position:absolute;left:0;width:5px;border-top:1px solid #7b838b;transform:translateY(-50%);padding-left:7px;white-space:nowrap}
.texlab-ruler-mark.is-major{width:9px;border-color:#343b42;padding-left:11px;font-weight:600}
.texlab-builder-length-ruler.is-left .texlab-ruler-mark{right:0;left:auto;padding-right:7px;padding-left:0;text-align:right}
.texlab-builder-length-ruler.is-left .texlab-ruler-mark.is-major{padding-right:11px}
.texlab-ruler-total{position:absolute;top:100%;left:0;transform:translateY(7px);white-space:nowrap;font-size:10px}
.texlab-builder-length-ruler.is-left .texlab-ruler-total{right:0;left:auto}

/* Optional variable accordions configured in the Builder backend. */
.texlab-builder-accordion{border:1px solid #d7dce3;border-radius:7px;background:#fff;overflow:hidden}
.texlab-builder-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;cursor:pointer;font-weight:700;list-style:none}
.texlab-builder-accordion>summary::-webkit-details-marker{display:none}
.texlab-builder-accordion>summary:after{content:'+';flex:0 0 auto;font-size:20px;line-height:1}
.texlab-builder-accordion[open]>summary:after{content:'−'}
.texlab-accordion-selection{margin-left:auto;color:#64707b;font-size:12px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.texlab-builder-accordion.has-selection .texlab-accordion-selection{color:#0872c9;font-weight:600}
.texlab-builder-accordion-body{padding:0 13px 13px}
.texlab-builder-logo-delete[hidden],.texlab-builder-logo-size[hidden]{display:none!important}
@media(max-width:768px){.woocommerce-product-gallery.texlab-has-live-preview .texlab-builder-preview{position:static;top:auto}}

/* Identical printable side limits for every preview text row. */
.texlab-builder-preview-half .texlab-builder-preview-row{width:100%;max-width:100%;padding:0;box-sizing:border-box;text-align:center}
.texlab-builder-preview-half .texlab-builder-preview-row span{display:block;width:100%;max-width:100%;box-sizing:border-box;text-align:center;overflow-wrap:anywhere;word-break:break-word}
.texlab-builder-field.texlab-dependent-subfield{position:relative;margin-left:18px;padding:14px 16px 14px 20px;border-left:3px solid #2271b1;border-radius:0 7px 7px 0;background:#f6f9fc;box-sizing:border-box}.texlab-builder-field.texlab-dependent-subfield:before{content:"";position:absolute;top:24px;left:-3px;width:13px;border-top:3px solid #2271b1}.texlab-dependency-hint{margin:0 0 8px;color:#5f6b78;font-size:12px;font-weight:600}.texlab-dependent-subfield>.texlab-builder-label{margin-top:0}@media(max-width:680px){.texlab-builder-field.texlab-dependent-subfield{margin-left:10px;padding:12px 12px 12px 16px}}

/* GT groups use their gallery photos; the canvas remains for order snapshots. */
.texlab-builder-test:has([name="texlab_builder_fields[gt_materialangaben]"]) .texlab-builder-preview[data-texlab-preview]{position:absolute!important;left:-10000px!important;top:0!important;visibility:hidden!important;pointer-events:none!important}
