/* Product gallery: 3D preview slide (Plato_3D_Preview). The slide is a normal gallery image (the poster); assets/3d-preview.js
   puts the live model over it. Own p3d- classes only, added inside the theme's slide and thumbnail; no theme rule is changed. */
.p3d-canvas{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;touch-action:none;cursor:grab;background:linear-gradient(var(--theme-palette-color-8,#fff),var(--theme-palette-color-6,#f4f4f5))}
.p3d-canvas:active{cursor:grabbing}
.p3d-badge{position:absolute;z-index:2;top:12px;left:12px;display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;box-sizing:border-box;padding:0 8px;border-radius:20px;background:var(--theme-palette-color-2,#7f715c);color:#fff;font-size:15px;font-weight:700;line-height:1;letter-spacing:.02em;pointer-events:none}
.p3d-chip{position:absolute;z-index:2;left:62px;top:17px;max-width:calc(100% - 124px);box-sizing:border-box;padding:5px 9px;border:1px solid var(--theme-palette-color-5,#eaeaec);border-radius:2px;background:rgba(255,255,255,.92);color:var(--theme-palette-color-3,#3f4245);font-size:13px;line-height:1.4;pointer-events:none}
.p3d-chip strong{color:var(--theme-palette-color-4,#111518);font-weight:600}
.p3d-chip[hidden]{display:none}
/* Option bar: always one row. Sizes follow the slide's width (cqw = 1% of the bar), full size on desktop, smaller on phones. */
.p3d-bar{position:absolute;z-index:2;left:12px;right:12px;bottom:12px;container-type:inline-size;display:flex;flex-wrap:nowrap;align-items:center;gap:10px;gap:clamp(4px,1.8cqw,10px)}
.p3d-bar:empty{display:none}
.p3d-group{display:flex;flex-wrap:nowrap;flex:0 1 auto;min-width:0;box-sizing:border-box;gap:6px;gap:clamp(2px,1cqw,6px);padding:4px;padding:clamp(2px,.7cqw,4px);border:1px solid var(--theme-palette-color-1,#a8977b);border-radius:2px;background:rgba(255,255,255,.92)}
.p3d-opt{display:flex;align-items:center;justify-content:center;flex:0 1 auto;min-width:44px;min-width:clamp(22px,7.6cqw,44px);min-height:36px;min-height:clamp(24px,6.3cqw,36px);box-sizing:border-box;padding:2px 8px;padding:2px clamp(3px,1.1cqw,8px);background:#fff;border-radius:2px;box-shadow:0 0 0 1px #a8a8a8;color:#000;font-size:14px;font-size:clamp(9.5px,2.9cqw,14px);line-height:1.4;white-space:nowrap;cursor:pointer;user-select:none}
.p3d-opt svg{display:block;flex:none;width:36px;width:clamp(16px,6cqw,36px);height:auto}
.p3d-opt:hover,.p3d-opt:focus-visible{box-shadow:0 0 0 1px var(--theme-palette-color-2,#7f715c);outline:none}
.p3d-opt[aria-pressed=true],.p3d-opt[aria-pressed=true]:hover,.p3d-opt[aria-pressed=true]:focus-visible{box-shadow:var(--wvs-selected-item-box-shadow,0 0 0 2px #7f715c)}
