.llp3-builder{clear:both;margin:22px 0;font-family:inherit}.single-product .llp3-builder~form.cart .variations,.single-product .llp3-builder~form.cart table.variations,.single-product .llp3-builder~form.cart .quantity,.single-product .llp3-builder~form.cart .single_variation_wrap,.single-product .llp3-builder~form.cart .single_add_to_cart_button,.single-product .llp3-builder~form.cart .reset_variations{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.llp3-shell{border:1px solid rgba(17,24,39,.12);border-radius:22px;background:#fff;box-shadow:0 18px 40px rgba(15,23,42,.08);padding:22px}.llp3-header{margin-bottom:18px}.llp3-kicker{display:inline-block;margin-bottom:8px;color:#dc2626;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.llp3-header h3{margin:0 0 6px;font-size:24px;font-weight:950;color:#111827}.llp3-header p{margin:0;color:#6b7280;line-height:1.45}.llp3-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.llp3-mode-btn{text-align:left;border:1px solid #e5e7eb;background:#f9fafb;border-radius:16px;padding:14px 16px;cursor:pointer;transition:.14s ease}.llp3-mode-btn strong,.llp3-mode-btn span{display:block}.llp3-mode-btn strong{color:#111827;font-weight:900;margin-bottom:3px}.llp3-mode-btn span{color:#6b7280;font-size:13px}.llp3-mode-btn.is-active{border-color:#dc2626;background:#fff1f2;box-shadow:0 0 0 3px rgba(220,38,38,.10)}.llp3-step{margin-top:18px}.llp3-step-title{margin-bottom:10px;font-weight:950;color:#111827}.llp3-colors{display:flex;flex-wrap:wrap;gap:8px}.llp3-color{display:inline-flex;align-items:center;gap:8px;border:1px solid #d1d5db;background:#fff;color:#111827;border-radius:999px;padding:9px 13px;cursor:pointer;font-weight:800}.llp3-color.is-active{border-color:#dc2626;background:#dc2626;color:#fff;box-shadow:0 8px 18px rgba(220,38,38,.18)}.llp3-swatch{width:18px;height:18px;border-radius:999px;border:1px solid rgba(0,0,0,.20);box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}.llp3-table-wrap{overflow-x:auto;border:1px solid #e5e7eb;border-radius:16px}.llp3-size-table{width:100%;border-collapse:collapse;margin:0;font-size:14px}.llp3-size-table th,.llp3-size-table td{padding:12px 10px;border-bottom:1px solid #f3f4f6;text-align:left;vertical-align:middle}.llp3-size-table th{background:#111827;color:#fff;font-weight:900;white-space:nowrap}.llp3-size-table tr:last-child td{border-bottom:0}.llp3-qty{width:86px!important;min-width:86px;text-align:center;font-weight:850;border-radius:10px!important}.llp3-editor{margin-top:22px;padding-top:18px;border-top:1px solid #f3f4f6}.llp3-side-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.llp3-side-tab{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:8px 12px;cursor:pointer;font-weight:800}.llp3-side-tab.is-active{background:#dc2626;border-color:#dc2626;color:#fff}.llp3-editor-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,300px);gap:18px;align-items:start}.llp3-canvas-wrap{border-radius:18px;background:linear-gradient(45deg,rgba(0,0,0,.04) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.04) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.04) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.04) 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;padding:10px}.llp3-canvas{display:block;width:100%;height:auto;background:#f3f4f6;border-radius:14px;touch-action:none}.llp3-editor-panel{display:grid;gap:12px}.llp3-upload-box{display:block;padding:16px;border:2px dashed #d1d5db;border-radius:16px;background:#f9fafb;cursor:pointer;text-align:center}.llp3-upload-box input{display:none}.llp3-upload-box span{display:block;color:#111827;font-weight:900}.llp3-upload-box em{display:block;margin-top:4px;color:#6b7280;font-style:normal;font-size:13px}.llp3-upload-label{color:#374151;font-size:13px;word-break:break-word}.llp3-editor-help{margin:0;color:#6b7280;font-size:13px;line-height:1.4}.llp3-footer{position:sticky;bottom:10px;z-index:5;margin-top:20px;padding-top:14px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 30%)}.llp3-summary{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-bottom:10px;padding:12px 14px;border-radius:14px;border:1px solid #e5e7eb;background:#f9fafb;font-weight:900;color:#111827}.llp3-submit{width:100%;border-radius:999px!important;background:#dc2626!important;border-color:#dc2626!important;color:#fff!important;font-weight:900!important;min-height:48px}.llp3-submit.is-loading{opacity:.75;cursor:wait}.llp3-message{display:none;margin-top:12px;padding:12px 14px;border-radius:14px;line-height:1.45}.llp3-message.is-visible{display:block}.llp3-message.is-error{background:#fff7ed;border:1px solid #f59e0b;color:#7c2d12}.llp3-error,.llp3-warning{padding:12px 14px;border-radius:14px;background:#fff7ed;border:1px solid #f59e0b;color:#7c2d12}.llp3-cart-card{padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;line-height:1.5}@media(max-width:760px){.llp3-shell{padding:16px;border-radius:18px}.llp3-mode{grid-template-columns:1fr}.llp3-editor-grid{grid-template-columns:1fr}.llp3-size-table{font-size:13px}.llp3-size-table th,.llp3-size-table td{padding:9px 8px}.llp3-qty{width:70px!important;min-width:70px}}


/* v3.4 */
.llp3-qty:disabled { opacity: .45; cursor: not-allowed; background: #f3f4f6; }

/* v3.5 - swatch colori più visibili */
.llp3-color .llp3-swatch{flex:0 0 auto;background-clip:padding-box;}
.llp3-color.is-active .llp3-swatch{border-color:rgba(255,255,255,.9);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 0 0 1px rgba(0,0,0,.12);}

/* v3.6 - mockup color dinamico */
.llp3-canvas-wrap{background-color:#eef2f7;}

/* v3.10 - supporto maschere mockup */


/* v3.10 - editor grande ma sicuro, senza rompere il tema */
.single-product .llp3-product-active form.cart .variations,
.single-product .llp3-product-active form.cart table.variations,
.single-product .llp3-product-active form.cart .quantity,
.single-product .llp3-product-active form.cart .single_variation_wrap,
.single-product .llp3-product-active form.cart .single_add_to_cart_button,
.single-product .llp3-product-active form.cart .reset_variations {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.single-product .llp3-product-active .llp3-builder {
  clear: both;
  width: 100%;
  max-width: 1280px;
  margin: 34px auto;
  box-sizing: border-box;
}

.llp3-shell {
  padding: 26px;
}

.llp3-editor {
  margin-top: 26px;
  padding-top: 24px;
}

.llp3-editor-grid {
  grid-template-columns: minmax(420px, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: start;
}

.llp3-canvas-wrap {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.llp3-canvas {
  width: 100%;
  max-width: 780px;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .14);
}

.llp3-side-tabs {
  gap: 10px;
  margin-bottom: 16px;
}

.llp3-side-tab {
  padding: 10px 15px;
  font-size: 15px;
}

.llp3-editor-panel {
  position: sticky;
  top: 20px;
  gap: 15px;
}

.llp3-upload-box {
  padding: 20px;
}

.llp3-upload-box span {
  font-size: 16px;
}

.llp3-editor-help,
.llp3-upload-label {
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .single-product .llp3-product-active .llp3-builder {
    margin: 22px auto;
    width: 100%;
  }

  .llp3-shell {
    padding: 18px;
  }

  .llp3-editor-grid {
    grid-template-columns: 1fr;
  }

  .llp3-canvas-wrap {
    min-height: 480px;
    padding: 10px;
  }

  .llp3-canvas {
    max-width: 100%;
    max-height: none;
  }

  .llp3-editor-panel {
    position: static;
  }
}


/* v3.10 - bottone configura prodotto e sfondo editor più contrastato */
.llp3-configure-shortcut {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 16px 0 18px;
  border-radius: 999px !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
  font-weight: 950 !important;
  text-transform: none !important;
  box-shadow: 0 12px 26px rgba(220, 38, 38, .22);
}

.llp3-configure-shortcut:hover,
.llp3-configure-shortcut:focus {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}

.llp3-canvas-wrap {
  background:
    linear-gradient(45deg, rgba(15,23,42,.16) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15,23,42,.16) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15,23,42,.16) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15,23,42,.16) 75%),
    #94a3b8 !important;
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.llp3-canvas {
  background: #b8c0cc !important;
  border: 2px solid rgba(15,23,42,.18);
}

.llp3-focus-pulse {
  animation: llp3FocusPulse 1.4s ease;
}

@keyframes llp3FocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220,38,38,.38);
  }
  55% {
    box-shadow: 0 0 0 12px rgba(220,38,38,.10);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220,38,38,0);
  }
}


