body.single-product .tp-bag3d {
  box-sizing: border-box;
  margin: 18px 0;
  padding: clamp(16px, 3vw, 25px);
  border: 1px solid #dce4e8;
  border-radius: 17px;
  background: #fff;
  color: #17242b;
  font-family: Manrope, system-ui, sans-serif;
  box-shadow: 0 12px 34px rgba(20, 38, 45, .055);
}
body.single-product .tp-bag3d[hidden],
body.single-product .tp-bag3d__viewer[hidden],
body.single-product .tp-bag3d__open[hidden] { display: none !important; }
body.single-product .tp-bag3d__eyebrow {
  color: #294653;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
body.single-product .tp-bag3d h3 {
  margin: 5px 0 7px;
  color: #17242b;
  font: 800 clamp(18px, 2vw, 23px)/1.25 Manrope, system-ui, sans-serif;
}
body.single-product .tp-bag3d p { margin: 0; line-height: 1.5; }
body.single-product .tp-bag3d__heading p,
body.single-product .tp-bag3d__disclaimer { color: #53656d; font-size: 13px; }
body.single-product .tp-bag3d__sides {
  display: flex;
  gap: 8px;
  margin: 17px 0 11px;
}
body.single-product .tp-bag3d__sides button {
  flex: 1;
  min-height: 43px;
  border: 1px solid #cdd9de;
  border-radius: 10px;
  background: #f2f6f7;
  color: #294653;
  font: 800 13px/1.3 Manrope, system-ui, sans-serif;
  cursor: pointer;
}
body.single-product .tp-bag3d__sides button[aria-pressed="true"] {
  border-color: #294653;
  background: #294653;
  color: #fff;
}
body.single-product .tp-bag3d__sides button.has-print::after {
  content: ' ✓';
}
body.single-product .tp-bag3d__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #cbd2d6;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 38%, #aeb5ba 0%, #949ca2 68%, #828b92 100%);
}
body.single-product .tp-bag3d__stage.is-dark-bag {
  background: radial-gradient(circle at 50% 38%, #eef1f3 0%, #dce2e6 68%, #c8d1d6 100%);
}
body.single-product .tp-bag3d__open {
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #294653;
  color: #fff;
  font: 800 14px/1.3 Manrope, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(28, 54, 65, .2);
}
body.single-product .tp-bag3d__open:hover { background: #1c333e; }
body.single-product .tp-bag3d__open:focus-visible,
body.single-product .tp-bag3d__sides button:focus-visible,
body.single-product .tp-bag3d__quick button:focus-visible,
body.single-product .tp-bag3d__upload:focus-visible,
body.single-product .tp-bag3d__hotspot:focus-visible { outline: 3px solid #2b9a56; outline-offset: 2px; }
body.single-product .tp-bag3d__loading {
  position: absolute;
  bottom: 12px;
  z-index: 1;
  padding: 5px 10px;
  color: #17242b;
  font-size: 12px;
  text-align: center;
}
body.single-product .tp-bag3d__viewer,
body.single-product .tp-bag3d model-viewer {
  display: block;
  width: 100%;
  height: min(68vw, 510px);
  min-height: 360px;
}
body.single-product .tp-bag3d__hotspot {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 30px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  /* model-viewer already centers slotted hotspots; a second translate shifted
     the artwork half its width to the left of the selected bag position. */
}
body.single-product .tp-bag3d__hotspot[hidden] { display: none; }
body.single-product .tp-bag3d__hotspot.is-dragging { cursor: grabbing; }
body.single-product .tp-bag3d__hotspot.has-dimensions {
  border: 2px dashed #087a67;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .95), 0 2px 9px rgba(15, 35, 44, .3);
}
body.single-product .tp-bag3d__hotspot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}
body.single-product .tp-bag3d__hotspot small {
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(23, 36, 43, .8);
  color: white;
  font: 700 10px/1.2 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
body.single-product .tp-bag3d__state { margin-top: 10px; color: #294653; font-size: 13px; font-weight: 700; }
body.single-product .tp-bag3d__quick { display: flex; gap: 8px; margin: 13px 0 10px; }
body.single-product .tp-bag3d__quick button { flex: 1; min-height: 36px; padding: 8px; border: 1px solid #cdd9de; border-radius: 8px; background: #f2f6f7; color: #294653; font: 800 12px/1.2 Manrope, system-ui, sans-serif; cursor: pointer; }
body.single-product .tp-bag3d__quick button:hover { background: #e2ecef; }
body.single-product .tp-bag3d__upload { display: grid; justify-items: center; gap: 5px; width: 100%; min-height: 105px; margin-top: 8px; padding: 16px; border: 2px dashed #8aa3ad; border-radius: 12px; background: #f6fafb; color: #294653; font-family: Manrope, system-ui, sans-serif; text-align: center; cursor: pointer; }
body.single-product .tp-bag3d__upload:hover,
body.single-product .tp-bag3d__upload.is-dragover { border-color: #294653; background: #eaf2f4; }
body.single-product .tp-bag3d__upload strong { font-size: 14px; }
body.single-product .tp-bag3d__upload span { font-size: 12px; }
body.single-product .tp-bag3d__upload small { color: #627680; font-size: 11px; }
body.single-product .tp-bag3d__file { margin-top: 8px !important; color: #294653; font-size: 12px; overflow-wrap: anywhere; }
body.single-product .tp-bag3d__colour { margin-top: 5px !important; color: #53656d; font-size: 12px; }
body.single-product .tp-bag3d__disclaimer { margin-top: 8px; }
body.single-product form.cart.tp-bag3d-ready .tp-print-placement { display: none !important; }

/* Restore a clear stock-status strip for the large 60 x 40 cm cotton bag.
   WooCommerce remains the sole source of the quantity and availability text. */
body.postid-112 form.variations_form .woocommerce-variation-availability p.stock {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin: 14px 0 16px !important;
  padding: 12px 14px 11px !important;
  border: 1px solid #d5e5da;
  border-radius: 13px;
  background: #f7fbf8;
  color: #20633d !important;
  font: 800 14px/1.35 Manrope, system-ui, sans-serif !important;
}
body.postid-112 form.variations_form .woocommerce-variation-availability p.stock::before {
  content: "STAN MAGAZYNOWY";
  display: block;
  margin-bottom: 5px;
  color: #53695c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
}
body.postid-112 form.variations_form .woocommerce-variation-availability p.stock::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #20834c 0 100%);
}
body.postid-112 form.variations_form .woocommerce-variation-availability p.stock.out-of-stock {
  border-color: #ead6d8;
  background: #fff8f8;
  color: #9c3541 !important;
}
body.postid-112 form.variations_form .woocommerce-variation-availability p.stock.out-of-stock::after {
  background: #d6d9dc;
}
body.postid-112 form.variations_form .woocommerce-variation-availability p.stock.available-on-backorder {
  border-color: #e7dfc6;
  background: #fffdf6;
  color: #805f19 !important;
}
body.postid-112 form.variations_form .woocommerce-variation-availability p.stock.available-on-backorder::after {
  background: #d7aa45;
}
@media (max-width: 600px) {
  body.single-product .tp-bag3d__stage { min-height: 315px; }
  body.single-product .tp-bag3d__viewer,
  body.single-product .tp-bag3d model-viewer { height: 365px; min-height: 315px; }
}
