.pas{margin:20px 0;width:100%;clear:both}.pas-stage{position:relative;min-height:390px;aspect-ratio:1.2;background:radial-gradient(ellipse at 30% 15%,#fff,#e9e5df);display:flex;align-items:center;justify-content:center;padding:28px 18px 84px;overflow:hidden;border-radius:14px;box-sizing:border-box}.pas-object{position:relative;display:flex;align-items:center;justify-content:center;width:55%;aspect-ratio:21/29.7;background:#fff;box-shadow:4px 12px 22px #0002;transition:background .2s}.pas-object:before{content:'';position:absolute;left:7%;top:0;bottom:0;border-left:1px solid #ddd}.pas-object:after{content:'';position:absolute;left:-5%;top:4%;bottom:4%;width:8%;background:repeating-linear-gradient(0deg,transparent 0 13px,#6a6a6a 14px 16px,transparent 17px 26px)}.pas-art{display:block;object-fit:contain;max-width:85%;max-height:85%;z-index:1;box-shadow:none!important;border-radius:0!important}.pas-tabs{position:absolute;bottom:16px;left:12px;right:12px;display:flex;gap:7px;justify-content:center;flex-wrap:wrap}.pas-tabs button{border:1px solid #ccc;background:#fff;color:#252525;border-radius:25px;padding:8px 12px;font-size:13px;cursor:pointer;line-height:1.4}.pas-tabs button[aria-pressed=true]{background:#202b30;border-color:#202b30;color:#fff}.pas-tabs button:focus-visible{outline:3px solid #668fa7;outline-offset:2px}.pas [data-surface=book] .pas-object{aspect-ratio:17/24;background:#eee9db;border-radius:2px 9px 9px 2px;box-shadow:5px 5px #d5d1c4,7px 8px #fff,8px 12px 20px #0003}.pas [data-surface=book] .pas-object:before{left:5%;border-color:#c4bdac}.pas [data-surface=book] .pas-object:after{display:none}.pas [data-surface=glass]{background:linear-gradient(120deg,#e4eee7,#d8e4ed 50%,#f5eedb)}.pas [data-surface=glass] .pas-object{width:64%;aspect-ratio:40/50;border:2px solid #fff9;background:linear-gradient(115deg,#fff2 35%,#fffa 36%,#fff2 40%,#fff5 75%,#fff1 76%);box-shadow:8px 13px 20px #344b4425}.pas [data-surface=glass] .pas-object:before,.pas [data-surface=glass] .pas-object:after{display:none}.pas [data-surface=wood] .pas-object{width:85%;aspect-ratio:40/30;background:repeating-linear-gradient(2deg,#c99e70 0px,#d5af83 4px,#cda274 6px,#ddb88d 21px,#b98b5e 22px,#d4aa7a 23px);border:8px solid #b88b5f;box-shadow:4px 12px 22px #0003}.pas [data-surface=wood] .pas-object:before,.pas [data-surface=wood] .pas-object:after{display:none}.pas label{display:block;font-weight:600;margin:14px 0 8px}.pas select{width:100%;padding:12px;border:1px solid #ccc;border-radius:6px;background:#fff;color:#222}.pas-hint{font-size:12px;line-height:1.5;color:#666;margin:8px 0}.pas-price{font-size:18px;font-weight:600;margin:12px 0}@media(max-width:480px){.pas-stage{min-height:330px;padding-bottom:100px}.pas-tabs button{font-size:12px;padding:7px 10px}}
/* Theme owns the existing gallery/summary columns. */
.single-product div.product .pas-gallery{opacity:1!important;float:left;width:48%;margin-bottom:2em;clear:none}.pas-gallery .pas-preview{margin:0}.pas-gallery .pas-stage{width:100%}.pas-options{display:block;flex-basis:100%;width:100%;margin:0 0 18px}.summary form.cart:has(.pas-options){flex-wrap:wrap}.pas-gallery img.pas-art{width:auto;height:auto}.pas-gallery .pas-object{flex-shrink:0}@media(max-width:768px){.single-product div.product .pas-gallery{float:none;width:100%;margin-bottom:20px}.pas-gallery .pas-stage{min-height:360px}}
/* Betheme BeBuilder product-image module already owns the left column. */
.single-product div.product .pas-builder-mount .pas-gallery{float:none;width:100%;margin:0;display:block;visibility:visible;opacity:1}.pas-builder-mount{width:100%}.pas-builder-mount .pas-stage{min-height:520px;aspect-ratio:1.15}.pas-builder-mount .pas-tabs button{margin:0;min-height:38px;white-space:nowrap}.pas-options select{display:block!important;visibility:visible!important;opacity:1!important}@media(max-width:768px){.pas-builder-mount .pas-stage{min-height:360px}}
.pas-object{overflow:hidden}.pas-placement{position:absolute;left:50%;top:50%;width:38%;height:38%;transform:translate(-50%,-50%);cursor:grab;touch-action:none;user-select:none;z-index:2;display:flex;align-items:center;justify-content:center}.pas-placement.pas-dragging{cursor:grabbing}.pas-placement:focus-visible{outline:2px dashed #527a90;outline-offset:3px}.pas-gallery .pas-placement img.pas-art{display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;pointer-events:none;user-select:none}.pas-tools{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:12px 0}.pas-tools[hidden]{display:none!important}.pas-tools label{flex:1;min-width:150px;margin:0;font-size:13px}.pas-tools input{display:block;width:100%;margin:8px 0;min-height:24px;accent-color:#202b30}.pas-tools output{float:right}.pas-reset{padding:9px 12px;border:1px solid #ccc;background:#fff;color:#222;border-radius:5px;cursor:pointer;font-size:13px}.pas-stage[data-surface=original]{background:#fff;padding:15px 15px 90px}.pas-stage[data-surface=original] .pas-object{width:100%;height:440px;aspect-ratio:auto;background:transparent;box-shadow:none;border:0}.pas-stage[data-surface=original] .pas-object:before,.pas-stage[data-surface=original] .pas-object:after{display:none}.pas-stage[data-surface=original] .pas-placement{cursor:default;touch-action:auto}.pas-tabs button{margin:0!important}@media(max-width:768px){.pas-stage[data-surface=original] .pas-object{height:340px}.pas-tabs{gap:5px}.pas-tabs button{padding:8px 10px}}
/* Original image uses its natural aspect ratio, with no fixed-height frame. */
.pas-gallery .pas-stage[data-surface=original]{display:block;height:auto;min-height:0;aspect-ratio:auto;padding:0;overflow:visible;background:transparent;border-radius:0}.pas-gallery .pas-stage[data-surface=original] .pas-object{display:block;position:relative;width:100%;height:auto;max-height:none;aspect-ratio:auto;overflow:visible;background:transparent;border:0;box-shadow:none}.pas-gallery .pas-stage[data-surface=original] .pas-placement{position:static;display:block;width:100%!important;height:auto!important;max-width:none;max-height:none;transform:none;overflow:visible}.pas-gallery .pas-stage[data-surface=original] .pas-placement img.pas-art{display:block;width:100%!important;height:auto!important;max-width:100%;max-height:none;object-fit:contain}.pas-gallery .pas-stage[data-surface=original] .pas-tabs{position:static;margin-top:14px;padding:0 0 4px;display:flex;flex-wrap:wrap}.pas-tabs{gap:6px}.pas-tabs button{white-space:normal;max-width:100%;line-height:1.4}.pas-gallery .pas-stage:not([data-surface=original]){padding-bottom:120px}
/* Compact original view; full image remains visible without cropping. */
.pas-gallery .pas-stage[data-surface=original] .pas-object{width:100%;max-width:100%;height:auto;text-align:center}.pas-gallery .pas-stage[data-surface=original] .pas-placement{width:100%!important;height:auto!important}.pas-gallery .pas-stage[data-surface=original] .pas-placement img.pas-art{width:auto!important;height:auto!important;max-width:75%;max-height:560px;margin:0 auto;object-fit:contain}@media(max-width:768px){.pas-gallery .pas-stage[data-surface=original] .pas-placement img.pas-art{max-width:85%;max-height:400px}}
/* Controls follow the scene: size controls, then surface choices. */
.pas-gallery .pas-preview>.pas-tabs{position:static;display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:14px 0 0;padding:0;left:auto;right:auto;bottom:auto}.pas-gallery .pas-stage:not([data-surface=original]){padding:28px 18px;aspect-ratio:1.15}.pas-gallery .pas-tools{margin:14px 0 0}.pas-gallery .pas-stage[data-surface=glass]{padding:0;min-height:0;aspect-ratio:1;background:#dce3df}.pas-gallery .pas-stage[data-surface=glass] .pas-object{width:100%;height:100%;aspect-ratio:1;max-height:none;border:0;border-radius:0;box-shadow:none;background:#dce3df url('glass-cafe-v1.png') center/cover no-repeat}.pas-gallery .pas-stage[data-surface=glass] .pas-object:before,.pas-gallery .pas-stage[data-surface=glass] .pas-object:after{display:none}.pas-gallery .pas-stage[data-surface=glass] .pas-art{filter:drop-shadow(0 1px 1px #0002)}
/* All views share the original image's compact measured height. */
.pas-gallery .pas-preview{--pas-scene-height:560px}.pas-gallery .pas-preview .pas-stage,.pas-gallery .pas-preview .pas-stage[data-surface=original],.pas-gallery .pas-preview .pas-stage[data-surface=glass],.pas-gallery .pas-preview .pas-stage:not([data-surface=original]){display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:var(--pas-scene-height);min-height:0;max-height:var(--pas-scene-height);aspect-ratio:auto;padding:20px 18px;overflow:hidden}.pas-gallery .pas-preview .pas-stage .pas-object{box-sizing:border-box;flex:none;height:90%;width:auto;max-width:90%;max-height:100%;aspect-ratio:21/29.7}.pas-gallery .pas-preview .pas-stage[data-surface=book] .pas-object{aspect-ratio:17/24}.pas-gallery .pas-preview .pas-stage[data-surface=wood] .pas-object{height:auto;width:min(85%,calc(var(--pas-scene-height)*1.05));aspect-ratio:40/30}.pas-gallery .pas-preview .pas-stage[data-surface=glass]{padding:0}.pas-gallery .pas-preview .pas-stage[data-surface=glass] .pas-object{width:100%;height:100%;max-width:100%;aspect-ratio:auto}.pas-gallery .pas-preview .pas-stage[data-surface=original]{padding:0}.pas-gallery .pas-preview .pas-stage[data-surface=original] .pas-object{display:flex;align-items:center;justify-content:center;width:100%;height:100%;max-width:100%;aspect-ratio:auto}.pas-gallery .pas-preview .pas-stage[data-surface=original] .pas-placement{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%!important;height:100%!important;transform:none}.pas-gallery .pas-preview .pas-stage[data-surface=original] .pas-art{width:auto!important;height:auto!important;max-width:75%;max-height:100%;margin:0;object-fit:contain}.pas-gallery .pas-preview .pas-tools[hidden]{display:flex!important;visibility:hidden;pointer-events:none}@media(max-width:768px){.pas-gallery .pas-preview{--pas-scene-height:400px}.pas-gallery .pas-preview .pas-stage[data-surface=original] .pas-art{max-width:85%}}
/* Original view never inherits the draggable layer's inline 50% offsets. */
.pas-gallery .pas-preview .pas-stage[data-surface=original] .pas-placement{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;transform:none!important;margin:0!important;padding:0;display:flex;align-items:center;justify-content:center}.pas-gallery .pas-preview .pas-stage[data-surface=original] .pas-art{position:static!important;transform:none!important;float:none!important;flex:none;margin:0 auto!important;max-height:100%;max-width:75%;object-fit:contain}@media(max-width:768px){.pas-gallery .pas-preview .pas-stage[data-surface=original] .pas-art{max-width:85%}}

/* Preserve the latest size-selector readability fixes. */
.single-product .product form.cart:has(.pas-options){display:flex!important;flex-wrap:wrap!important;align-items:center;gap:10px}.single-product .product form.cart .pas-options{display:block!important;box-sizing:border-box;flex:0 0 100%!important;width:100%!important;min-width:0;max-width:100%;margin:0 0 12px;float:none;clear:both}.pas-options label{display:block!important;float:none!important;width:auto!important;margin:0 0 8px;font-weight:600;color:#222}.single-product .product .pas-options select{display:block!important;visibility:visible!important;opacity:1!important;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:48px;margin:0;padding:12px 36px 12px 12px!important;border:1px solid #bbb!important;border-radius:5px;background-color:#fff!important;color:#222!important;font-size:15px!important;line-height:1.5!important;text-indent:0!important;appearance:auto!important}.pas-options option{background:#fff;color:#222}.pas-price{display:block!important;margin:12px 0 0!important;font-size:18px;font-weight:600;color:#222}.pas-setup-warning{font-size:13px;color:#8b4c00}

/* 1.5.1: do not force a 48% gallery within new theme grids. */
body.single-product .pas-gallery{box-sizing:border-box;max-width:100%;min-width:0}
body.single-product .pas-builder-mount .pas-gallery{width:100%!important;float:none!important}
body.single-product .product :is(.summary,.entry-summary,.product-summary,.product-info) .pas-options{max-width:100%}
body.single-product .pas-gallery:only-child{width:100%;float:none}
body.single-product .pas-gallery .pas-preview{max-width:100%}
@media(max-width:768px){body.single-product .pas-gallery{float:none!important;width:100%!important}}

/* v1.5.2 — Isolate the zoom slider's dot and track from theme form-control styling. */
body.single-product .pas-gallery .pas-tools input.pas-zoom,
body.single-product .pas-preview .pas-tools input[type="range"].pas-zoom{
  -webkit-appearance:none!important;appearance:none!important;
  display:block!important;box-sizing:border-box!important;
  width:100%!important;height:24px!important;min-height:24px!important;
  padding:0!important;margin:8px 0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;outline-offset:3px;
  cursor:pointer;opacity:1!important;
}
body.single-product .pas-gallery .pas-tools input.pas-zoom::-webkit-slider-runnable-track{
  -webkit-appearance:none;box-sizing:border-box;width:100%;height:6px;
  border:0;border-radius:999px;background:#d5dbe0!important;box-shadow:none!important;
}
body.single-product .pas-gallery .pas-tools input.pas-zoom::-moz-range-track{
  box-sizing:border-box;width:100%;height:6px;border:0;
  border-radius:999px;background:#d5dbe0!important;box-shadow:none!important;
}
body.single-product .pas-gallery .pas-tools input.pas-zoom::-webkit-slider-thumb{
  -webkit-appearance:none!important;appearance:none!important;
  box-sizing:border-box;width:18px!important;height:18px!important;
  border:3px solid #fff!important;border-radius:50%!important;
  background:#202b30!important;background-image:none!important;
  box-shadow:0 0 0 1px #7b8a91,0 1px 3px #0002!important;
  margin-top:-6px!important;opacity:1!important;
}
body.single-product .pas-gallery .pas-tools input.pas-zoom::-moz-range-thumb{
  box-sizing:border-box;width:18px!important;height:18px!important;
  border:3px solid #fff!important;border-radius:50%!important;
  background:#202b30!important;background-image:none!important;
  box-shadow:0 0 0 1px #7b8a91,0 1px 3px #0002!important;
  opacity:1!important;
}
body.single-product .pas-gallery .pas-tools input.pas-zoom:focus-visible{outline:2px solid #527a90!important;outline-offset:3px}