/* v3.11 - prezzi personalizzazione e tipologie di stampa */
.llp3-print-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.llp3-print-type {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 150px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 16px;
  padding: 12px 15px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.llp3-print-type span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.llp3-print-type.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  box-shadow: 0 8px 18px rgba(220,38,38,.18);
}

.llp3-print-type.is-active span {
  color: rgba(255,255,255,.86);
}

.llp3-side-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.llp3-side-tab strong {
  font-weight: 900;
}

.llp3-side-price {
  font-size: 12px;
  font-weight: 800;
  opacity: .78;
}

.llp3-side-tab.is-active .llp3-side-price {
  color: rgba(255,255,255,.88);
}


/* v3.12 - posizioni stampa per fronte/retro */
.llp3-position-picker {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
}

.llp3-mini-title {
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #374151;
  margin-bottom: 10px;
}

.llp3-position-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.llp3-position-option {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 145px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 14px;
  padding: 11px 13px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.llp3-position-option span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.llp3-position-option.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  box-shadow: 0 8px 18px rgba(220,38,38,.18);
}

.llp3-position-option.is-active span {
  color: rgba(255,255,255,.86);
}


/* v3.13 - restyling editor, t-shirt più grande e area stampa guidata */
.llp3-builder {
  --llp-red: #dc2626;
  --llp-red-dark: #b91c1c;
  --llp-ink: #111827;
  --llp-soft: #f8fafc;
}

