/* Opt-in, same-page product viewer. Existing product/gallery CSS is not changed. */
[data-product360-host].product360{position:relative;min-width:0;border-radius:var(--palord-card-radius,16px)}
[data-product360-host] [hidden]{display:none!important}
[data-product360-host] [data-product360-poster]{display:block;width:100%;height:auto;object-fit:contain;border-radius:var(--palord-card-radius,16px)}
[data-product360-host] .product360-viewport{width:100%;height:clamp(260px,43vw,560px);min-width:0;border-radius:var(--palord-card-radius,16px);overflow:hidden}
[data-product360-host] .product360-canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab;outline-offset:-3px}
[data-product360-host] .product360-canvas:active{cursor:grabbing}
[data-product360-host] .product360-controls{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin-top:10px}
[data-product360-host] .product360-controls button,[data-product360-host] [data-product360-load]{appearance:none;border:0;border-bottom:1px solid currentColor;border-radius:var(--palord-control-radius,10px);box-shadow:none;background:transparent;color:inherit;font:inherit;font-size:14px;line-height:1.7;min-height:44px;padding:6px 0;cursor:pointer}
[data-product360-host] button:disabled{opacity:.55;cursor:default}
[data-product360-host] .product360-status,[data-product360-host] .product360-note{font:13px/1.8 var(--sans,sans-serif);color:var(--color-secondary,#596363);margin:8px 0;text-align:start;overflow-wrap:anywhere}
[data-product360-host] .product360-status:empty{display:none}
[data-product360-host] :is(button,canvas):focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(prefers-reduced-motion:reduce){[data-product360-host] *{scroll-behavior:auto!important}}

/* Proposed integration only: replace the newly inserted response figure, no extra section. */
#robot-response [data-figure-id="robot-response-permission-loop"][data-product360-compact-figure]{margin:0;min-width:0}
#robot-response [data-product360-host][data-product360-compact]{width:100%;max-width:360px;min-width:0;margin-inline:auto}
#robot-response [data-product360-compact] [data-product360-poster],
#robot-response [data-product360-compact] .product360-viewport{width:100%;height:auto;aspect-ratio:1;max-height:360px;object-fit:contain;border-radius:var(--palord-card-radius,16px)}
#robot-response [data-product360-compact] .product360-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px;align-items:start}
#robot-response [data-product360-compact] .product360-controls button{font-size:13px;line-height:1.7;min-width:0;overflow-wrap:anywhere;border-radius:var(--palord-control-radius,10px)}
#robot-response [data-product360-compact] .product360-note{font-size:12px;line-height:1.7;margin:6px 0}
@media(max-width:650px){#robot-response [data-product360-host][data-product360-compact]{max-width:334px}}
