/* Patch personalizzate (includes/patch.php, assets/js/patch.js) */
.tp { text-align: left; color: #222; font-size: 17px; line-height: 1.45; margin: 0 0 18px; }
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tp-prev { position: sticky; top: 90px; }
.tp-stage { border-radius: 16px; overflow: hidden; background: #dcd8d1; }
.tp-stage canvas { display: block; width: 100%; height: auto; }
.tp-prev-note { margin: 8px 0 0; font-size: 14px; color: #636363; }

.tp-step { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.tp-step legend { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0; font: 500 21px/1.2 Oswald, sans-serif; color: #000; text-transform: none; letter-spacing: 0; }
.tp-step legend i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #d1008b; color: #fff; font: 600 15px/1 system-ui, sans-serif; font-style: normal; }
.tp-step legend small { font: 400 15px/1.2 system-ui, sans-serif; color: #636363; }
.tp-row { display: grid; gap: 8px; }
.tp-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-opt { position: relative; display: flex; margin: 0; cursor: pointer; font-weight: 400; }
.tp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tp-box { display: block; flex: 1 1 auto; box-sizing: border-box; border: 2px solid #ddd; border-radius: 12px; padding: 11px 13px; background: #fff; transition: border-color .15s, background .15s; }
.tp-box b { display: block; color: #000; font-size: 17px; line-height: 1.25; }
.tp-box small { display: block; margin-top: 4px; color: #555; font-size: 14px; line-height: 1.35; }
.tp-box small strong { color: #b0007a; }
.tp-opt:hover .tp-box { border-color: #bbb; }
.tp-opt input:checked + .tp-box { border-color: #d1008b; background: #fff3fa; }
.tp-opt input:focus-visible + .tp-box { outline: 2px solid #000; outline-offset: 2px; }
.tp-4 .tp-box, .tp-3 .tp-box { text-align: center; }
.tp-4 .tp-box b { font-size: 19px; }

/* little drawings on the choices */
.tp-ico { display: block; width: 38px; height: 38px; margin: 0 0 6px; border-radius: 50%; border: 4px solid #1d1d1b; }
.tp-ico-emb { background: repeating-linear-gradient(45deg, #d1008b 0 2px, #ff4fbf 2px 4px); }
.tp-ico-print { background: linear-gradient(135deg, #ffd23f, #ff4fbf 50%, #3aa0ff); }
.tp-shape { display: block; width: 34px; height: 34px; margin: 2px auto 6px; border: 4px solid #1d1d1b; background: #f0f0f0; }
.tp-shape-r { border-radius: 50%; }
.tp-shape-q { border-radius: 4px; }
.tp-shape-o { border-radius: 50%; width: 44px; height: 30px; margin: 4px auto 8px; }
.tp-forme .tp-box b { font-size: 15px; }
.tp-shape-t { border-radius: 4px; width: 44px; height: 28px; margin: 5px auto 9px; }

.tp-drop { display: block; position: relative; margin: 0; padding: 18px 16px; border: 2px dashed #c9c9c9; border-radius: 12px; background: #fafafa; text-align: center; cursor: pointer; font-weight: 400; }
.tp-drop:hover, .tp-drop.over { border-color: #d1008b; background: #fff3fa; }
.tp-drop.has { border-style: solid; border-color: #2e7d32; background: #f3faf3; }
.tp-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.tp-drop b { display: block; font: 500 20px/1.2 Oswald, sans-serif; color: #000; }
.tp-drop small { display: block; margin-top: 4px; color: #555; font-size: 14px; }
.tp-file { display: block; margin-top: 6px; color: #2e7d32; font-weight: 600; word-break: break-all; }
.tp-err { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff1f0; color: #b3261e; font-size: 15px; }
.tp-err[hidden] { display: none; }
.tp-hint { margin: 8px 0 0; font-size: 14px; color: #555; }
.tp-hint[hidden], .tp [hidden] { display: none !important; }
.tp-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 15px; font-weight: 400; cursor: pointer; }
.tp-check input { margin: 3px 0 0; flex: none; }
.tp-ref, .tp textarea { width: 100%; margin: 8px 0 0; font-size: 16px; }
.tp-lbl { display: block; margin: 12px 0 0; font-weight: 600; font-size: 15px; }
.tp-lbl small { font-weight: 400; color: #636363; }
.tp textarea { min-height: 0; }

.tp-threads { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-thread { position: relative; margin: 0; cursor: pointer; }
.tp-thread input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tp-thread span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); box-shadow: inset 0 0 0 3px #fff; }
.tp-thread input:checked + span { outline: 3px solid #d1008b; outline-offset: 2px; }
.tp-thread input:focus-visible + span { outline: 3px solid #000; outline-offset: 2px; }
.tp-thread em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* next to the cart button */
.tp-sum { margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: #f6f6f6; text-align: left; color: #222; font-size: 16px; line-height: 1.4; }
.tp-sum p { margin: 0 0 6px; }
.tp-sum-t { font: 500 20px/1.2 Oswald, sans-serif; color: #000; }
#tp-sum-what { color: #555; font-size: 15px; }
.tp-sum-big { font-size: 18px; }
.tp-sum-big b { font-size: 26px; color: #000; }
.tp-bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 0 !important; padding: 0 !important; list-style: none !important; }
.tp-bands li { margin: 0 !important; padding: 5px 2px; border-radius: 8px; background: #fff; text-align: center; font-size: 13px; line-height: 1.3; list-style: none !important; }
.tp-bands li span { display: block; color: #636363; }
.tp-bands li b { font-size: 15px; color: #000; }
.tp-bands li.on { background: #d1008b; }
.tp-bands li.on span, .tp-bands li.on b { color: #fff; }
.tp-more { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #fff4e5; }

/* the photo of the page: the patch is on the left of the banner */
.tslab-patch-product .tb-story-img img { object-position: 22% 45%; }

/* the maker inside the narrow cart column (layout without [tslab_configuratore]) */
form.cart .tp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
form.cart .tp-prev { position: static; max-width: 420px; }

@media (max-width: 849px) {
  .tp-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tp-prev { position: static; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 549px) {
  .tp-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-3 .tp-box { padding: 9px 6px; }
  .tp-3 .tp-box b { font-size: 14px; }
  .tp-3 .tp-box small { font-size: 12px; }
  .tp-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tp-4 .tp-box { padding: 9px 4px; }
  .tp-2 .tp-box small { font-size: 13px; }
  .tp-bands li { font-size: 12px; }
  .tp-forme { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-forme .tp-box { padding: 9px 6px; }
}

/* moved into the photo column of a standard layout: one column, preview on top */
.product-gallery .tp-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.product-gallery .tp-prev { position: static; max-width: 520px; margin: 0 auto; }
.tslab-patch-product .product-gallery .product-images { display: none !important; }

/* the old "Sei un'azienda?" box of the Flatsome layout: hidden, the box below replaces it */
.tslab-patch-product .row:has(> .col > .col-inner > div > div > a[href*="Richiesta%20Produzione"]) { display: none; }
.tslab-patch-product .col-inner > div[style*="25D366" i] { display: none !important; }
/* "Te ne servono tanti?" (same as the configurator products) */
.tslab-cfg-b2b { margin: 16px 0; padding: 14px 16px 16px; border: 1px solid #e6e6e6; border-left: 4px solid #ff00aa; border-radius: 10px; background: #fff; font-size: 17px; line-height: 1.4; color: #3a3a3a; text-align: left; }
.tslab-cfg-b2b p { margin: 0 0 8px; }
.tslab-cfg-b2b .tslab-cfg-b2b-t { font-weight: 700; font-size: 17px; color: #161515; text-transform: uppercase; letter-spacing: .03em; }
.tslab-cfg-b2b strong { color: #161515; }
.tslab-cfg-b2b .tslab-cfg-b2b-go { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 10px; padding: 11px 12px; background: #000; color: #fff; font-size: 18px; line-height: 1.25; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.tslab-cfg-b2b .tslab-cfg-b2b-go:hover { background: #d1008b; color: #fff; }
.tslab-cfg-b2b .tslab-cfg-b2b-go svg { flex: none; }
.tslab-cfg-b2b .tslab-cfg-b2b-mail { display: block; text-align: center; color: #c80085; font-weight: 600; text-decoration: underline; }