.llp3-shell {
  background:
    radial-gradient(circle at top left, rgba(220,38,38,.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(15,23,42,.10);
}

.llp3-header {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #dc2626 100%);
  color: #fff;
  margin-bottom: 20px;
}

.llp3-header h3,
.llp3-header p {
  color: #fff;
}

.llp3-header p {
  opacity: .86;
}

.llp3-kicker {
  display: inline-flex;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 10px;
  border-radius: 999px;
}

.llp3-step {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

.llp3-step-title {
  font-size: 17px;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.llp3-mode {
  gap: 14px;
}

.llp3-mode-btn {
  border-radius: 22px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.llp3-mode-btn:hover,
.llp3-color:hover,
.llp3-print-type:hover,
.llp3-position-option:hover,
.llp3-side-tab:hover {
  transform: translateY(-1px);
}

.llp3-mode-btn.is-active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 14px 32px rgba(220,38,38,.22);
}

.llp3-colors,
.llp3-print-types,
.llp3-position-options,
.llp3-side-tabs {
  gap: 12px;
}

.llp3-color,
.llp3-print-type,
.llp3-position-option,
.llp3-side-tab {
  box-shadow: 0 6px 14px rgba(15,23,42,.04);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.llp3-color.is-active,
.llp3-print-type.is-active,
.llp3-position-option.is-active,
.llp3-side-tab.is-active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #dc2626;
  color: #fff;
  box-shadow: 0 12px 28px rgba(220,38,38,.22);
}

.llp3-editor {
  background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 26px;
  padding: 20px;
}

.llp3-editor .llp3-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.llp3-editor .llp3-step-title::after {
  content: "Area stampa guidata";
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: #111827;
  padding: 5px 9px;
  border-radius: 999px;
}

.llp3-editor-grid {
  grid-template-columns: minmax(520px, 1fr) minmax(290px, 370px);
  gap: 24px;
}

.llp3-canvas-wrap {
  min-height: 720px;
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(45deg, rgba(15,23,42,.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15,23,42,.18) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15,23,42,.18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15,23,42,.18) 75%),
    #94a3b8 !important;
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.10);
}

.llp3-canvas {
  width: 100%;
  max-width: 860px;
  max-height: 86vh;
  background: #b8c0cc !important;
  border-radius: 18px;
  border: 2px solid rgba(15,23,42,.22);
  box-shadow: 0 18px 46px rgba(15,23,42,.18);
}

.llp3-editor-panel {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(15,23,42,.08);
}

.llp3-upload-box {
  border: 2px dashed rgba(220,38,38,.42);
  background: linear-gradient(180deg, #fff, #fff7f7);
  border-radius: 20px;
}

.llp3-upload-box span {
  font-weight: 950;
}

.llp3-upload-box em {
  color: #6b7280;
}

.llp3-position-picker {
  border: 1px solid rgba(220,38,38,.18);
  background: #fff7f7;
}

.llp3-footer {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 16px 38px rgba(15,23,42,.14);
  padding: 16px;
}

.llp3-summary {
  font-size: 15px;
}

.llp3-summary strong {
  color: #dc2626;
  font-size: 18px;
}

.llp3-submit {
  min-height: 48px;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

@media (max-width: 980px) {
  .llp3-editor-grid {
    grid-template-columns: 1fr;
  }

  .llp3-canvas-wrap {
    min-height: 540px;
    padding: 12px;
  }

  .llp3-canvas {
    max-width: 100%;
    max-height: none;
  }

  .llp3-footer {
    position: static;
  }
}


/* v3.23 - aree stampa precise configurabili */
#llp3_builder_product_data textarea#_llp3_print_areas {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

#llp3_builder_product_data .form-field textarea#_llp3_print_areas + .description {
  display: block;
  max-width: 780px;
}


/* v3.23 - aree stampa attivabili per prodotto */
#llp3_builder_product_data textarea#_llp3_active_print_areas {
  min-height: 160px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}


/* v3.23 - selezione aree stampa a spunte */
.llp3-active-sides-admin {
  margin: 12px 0;
}

.llp3-active-sides-admin .form-field {
  padding: 5px 20px 5px 162px !important;
}

.llp3-active-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  max-width: 620px;
}

.llp3-active-side-card {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 12px;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.llp3-active-side-card input {
  margin-top: 3px !important;
}

.llp3-active-side-card strong {
  display: block;
  font-size: 14px;
  color: #1d2327;
}

.llp3-active-side-card small {
  display: block;
  margin-top: 3px;
  color: #646970;
  font-size: 12px;
  line-height: 1.3;
}

.llp3-active-side-card:has(input:checked) {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220,38,38,.22), 0 8px 20px rgba(220,38,38,.08);
}

#llp3_builder_product_data textarea#_llp3_active_print_areas.llp3-active-areas-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .llp3-active-sides-admin .form-field {
    padding-left: 12px !important;
  }

  .llp3-active-side-grid {
    grid-template-columns: 1fr;
  }
}


/* v3.23 - fix leggero: editor cliente ripristinato, niente CSS invasivo */
.single-product .llp3-builder {
  clear: both;
}

.llp3-footer {
  position: static !important;
  bottom: auto !important;
  margin-top: 22px;
}

.llp3-message {
  clear: both;
  margin-top: 14px;
}

.llp3-mode-btn,
.llp3-color,
.llp3-print-type,
.llp3-position-option,
.llp3-side-tab,
.llp3-submit,
.llp3-reset-graphic,
.llp3-configure-shortcut {
  pointer-events: auto;
}

.single-product .llp3-product-active form.cart .variations,
.single-product .llp3-product-active form.cart table.variations,
.single-product .llp3-product-active form.cart .quantity,
.single-product .llp3-product-active form.cart .single_variation_wrap,
.single-product .llp3-product-active form.cart .single_add_to_cart_button,
.single-product .llp3-product-active form.cart .reset_variations {
  pointer-events: none !important;
}


/* v3.23 - ripristino frontend cliente: layout leggibile e JS non bloccato */
.llp3-mode-btn.is-active,
.llp3-color.is-active,
.llp3-print-type.is-active,
.llp3-position-option.is-active,
.llp3-side-tab.is-active {
  color: #fff !important;
}

.llp3-mode-btn.is-active strong,
.llp3-mode-btn.is-active span,
.llp3-color.is-active span,
.llp3-print-type.is-active strong,
.llp3-print-type.is-active span,
.llp3-position-option.is-active strong,
.llp3-position-option.is-active span,
.llp3-side-tab.is-active strong,
.llp3-side-tab.is-active span {
  color: #fff !important;
}

.llp3-size-table tbody,
.llp3-size-table tbody tr {
  display: table-row-group;
  visibility: visible;
}

.llp3-size-table tbody tr {
  display: table-row !important;
}

.llp3-size-table tbody td {
  display: table-cell !important;
  visibility: visible !important;
  color: #111827;
  background: #fff;
}

