/* Scoped; WordPress/Elementor global typography and accent are inherited. */
.tp-viewer{--tp-bg:#121212;--tp-surface:#1c1c1c;--tp-line:rgba(255,255,255,.15);--tp-fg:#f3f3f3;--tp-muted:#a3a3a3;--tp-accent:var(--e-global-color-accent,#e7e7e7);--tp-radius:4px;position:relative;width:100%;min-width:0;container-type:inline-size;color:var(--tp-fg);font-family:inherit;font-size:inherit;line-height:1.4;box-sizing:border-box;color-scheme:dark}
.tp-viewer *, .tp-viewer *::before,.tp-viewer *::after{box-sizing:border-box}
.tp-viewer .tp-stage{position:relative;isolation:isolate;overflow:hidden;width:100%;height:var(--tp-height,420px);aspect-ratio:auto;background:radial-gradient(ellipse at 48% 42%,#333 0%,#202020 53%,var(--tp-bg) 100%);border:1px solid var(--tp-line);border-radius:var(--tp-radius)}
.tp-viewer canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab;z-index:1;opacity:0}
.tp-viewer[data-ready=true] canvas{opacity:1}.tp-viewer canvas:active{cursor:grabbing}
.tp-viewer .tp-poster{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:75%;width:auto;max-width:70%;object-fit:contain;filter:drop-shadow(15px 15px 15px rgba(0,0,0,.5));pointer-events:none;transition:opacity .15s}
.tp-viewer[data-ready=true] .tp-poster{opacity:0}
.tp-viewer .tp-tools{position:absolute;right:12px;top:12px;z-index:3;display:flex;flex-direction:column;gap:5px;align-items:stretch}
.tp-viewer button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:38px;height:38px;margin:0;padding:0 10px;border:1px solid var(--tp-line);border-radius:var(--tp-radius);background:rgba(20,20,20,.84);color:var(--tp-fg);font-family:inherit;font-size:12px;font-weight:500;line-height:1;letter-spacing:normal;text-transform:none;box-shadow:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.tp-viewer button:hover:not(:disabled){color:var(--tp-fg);background:#383838;border-color:#777}.tp-viewer button:disabled,.tp-viewer input:disabled{opacity:.42;cursor:default}.tp-viewer button:focus-visible,.tp-viewer input:focus-visible{outline:2px solid var(--tp-accent);outline-offset:3px}.tp-viewer button svg{display:block;width:18px;height:18px;flex:none}.tp-viewer .tp-tools button{width:42px;padding:0}.tp-viewer [data-tp=quality]{font-size:11px}
.tp-viewer .tp-controls{display:flex;align-items:center;gap:12px;margin-top:12px;min-width:0}.tp-viewer .tp-play{min-width:124px;justify-content:flex-start;padding:0 13px;background:var(--tp-surface);font-size:13px}.tp-viewer .tp-play .tp-icon-pause,.tp-viewer .tp-play[data-playing=true] .tp-icon-play{display:none}.tp-viewer .tp-play[data-playing=true] .tp-icon-pause{display:block}
.tp-viewer input[type=range]{--tp-progress:0%;appearance:none;flex:1;min-width:0;width:100%;height:24px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;touch-action:pan-y;accent-color:#fff}
.tp-viewer input[type=range]::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:linear-gradient(to right,#fff 0 var(--tp-progress),#555 var(--tp-progress) 100%)}.tp-viewer input[type=range]::-moz-range-track{height:2px;background:#555}.tp-viewer input[type=range]::-moz-range-progress{height:2px;background:#fff}.tp-viewer input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:#fff;border:0;margin-top:-5.5px}.tp-viewer input[type=range]::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:#fff;border:0}
.tp-viewer .tp-tip{font:inherit;font-size:12px;color:var(--tp-muted);margin:10px 0 0;line-height:1.5}.tp-viewer .tp-status{position:absolute;z-index:2;bottom:12px;left:50%;transform:translateX(-50%);max-width:85%;padding:5px 10px;background:rgba(15,15,15,.88);color:var(--tp-muted);font-size:12px;text-align:center;border-radius:var(--tp-radius);pointer-events:none}.tp-viewer .tp-hidden{display:none!important}

/* The canvas occupies the actual scene. Controls float above it. */
.tp-viewer .tp-controls{position:absolute;z-index:3;right:20px;bottom:18px;width:min(390px,53%);margin:0;gap:10px;padding:6px;background:rgba(18,18,18,.76);border:1px solid var(--tp-line);border-radius:var(--tp-radius);backdrop-filter:blur(8px)}
.tp-viewer .tp-controls .tp-play{min-width:112px;padding:0 10px}
.tp-viewer .tp-controls [data-tp=start]{flex:none;width:38px;padding:0}
.tp-viewer .tp-tip{position:absolute;z-index:2;left:18px;bottom:20px;max-width:36%;margin:0;font-size:11px;line-height:1.5;pointer-events:none;color:var(--tp-muted)}
.tp-viewer .tp-status{bottom:auto;top:12px;max-width:65%}
.tp-viewer .tp-poster{top:calc(50% - 35px);height:calc(75% - 30px)}
.tp-viewer:fullscreen{background:var(--tp-bg);padding:12px;display:flex;align-items:stretch;justify-content:center;width:100%!important;height:100%!important;container-type:inline-size}
.tp-viewer:fullscreen .tp-stage{flex:1;min-height:0;height:100%;aspect-ratio:auto}
/* Container width, not viewport width, determines the control layout. */
@container (max-width:620px){
 .tp-viewer .tp-tools{right:7px;top:7px;gap:4px}
 .tp-viewer .tp-tools button{width:38px;height:38px}
 .tp-viewer .tp-controls{left:10px;right:10px;bottom:42px;width:auto;gap:8px;padding:4px}
 .tp-viewer .tp-controls .tp-play{min-width:100px;padding:0 8px}
 .tp-viewer .tp-tip{left:12px;right:10px;bottom:9px;max-width:none;font-size:10px;line-height:1.3}
 .tp-viewer .tp-poster{top:calc(50% - 40px);height:calc(75% - 50px);max-width:67%}
}
@container (max-width:350px){
 .tp-viewer .tp-controls .tp-play{min-width:86px;font-size:12px}
 .tp-viewer .tp-controls{bottom:42px}
 .tp-viewer .tp-tools button{height:32px;width:32px;min-width:32px}
}
/* In short scenes move tools to a horizontal row instead of clipping them. */
.tp-viewer .tp-stage[data-compact=true] .tp-tools{flex-direction:row;right:8px;top:8px;gap:4px}
.tp-viewer .tp-stage[data-compact=true] .tp-tools button{width:32px;height:32px;min-width:32px}
/* Fallback for older browsers without container queries. */
@supports not (container-type:inline-size){@media(max-width:620px){.tp-viewer .tp-controls{left:10px;right:10px;width:auto;bottom:40px}.tp-viewer .tp-tip{left:12px;bottom:9px;max-width:none;font-size:10px}}}

/* Elementor container sizing. The dedicated widget (or shortcode widget) fills
   available flex space, including a parent whose size is set via min-height.
   No aspect ratio or viewport-driven height participates in this mode. */
.elementor-widget-sdesigner_teapins_3d,
.elementor-widget-shortcode:has(.tp-viewer:not([data-tp-sizing="custom"]):not([data-mode="spin"])) {
    display:flex!important;flex-direction:column!important;align-self:stretch!important;
    flex:1 1 0px!important;width:100%!important;max-width:100%!important;
    min-width:0!important;min-height:160px!important;
}
.elementor-widget-sdesigner_teapins_3d > .elementor-widget-container,
.elementor-widget-shortcode:has(.tp-viewer:not([data-tp-sizing="custom"]):not([data-mode="spin"])) > .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode:has(> .tp-viewer:not([data-tp-sizing="custom"]):not([data-mode="spin"])) {
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    flex:1 1 0px!important;width:100%!important;min-width:0!important;min-height:0!important;
}
.elementor-widget-sdesigner_teapins_3d .tp-viewer,
.elementor-widget-shortcode .tp-viewer:not([data-tp-sizing="custom"]):not([data-mode="spin"]) {
    display:flex!important;flex-direction:column!important;flex:1 1 0px!important;
    width:100%!important;max-width:100%!important;min-height:0!important;
}
.elementor-widget-sdesigner_teapins_3d .tp-stage,
.elementor-widget-shortcode .tp-viewer:not([data-tp-sizing="custom"]):not([data-mode="spin"]) .tp-stage {
    flex:1 1 0px!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;
}
/* Elementor boxed containers have an extra flex wrapper. Allow it to stretch
   through the full available height in both row and column configurations. */
.e-con > .e-con-inner:has(> .elementor-widget-sdesigner_teapins_3d),
.e-con > .e-con-inner:has(> .elementor-widget-shortcode .tp-viewer:not([data-tp-sizing="custom"]):not([data-mode="spin"])) {
    align-self:stretch!important;flex-grow:1!important;min-height:0;
}
/* Fullscreen remains independent of the parent's layout. */
.tp-viewer:fullscreen .tp-stage{height:100%!important;flex:1 1 0px!important}

/* Scroll cue floats above the canvas; it never reserves space for camera fit. */
.tp-viewer .tp-bottom-ui{display:contents}
.tp-viewer .tp-scroll-arrow{position:absolute;z-index:4;left:50%;bottom:88px;transform:translateX(-50%);width:46px;height:46px;min-width:46px;padding:0;border:0;border-radius:0;background:transparent;color:rgba(255,255,255,.78);box-shadow:none;touch-action:manipulation}
.tp-viewer .tp-scroll-arrow svg{width:32px;height:32px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.85));animation:tp-scroll-bob 2.1s ease-in-out infinite}
.tp-viewer .tp-scroll-arrow:hover:not(:disabled){background:transparent;color:#fff;border:0;box-shadow:none}
@keyframes tp-scroll-bob{0%,100%{transform:translateY(-2px);opacity:.72}50%{transform:translateY(3px);opacity:1}}
@media(prefers-reduced-motion:reduce){.tp-viewer .tp-scroll-arrow svg{animation:none}}
/* Wide scenes have room between the instruction and the player. */
@container(min-width:880px){.tp-viewer .tp-scroll-arrow{bottom:6px}}
@supports not (container-type:inline-size){@media(min-width:880px){.tp-viewer .tp-scroll-arrow{bottom:72px}}}
/* Mobile: instruction above player, floating arrow anchored to instruction row.
   Absolute grid placement does not change the size of either row. */
@container(max-width:620px){
 .tp-viewer .tp-bottom-ui{position:absolute;z-index:3;left:10px;right:10px;bottom:10px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:7px;pointer-events:none}
 .tp-viewer .tp-bottom-ui .tp-controls{position:relative;inset:auto;grid-row:2;grid-column:1;width:100%;margin:0;pointer-events:auto}
 .tp-viewer .tp-bottom-ui .tp-tip{position:relative;inset:auto;grid-row:1;grid-column:1;width:100%;max-width:none;margin:0;text-align:center;font-size:10px;line-height:1.35}
 .tp-viewer .tp-bottom-ui .tp-scroll-arrow{position:absolute;grid-row:1/2;grid-column:1/2;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%);pointer-events:auto}
 .tp-viewer .tp-poster{top:calc(50% - 25px);height:calc(75% - 30px);max-width:67%}
 .tp-viewer .tp-stage[data-compact=true] .tp-bottom-ui{gap:4px;bottom:6px}
 .tp-viewer .tp-stage[data-compact=true] .tp-scroll-arrow{width:36px;height:36px;min-width:36px}
 .tp-viewer .tp-stage[data-compact=true] .tp-scroll-arrow svg{width:26px;height:26px}
}
@supports not (container-type:inline-size){@media(max-width:620px){
 .tp-viewer .tp-bottom-ui{position:absolute;z-index:3;left:10px;right:10px;bottom:10px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:7px;pointer-events:none}
 .tp-viewer .tp-bottom-ui .tp-controls{position:relative;inset:auto;grid-row:2;grid-column:1;width:100%;margin:0;pointer-events:auto}
 .tp-viewer .tp-bottom-ui .tp-tip{position:relative;inset:auto;grid-row:1;grid-column:1;width:100%;max-width:none;margin:0;text-align:center;font-size:10px;line-height:1.35}
 .tp-viewer .tp-bottom-ui .tp-scroll-arrow{position:absolute;grid-row:1/2;grid-column:1/2;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%);pointer-events:auto}
 .tp-viewer .tp-poster{top:calc(50% - 25px);height:calc(75% - 30px);max-width:67%}
 .tp-viewer .tp-stage[data-compact=true] .tp-bottom-ui{gap:4px;bottom:6px}
 .tp-viewer .tp-stage[data-compact=true] .tp-scroll-arrow{width:36px;height:36px;min-width:36px}
 .tp-viewer .tp-stage[data-compact=true] .tp-scroll-arrow svg{width:26px;height:26px}
}}
/* Do not offer page scrolling in fullscreen. */
.tp-viewer:fullscreen .tp-scroll-arrow{display:none}


/* Lite spin-only insert between text blocks */
.tp-viewer[data-mode="spin"]{--tp-height:320px;--tp-line:transparent;color-scheme:normal}
.tp-viewer[data-mode="spin"] .tp-stage{background:transparent;border:0;border-radius:0}
.tp-viewer[data-mode="spin"] .tp-tools,
.tp-viewer[data-mode="spin"] .tp-controls,
.tp-viewer[data-mode="spin"] .tp-tip,
.tp-viewer[data-mode="spin"] .tp-scroll-arrow,
.tp-viewer[data-mode="spin"] .tp-status{display:none!important}
.tp-viewer[data-mode="spin"] .tp-poster{filter:none;max-width:64%;height:72%;top:50%}
.tp-viewer[data-mode="spin"] canvas{cursor:grab}
.tp-viewer[data-mode="spin"] canvas:active{cursor:grabbing}
.tp-viewer[data-mode="spin"] .tp-bottom-ui{display:none!important}
.tp-viewer[data-mode="spin"]:fullscreen .tp-stage{background:transparent}
@container (max-width:620px){
 .tp-viewer[data-mode="spin"]{--tp-height:260px}
 .tp-viewer[data-mode="spin"] .tp-poster{max-width:72%;height:70%}
}
@supports not (container-type:inline-size){@media(max-width:620px){
 .tp-viewer[data-mode="spin"]{--tp-height:260px}
 .tp-viewer[data-mode="spin"] .tp-poster{max-width:72%;height:70%}
}}

/* Spin widget: independent height; width follows the Elementor column/widget. */
.elementor-widget-sdesigner_teapins_3d_spin{min-width:0;max-width:100%}
.elementor-widget-sdesigner_teapins_3d_spin > .elementor-widget-container{min-width:0}