.llp3-size-table tbody td[colspan] {
  padding: 16px 14px;
  color: #6b7280;
  font-weight: 700;
}

.llp3-footer {
  position: static !important;
  bottom: auto !important;
}


/* v3.23 - blocco grafica fuori area stampa */
.llp3-message.is-error {
  font-weight: 800;
}

.llp3-canvas {
  cursor: default;
}

.llp3-canvas:active {
  cursor: grabbing;
}


/* v3.23 - avviso qualità file, senza bloccare il caricamento */
.llp3-quality-warning {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
}

.llp3-quality-warning.is-ok {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.llp3-quality-warning.is-warn {
  background: #fffbeb;
  border-color: #facc15;
  color: #854d0e;
}

.llp3-quality-warning.is-bad {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
}


/* v3.24 - modifica dal carrello e anteprima */
.llp3-cart-actions {
  margin-top: 8px;
}

.llp3-cart-edit-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.llp3-cart-edit-link:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}

.llp3-cart-preview {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.llp3-cart-preview > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.llp3-cart-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.llp3-cart-preview-item {
  width: 86px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 7px;
  text-align: center;
}

.llp3-cart-preview-item span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 900;
  color: #374151;
}

.llp3-cart-preview-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%),
    #f8fafc;
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border-radius: 8px;
}

.llp3-cart-file-link {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.llp3-message.is-info {
  background: #eff6ff;
  border: 1px solid #60a5fa;
  color: #1e3a8a;
  font-weight: 800;
}


/* v3.28 - bottone modifica piccolo e anteprima carrello affidabile */
.llp3-cart-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  line-height: 1;
  clear: both;
}

.llp3-cart-edit-link,
.woocommerce-cart .llp3-cart-edit-link,
.woocommerce-checkout .llp3-cart-edit-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-width: max-content !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  position: static !important;
  float: none !important;
  z-index: auto !important;
}

.llp3-cart-edit-link:hover {
  background: #b91c1c !important;
  color: #fff !important;
}

.llp3-cart-preview {
  margin-top: 8px;
  clear: both;
  max-width: 280px;
}

.llp3-cart-preview > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: #374151;
  font-weight: 900;
}

.llp3-cart-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.llp3-cart-preview-item {
  width: 64px;
  max-width: 64px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.llp3-cart-preview-item span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.llp3-cart-preview-item img {
  display: block;
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain;
  margin: 0 auto;
  background:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%),
    #f8fafc;
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  border-radius: 7px;
}

.llp3-cart-file-link {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  word-break: break-word;
}

/* Nei carrelli stretti evita che la modifica copra la X di rimozione */
.woocommerce-cart table.cart td.product-name .llp3-cart-actions,
.woocommerce-cart table.cart td.product-name .llp3-cart-preview {
  margin-left: 0;
}

.woocommerce-cart table.cart td.product-remove {
  position: relative;
  z-index: 5;
}

.woocommerce-cart table.cart td.product-name {
  overflow: visible;
}


/* v3.28 - mini-carrello pulito: solo badge prodotto personalizzato */
.llp3-personalized-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.llp3-mini-cart-badge-wrap {
  display: block;
  clear: both;
  margin-top: 3px;
  line-height: 1;
}

.widget_shopping_cart .llp3-cart-preview,
.woocommerce-mini-cart .llp3-cart-preview,
.widget_shopping_cart .llp3-cart-actions .llp3-cart-edit-link,
.woocommerce-mini-cart .llp3-cart-actions .llp3-cart-edit-link,
.widget_shopping_cart .llp3-cart-card,
.woocommerce-mini-cart .llp3-cart-card {
  display: none !important;
}

.widget_shopping_cart .llp3-personalized-badge,
.woocommerce-mini-cart .llp3-personalized-badge {
  font-size: 9px;
  padding: 3px 6px;
  margin-top: 2px;
}

/* Nel carrello normale resta modifica + anteprima */
.woocommerce-cart .llp3-cart-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}


/* v3.28 - badge mini cart rosso, testo nero, una sola riga */
.widget_shopping_cart .llp3-mini-cart-badge-wrap,
.woocommerce-mini-cart .llp3-mini-cart-badge-wrap {
  display: block !important;
  clear: both;
  margin-top: 4px;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.widget_shopping_cart .llp3-personalized-badge,
.woocommerce-mini-cart .llp3-personalized-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  background: #dc2626 !important;
  color: #000 !important;
  border: 1px solid #b91c1c !important;
  border-radius: 6px !important;
  padding: 3px 7px !important;
  margin: 3px 0 0 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}


/* v3.28 - badge mini-cart forzato anche con temi/drawer custom */
.mini_cart_item .llp3-mini-cart-badge-wrap,
.woocommerce-mini-cart-item .llp3-mini-cart-badge-wrap,
.widget_shopping_cart_content .llp3-mini-cart-badge-wrap,
.elementor-menu-cart__product-name .llp3-mini-cart-badge-wrap,
.elementor-menu-cart__product .llp3-mini-cart-badge-wrap {
  display: block !important;
  clear: both !important;
  margin-top: 3px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.mini_cart_item .llp3-personalized-badge,
.woocommerce-mini-cart-item .llp3-personalized-badge,
.widget_shopping_cart_content .llp3-personalized-badge,
.elementor-menu-cart__product-name .llp3-personalized-badge,
.elementor-menu-cart__product .llp3-personalized-badge {
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  background: #dc2626 !important;
  color: #000 !important;
  border: 1px solid #b91c1c !important;
  border-radius: 6px !important;
  padding: 3px 7px !important;
  margin: 3px 0 0 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}


/* v3.29 - badge, modifica e anteprima mockup nel carrello */
.woocommerce-cart .llp3-cart-actions {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  margin-top: 7px !important;
}

.woocommerce-cart .llp3-cart-actions .llp3-personalized-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  background: #dc2626 !important;
  color: #000 !important;
  border: 1px solid #b91c1c !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.woocommerce-cart .llp3-cart-edit-link,
.woocommerce-cart .llp3-cart-preview-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  border: 1px solid #111827 !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
}

.woocommerce-cart .llp3-cart-preview-button {
  background: #fff !important;
  color: #111827 !important;
}

.woocommerce-cart .llp3-cart-edit-link:hover,
.woocommerce-cart .llp3-cart-preview-button:hover {
  opacity: .86;
}

.llp3-preview-open {
  overflow: hidden;
}

.llp3-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.llp3-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.68);
}

.llp3-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.llp3-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.llp3-preview-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 42px;
  margin-bottom: 18px;
}

.llp3-preview-head strong {
  font-size: 20px;
  font-weight: 950;
  color: #111827;
}

.llp3-preview-head span {
  color: #6b7280;
  font-size: 14px;
}

.llp3-preview-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.llp3-preview-side {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
}

.llp3-preview-side-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 950;
  color: #111827;
}

.llp3-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #b8c0cc;
  border: 1px solid rgba(15,23,42,.12);
}

.llp3-preview-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.llp3-preview-note a {
  font-weight: 900;
}

.llp3-preview-empty {
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  color: #6b7280;
  font-weight: 800;
}

@media (max-width: 640px) {
  .llp3-preview-modal {
    padding: 10px;
  }

  .llp3-preview-dialog {
    padding: 16px;
    border-radius: 18px;
  }
}


/* v3.35 - riepilogo ordinato nel carrello */
.llp3-cart-summary-box {
  display: block !important;
  clear: both !important;
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  max-width: 520px !important;
  box-sizing: border-box !important;
}

.llp3-cart-summary-top {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-bottom: 8px !important;
}

.llp3-cart-summary-lines {
  display: grid !important;
  gap: 4px !important;
  margin-bottom: 9px !important;
}

.llp3-cart-summary-lines div {
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #111827 !important;
  font-weight: 700 !important;
}

.llp3-cart-summary-actions {
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.llp3-cart-summary-actions .llp3-cart-edit-link,
.llp3-cart-summary-actions .llp3-cart-preview-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  border: 1px solid #111827 !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.llp3-cart-summary-actions .llp3-cart-preview-button {
  background: #fff !important;
  color: #111827 !important;
}

.woocommerce-cart .llp3-cart-card {
  display: none !important;
}

/* Evita che WooCommerce comprima il box in una riga */
.woocommerce-cart .product-name .variation,
.woocommerce-cart .product-name dl.variation {
  display: block !important;
}

.woocommerce-cart .product-name .variation dd,
.woocommerce-cart .product-name .variation dt {
  display: block !important;
  float: none !important;
  clear: both !important;
  margin: 0 !important;
}


/* v3.35 - riepilogo carrello su più righe, non dentro variation data */
.woocommerce-cart .product-name > .llp3-cart-summary-box,
.woocommerce-cart td.product-name .llp3-cart-summary-box,
.llp3-cart-summary-box {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 9px 0 0 !important;
  padding: 11px 13px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

.llp3-cart-summary-box * {
  box-sizing: border-box !important;
}

.llp3-cart-summary-top {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin: 0 0 9px !important;
  clear: both !important;
}

.llp3-cart-summary-lines {
  display: block !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  clear: both !important;
}

.llp3-cart-summary-row,
.woocommerce-cart .llp3-cart-summary-row {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #111827 !important;
  font-weight: 700 !important;
  white-space: normal !important;
}

.llp3-cart-summary-actions {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  clear: both !important;
  margin-top: 4px !important;
}

.woocommerce-cart .product-name dl.variation,
.woocommerce-cart .product-name .variation {
  display: none !important;
}


/* v3.35 - riepilogo sempre visibile nei carrelli custom */
.woocommerce-cart .product-name dl.variation,
.woocommerce-cart .product-name .variation {
  display: block !important;
}

.woocommerce-cart .product-name dl.variation:has(.llp3-cart-summary-box),
.woocommerce-cart .product-name .variation:has(.llp3-cart-summary-box) {
  display: block !important;
}

.llp3-cart-summary-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.llp3-cart-summary-row,
.llp3-cart-summary-actions,
.llp3-cart-summary-top {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.llp3-cart-summary-actions {
  display: flex !important;
}


/* v3.35 - riepilogo prodotto personalizzato su righe separate nel carrello */
.woocommerce-cart .product-name dl.variation,
.woocommerce-cart .product-name .variation,
.cart .product-name dl.variation,
.cart .product-name .variation {
  display: block !important;
  margin: 8px 0 0 !important;
  padding: 10px 12px !important;
  max-width: 520px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  line-height: 1.35 !important;
  clear: both !important;
}

.woocommerce-cart .product-name dl.variation dt,
.woocommerce-cart .product-name dl.variation dd,
.woocommerce-cart .product-name .variation dt,
.woocommerce-cart .product-name .variation dd,
.cart .product-name dl.variation dt,
.cart .product-name dl.variation dd,
.cart .product-name .variation dt,
.cart .product-name .variation dd {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: #111827 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.woocommerce-cart .product-name dl.variation dt,
.woocommerce-cart .product-name .variation dt,
.cart .product-name dl.variation dt,
.cart .product-name .variation dt {
  font-weight: 950 !important;
  margin-bottom: 1px !important;
}

.woocommerce-cart .product-name dl.variation dd,
.woocommerce-cart .product-name .variation dd,
.cart .product-name dl.variation dd,
.cart .product-name .variation dd {
  font-weight: 700 !important;
  margin-bottom: 7px !important;
}

.woocommerce-cart .product-name dl.variation dd p,
.woocommerce-cart .product-name .variation dd p,
.cart .product-name dl.variation dd p,
.cart .product-name .variation dd p {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

.woocommerce-cart .product-name .llp3-personalized-badge,
.cart .product-name .llp3-personalized-badge {
  margin: 0 0 4px !important;
}

.woocommerce-cart .product-name .llp3-cart-summary-actions,
.cart .product-name .llp3-cart-summary-actions {
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
}

.woocommerce-cart .product-name .llp3-cart-edit-link,
.woocommerce-cart .product-name .llp3-cart-preview-button,
.cart .product-name .llp3-cart-edit-link,
.cart .product-name .llp3-cart-preview-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  border: 1px solid #111827 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.woocommerce-cart .product-name .llp3-cart-edit-link,
.cart .product-name .llp3-cart-edit-link {
  background: #111827 !important;
  color: #fff !important;
}

.woocommerce-cart .product-name .llp3-cart-preview-button,
.cart .product-name .llp3-cart-preview-button {
  background: #fff !important;
  color: #111827 !important;
}


/* v3.35 - riepilogo carrello tutto su più righe vere */
.woocommerce-cart .product-name .llp3-cart-lines-box,
.cart .product-name .llp3-cart-lines-box,
.llp3-cart-lines-box {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 8px 0 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: normal !important;
}

.woocommerce-cart .product-name .llp3-cart-lines-box .llp3-cart-line,
.cart .product-name .llp3-cart-lines-box .llp3-cart-line,
.llp3-cart-lines-box .llp3-cart-line {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: #111827 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  white-space: normal !important;
}

.llp3-cart-lines-box .llp3-cart-line strong {
  font-weight: 950 !important;
}

.llp3-cart-lines-box .llp3-cart-line-badge {
  margin-bottom: 7px !important;
}

.woocommerce-cart .product-name .variation,
.woocommerce-cart .product-name dl.variation,
.cart .product-name .variation,
.cart .product-name dl.variation {
  display: block !important;
  white-space: normal !important;
}

.woocommerce-cart .product-name .variation dt,
.woocommerce-cart .product-name .variation dd,
.woocommerce-cart .product-name dl.variation dt,
.woocommerce-cart .product-name dl.variation dd,
.cart .product-name .variation dt,
.cart .product-name .variation dd,
.cart .product-name dl.variation dt,
.cart .product-name dl.variation dd {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  white-space: normal !important;
  margin: 0 !important;
}

.woocommerce-cart .product-name .variation dt,
.cart .product-name .variation dt {
  display: none !important;
}

.woocommerce-cart .product-name .variation dd,
.cart .product-name .variation dd {
  margin: 0 !important;
}


/* v3.35 - anteprima cart come file immagine apribile */
.llp3-preview-image-wrap {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #b8c0cc;
  border: 1px solid rgba(15,23,42,.12);
}

.llp3-preview-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: contain;
  background: #b8c0cc;
}

.llp3-preview-image-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  background: rgba(255,255,255,.3);
}

.llp3-preview-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.llp3-preview-openfile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.llp3-preview-openfile:hover {
  opacity: .88;
  color: #fff;
}

.llp3-preview-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.llp3-preview-canvas[hidden] {
  display: none !important;
}


/* v3.40 - link anteprima diretto e fallback in nome prodotto */
.llp3-preview-direct-link,
.llp3-name-actions-backup .llp3-preview-direct-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 1px solid #111827 !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.llp3-name-actions-backup {
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin: 8px 0 0 !important;
  clear: both !important;
}

.woocommerce-cart .product-name .llp3-cart-lines-box + .llp3-name-actions-backup,
.cart .product-name .llp3-cart-lines-box + .llp3-name-actions-backup {
  display: none !important;
}


/* v3.40 - riepilogo personalizzazione forzato e nascosto solo nel mini-cart */
.llp3-cart-lines-box {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 10px 0 0 !important;
  padding: 11px 13px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: normal !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.llp3-cart-lines-box .llp3-cart-line {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: #111827 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  white-space: normal !important;
}

.llp3-cart-lines-box .llp3-cart-line strong {
  font-weight: 950 !important;
}

.llp3-cart-lines-box .llp3-cart-line-badge {
  margin-bottom: 8px !important;
}

.llp3-cart-lines-box .llp3-cart-summary-actions {
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 9px !important;
}

.llp3-cart-lines-box .llp3-cart-edit-link,
.llp3-cart-lines-box .llp3-cart-preview-button,
.llp3-cart-lines-box .llp3-preview-direct-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 1px solid #111827 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.llp3-cart-lines-box .llp3-cart-edit-link {
  background: #111827 !important;
  color: #fff !important;
}

.llp3-cart-lines-box .llp3-cart-preview-button,
.llp3-cart-lines-box .llp3-preview-direct-link {
  background: #fff !important;
  color: #111827 !important;
}

/* Mini-cart sempre pulito: solo badge nel nome */
.widget_shopping_cart .llp3-cart-lines-box,
.woocommerce-mini-cart .llp3-cart-lines-box,
.mini_cart_item .llp3-cart-lines-box,
.elementor-menu-cart__product .llp3-cart-lines-box,
.elementor-menu-cart__products .llp3-cart-lines-box {
  display: none !important;
}


/* v3.40 - bottone anteprima più evidente */
.llp3-cart-lines-box .llp3-cart-preview-button,
.llp3-cart-lines-box .llp3-preview-direct-link {
  background: #facc15 !important;
  color: #111827 !important;
  border-color: #ca8a04 !important;
}


/* v3.41 - popup anteprima generata lato server */
.llp3-cart-lines-box .llp3-server-preview-button {
  background: #facc15 !important;
  color: #111827 !important;
  border-color: #ca8a04 !important;
}

.llp3-cart-lines-box .llp3-server-preview-button[disabled] {
  opacity: .65 !important;
  cursor: wait !important;
}

.llp3-server-preview-modal .llp3-preview-dialog {
  width: min(1180px, 96vw);
}

.llp3-server-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.llp3-server-preview-card {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
}

.llp3-server-preview-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 950;
  color: #111827;
}

.llp3-server-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #e5e7eb;
  border: 1px solid rgba(15,23,42,.12);
}

.llp3-server-preview-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.llp3-server-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.llp3-server-preview-link.secondary {
  background: #fff;
  color: #111827;
}

.llp3-server-preview-note,
.llp3-server-preview-notes {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}


/* v3.51 - anteprima come link reale + popup AJAX se disponibile */
.llp3-cart-lines-box .llp3-server-preview-button.is-loading {
  opacity: .65 !important;
  cursor: wait !important;
}


/* v3.51 - nota preview con mockup/maglietta */
.llp3-server-preview-note {
  font-weight: 700;
}


/* v3.51 - anteprima con maglietta/mockup come livello visivo */
.llp3-live-preview,
.llp-live-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 980;
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
  border: 1px solid rgba(15,23,42,.12);
}

.llp3-live-preview:before,
.llp-live-preview:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #eef2f7;
}

.llp3-live-mockup,
.llp-live-mockup {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.llp3-live-art,
.llp-live-art {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.llp3-server-preview-card > a > img {
  display: block;
  width: 100%;
  height: auto;
}


/* v3.51 - anteprima più compatta, fondo migliore, maglia nel colore selezionato */
.llp3-server-preview-modal .llp3-preview-dialog {
  width: min(960px, 92vw) !important;
  max-height: 88vh !important;
  overflow: auto !important;
  background: #f3f6fb !important;
}

.llp3-preview-head {
  margin-bottom: 12px;
}

.llp3-server-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}

.llp3-server-preview-card,
.llp-side {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f9 100%) !important;
  border: 1px solid #d7deea !important;
}

.llp3-live-preview,
.llp-live-preview {
  position: relative;
  width: min(100%, 270px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #cfd8e4 0%, #e6edf6 100%);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.llp3-live-preview:before,
.llp-live-preview:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
}

.llp3-shirt-base {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 68%;
  height: 82%;
  transform: translateX(-50%);
  z-index: 1;
}

.llp3-shirt-base:before,
.llp3-shirt-base:after {
  content: "";
  position: absolute;
  top: 8%;
  width: 30%;
  height: 18%;
  background: var(--llp3-shirt-color, #ffffff);
  border: 2px solid rgba(15,23,42,.12);
  border-bottom: none;
  border-radius: 20px 20px 8px 8px;
}

.llp3-shirt-base:before {
  left: -17%;
  transform: rotate(-18deg);
}

.llp3-shirt-base:after {
  right: -17%;
  transform: rotate(18deg);
}

.llp3-shirt-base .llp3-shirt-collar,
.llp3-shirt-base .llp3-shirt-collar:before {
  position: absolute;
  display: block;
  content: "";
}

.llp3-shirt-base {
  background: var(--llp3-shirt-color, #ffffff);
  border: 2px solid rgba(15,23,42,.12);
  border-radius: 26px 26px 20px 20px;
  box-shadow: inset 0 14px 20px rgba(255,255,255,.15);
}

.llp3-shirt-base .llp3-shirt-collar {
  left: 50%;
  top: 0;
  width: 28%;
  height: 9%;
  transform: translate(-50%, -25%);
  background: #eef3f9;
  border-radius: 0 0 30px 30px;
  border: 2px solid rgba(15,23,42,.12);
  border-top: none;
  z-index: 2;
}

.llp3-live-mockup,
.llp-live-mockup {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: .42;
}

.llp3-live-art,
.llp-live-art {
  position: absolute;
  z-index: 3;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

.llp3-server-preview-card img,
.llp-side .llp-img {
  width: min(100%, 270px) !important;
  margin: 0 auto !important;
}

.llp-page {
  background: #0f172a;
}

.llp-card {
  max-width: 1040px !important;
  background: #f8fbff !important;
}

.llp-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}


/* v3.51 - anteprima pulita e compatta */
.llp3-server-preview-modal .llp3-preview-dialog{width:min(860px,90vw)!important;max-height:86vh!important;overflow:auto!important;background:#f4f7fb!important;}
.llp3-server-preview-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:12px!important;}
.llp3-server-preview-card{padding:12px!important;background:linear-gradient(180deg,#ffffff 0%,#eef3f9 100%)!important;border:1px solid #d6dfeb!important;}
.llp3-server-preview-card img{display:block;width:min(100%,220px)!important;height:auto!important;margin:0 auto!important;border-radius:14px!important;background:linear-gradient(180deg,#d4dce7 0%,#eef3f9 100%)!important;border:1px solid rgba(15,23,42,.12)!important;}
.llp3-server-preview-title{font-size:13px!important;margin-bottom:8px!important;text-align:center!important;}
.llp3-server-preview-actions{justify-content:center!important;}
.llp-page{background:#0f172a!important;}
.llp-card{max-width:980px!important;background:#f8fbff!important;}
.llp-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))!important;gap:12px!important;}
.llp-side{padding:12px!important;background:linear-gradient(180deg,#ffffff 0%,#eef3f9 100%)!important;border:1px solid #d6dfeb!important;}
.llp-side .llp-img{display:block;width:min(100%,220px)!important;height:auto!important;margin:0 auto!important;background:linear-gradient(180deg,#d4dce7 0%,#eef3f9 100%)!important;}


/* v3.51 - popup canvas con mockup reale colorato come editor */
.llp3-preview-modal .llp3-preview-dialog {
  width: min(920px, 92vw) !important;
  max-height: 88vh !important;
  overflow: auto !important;
  background: #f4f7fb !important;
}

.llp3-preview-body {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}

.llp3-preview-side {
  background: linear-gradient(180deg,#ffffff 0%,#eef3f9 100%) !important;
  border: 1px solid #d6dfeb !important;
  border-radius: 18px !important;
  padding: 12px !important;
}

.llp3-preview-image-wrap {
  width: min(100%, 260px) !important;
  margin: 0 auto !important;
  background: linear-gradient(180deg,#dfe6ef 0%,#f6f8fb 100%) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  overflow: hidden !important;
}

.llp3-preview-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
}

.llp3-preview-side-title {
  text-align: center !important;
  font-size: 13px !important;
  margin-bottom: 8px !important;
}

.llp3-preview-actions {
  justify-content: center !important;
}


/* v3.51 - anteprima più zoomata e leggibile */
.llp3-preview-modal .llp3-preview-dialog {
  width: min(1080px, 95vw) !important;
}

.llp3-preview-body {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 16px !important;
}

.llp3-preview-image-wrap {
  width: min(100%, 320px) !important;
  margin: 0 auto !important;
}

.llp3-preview-image,
.llp3-server-preview-card img,
.llp-side .llp-img {
  width: min(100%, 320px) !important;
}

.llp3-preview-side {
  padding: 14px !important;
}

.llp3-preview-side-title {
  font-size: 14px !important;
  margin-bottom: 10px !important;
}


/* v3.51 - anteprima ancora più zoomata */
.llp3-preview-modal .llp3-preview-dialog {
  width: min(1160px, 96vw) !important;
}
.llp3-preview-body {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}
.llp3-preview-image-wrap {
  width: min(100%, 360px) !important;
}
.llp3-preview-image,
.llp3-server-preview-card img,
.llp-side .llp-img {
  width: min(100%, 360px) !important;
}


/* v3.51 - anteprima 2.5D interattiva */
.llp3-preview-modal-25d .llp3-preview-dialog {
  width: min(1280px, 96vw) !important;
  max-height: 92vh !important;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%) !important;
}

.llp3-preview-modal-25d .llp3-preview-body {
  display: block !important;
}

.llp3-25d-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.llp3-25d-main {
  min-width: 0;
}

.llp3-25d-main-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.llp3-25d-main-title {
  font-size: 18px;
  font-weight: 950;
  color: #0f172a;
}

.llp3-25d-nav {
  display: inline-flex;
  gap: 8px;
}

.llp3-25d-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.llp3-25d-stage-shell {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #edf3f9 100%);
  border: 1px solid #d8e0eb;
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
}

.llp3-25d-stage {
  perspective: 1400px;
}

.llp3-25d-stage-inner {
  position: relative;
  min-height: 620px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.9), rgba(255,255,255,.3) 28%, transparent 30%), linear-gradient(180deg, #dfe6ef 0%, #f5f8fb 100%);
  border: 1px solid rgba(15,23,42,.10);
  transform-style: preserve-3d;
  transform: rotateX(var(--llp3-rx, 0deg)) rotateY(var(--llp3-ry, 0deg));
  transition: transform .14s ease-out, box-shadow .2s ease-out;
  box-shadow: 0 22px 50px rgba(15,23,42,.14);
}

.llp3-25d-stage:hover .llp3-25d-stage-inner {
  box-shadow: 0 26px 60px rgba(15,23,42,.18);
}

.llp3-25d-main-image {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  transform: translateZ(16px);
}

.llp3-25d-stage-inner::after {
  content: "";
  position: absolute;
  inset: auto 10% 4% 10%;
  height: 9%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(15,23,42,.22), rgba(15,23,42,0) 68%);
  filter: blur(14px);
  z-index: 1;
}

.llp3-25d-main-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #334155;
  background: rgba(255,255,255,.35);
  z-index: 3;
}

.llp3-25d-hint {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.llp3-25d-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.llp3-25d-note {
  margin-top: 8px;
}

.llp3-25d-sidebar {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #f3f7fb 100%);
  border: 1px solid #d8e0eb;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.llp3-25d-sidebar-title {
  font-size: 14px;
  font-weight: 950;
  color: #0f172a;
  margin-bottom: 12px;
}

.llp3-25d-thumbs {
  display: grid;
  gap: 10px;
}

.llp3-25d-thumb {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #d8e0eb;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.llp3-25d-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

.llp3-25d-thumb.is-active {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220,38,38,.16);
}

.llp3-25d-thumb-preview {
  position: relative;
  display: block;
  width: 74px;
  height: 94px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #dfe6ef 0%, #f5f8fb 100%);
  border: 1px solid rgba(15,23,42,.10);
}

.llp3-25d-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.llp3-25d-thumb-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #64748b;
  background: rgba(255,255,255,.45);
}

.llp3-25d-thumb-label {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 850;
  color: #0f172a;
}

@media (max-width: 980px) {
  .llp3-25d-layout {
    grid-template-columns: 1fr;
  }

  .llp3-25d-stage-inner {
    min-height: 520px;
  }

  .llp3-25d-sidebar {
    order: 2;
  }
}

@media (max-width: 640px) {
  .llp3-preview-modal-25d .llp3-preview-dialog {
    width: min(100vw, 100vw) !important;
    border-radius: 18px !important;
    padding: 14px !important;
  }

  .llp3-25d-main-top {
    flex-direction: column;
    align-items: stretch;
  }

  .llp3-25d-stage-inner {
    min-height: 380px;
  }

  .llp3-25d-thumb {
    grid-template-columns: 62px 1fr;
  }

  .llp3-25d-thumb-preview {
    width: 62px;
    height: 80px;
  }
}
