.aw360-viewer{width:100%;max-width:100%;text-align:center}.aw360-stage{width:100%;aspect-ratio:1;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:pan-y;background:transparent;cursor:grab}.aw360-stage img{width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none}.aw360-toolbar{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:12px 0}.aw360-toolbar button{font-size:13px;padding:9px 13px}.aw360-swatches{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.aw360-swatches button{height:32px;width:32px;border:2px solid #ddd;border-radius:50%;cursor:pointer}.aw360-swatches button[aria-pressed=true]{outline:2px solid #222;outline-offset:2px}.aw360-help{font-size:12px;opacity:.75}.aw360-lightbox[hidden]{display:none!important}.aw360-lightbox{position:fixed;inset:0;z-index:999999;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;color:#222}.aw360-lightbox-stage{height:min(82vh,calc(100dvh - 110px));width:min(94vw,1450px);overflow:hidden;touch-action:none;display:flex;align-items:center;justify-content:center;cursor:grab}.aw360-lightbox-stage img{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.aw360-lightbox-controls{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:8px}.aw360-lightbox-controls button{padding:9px 15px;background:#f2f2f2;color:#161616;border:0;border-radius:5px;font-size:14px}.aw360-lightbox-close{position:absolute;right:16px;top:12px;font-size:27px!important;line-height:1!important;min-width:44px;min-height:44px}.aw360-lightbox-caption{font-size:13px;opacity:.8}.aw360-lightbox button:focus-visible{outline:3px solid #5aafff;outline-offset:3px}body.aw360-modal-open{overflow:hidden}@media(min-width:850px){.aw360-viewer .aw360-stage{min-height:480px}}@media(max-width:600px){.aw360-lightbox{padding:6px}.aw360-lightbox-stage{width:100vw;height:calc(100dvh - 120px)}.aw360-lightbox-controls button{font-size:12px;padding:8px 10px}}

/* v1.4.9 : fond blanc du zoom HD et commandes lisibles */
.aw360-lightbox{background:#fff!important;color:#222!important}
.aw360-lightbox-stage{background:#fff}
.aw360-lightbox-close{color:#222!important;background:#f2f2f2!important;border:1px solid #ddd!important;border-radius:6px}
.aw360-lightbox-controls button{background:#f2f2f2!important;color:#222!important;border:1px solid #ddd!important}
.aw360-lightbox-caption{color:#444}

/* v1.5 : synchronisation avec les attributs WooCommerce */
.aw360-swatches[hidden]{display:none!important}.aw360-variation-status{font-size:13px;margin:8px 0;color:#444}

/* Mode complémentaire : galerie WooCommerce / Flatsome préservée. */
.aw360-complement{clear:both;width:100%;margin:24px 0 32px;padding:16px 0;border-top:1px solid #e8e8e8}
.aw360-complement-title{font-size:1.2rem;margin:0 0 12px;text-align:center}
.aw360-complement .aw360-viewer{max-width:760px;margin:0 auto}
/* v1.5.3: 360° as an additional gallery thumbnail, not a replacement for photos. */
.aw360-gallery-source{border:0;margin:0;padding:0;width:100%}
.aw360-gallery-source .aw360-complement-title{display:none}
.aw360-gallery-holder{width:100%;background:#fff;clear:both}
.aw360-gallery-holder[hidden]{display:none!important}
.aw360-gallery-hidden{display:none!important}
.aw360-gallery-thumb{cursor:pointer;background:#fff;color:#222;border:1px solid #ddd;border-radius:4px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:13px;font-weight:700;min-width:68px;min-height:68px;margin:5px;padding:6px}
.aw360-gallery-thumb[aria-pressed=true]{outline:2px solid #222;outline-offset:2px}
.aw360-thumb-symbol{font-size:27px;line-height:1}
.aw360-gallery-thumbbar{display:flex;justify-content:center;margin:8px 0}
.aw360-gallery-holder .aw360-stage{max-height:680px}

/* v1.5.4 : commandes pictogrammes sur une seule ligne */
.aw360-viewer .aw360-toolbar{display:flex!important;flex-flow:row nowrap!important;align-items:center;justify-content:center;gap:10px;margin:10px 0;overflow:visible}
.aw360-viewer .aw360-toolbar button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px!important;width:44px;min-width:44px;height:44px;padding:0!important;border-radius:8px;background:#f5f5f5;color:#222;border:1px solid #ddd;cursor:pointer;line-height:1}
.aw360-viewer .aw360-toolbar button svg{display:block;width:21px;height:21px;pointer-events:none}
.aw360-viewer .aw360-toolbar button:hover{background:#e8e8e8}
.aw360-viewer .aw360-toolbar button:focus-visible{outline:3px solid #4b9cff;outline-offset:2px}

/* v1.5.5: photo/gallery above; four compact controls on one bottom row. */
.aw360-gallery-controls{clear:both;width:100%;display:flex;justify-content:center;margin:10px 0 14px}
.aw360-gallery-controls .aw360-toolbar{display:flex!important;flex-flow:row nowrap!important;align-items:center;justify-content:center;gap:10px;margin:0!important}
.aw360-gallery-controls .aw360-toolbar button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px!important;width:44px;min-width:44px;height:44px;padding:0!important;border:1px solid #ddd;border-radius:8px;background:#f5f5f5;color:#222;cursor:pointer}
.aw360-gallery-controls .aw360-toolbar button svg{width:21px;height:21px}
.aw360-gallery-controls .aw360-mode-toggle[aria-pressed=true]{border-color:#222;background:#eaeaea}
.aw360-gallery-holder .aw360-stage{aspect-ratio:auto;min-height:0;height:auto;max-height:680px;display:block;overflow:hidden}
.aw360-gallery-holder .aw360-stage img{display:block;width:100%;height:auto;max-height:680px;object-fit:contain}
@media(max-width:420px){.aw360-gallery-controls .aw360-toolbar{gap:7px}.aw360-gallery-controls .aw360-toolbar button{width:42px;min-width:42px;flex-basis:42px!important}}

/* v1.5.24 : 360 dans la colonne galerie, jamais en pleine largeur sous le produit. */
.single-product .product-gallery .aw360-gallery-holder,
.single-product .woocommerce-product-gallery .aw360-gallery-holder,
.single-product .product-gallery .aw360-gallery-controls,
.single-product .woocommerce-product-gallery .aw360-gallery-controls {width:100%;max-width:100%;box-sizing:border-box;clear:none;}
.single-product .product-gallery .aw360-viewer,
.single-product .woocommerce-product-gallery .aw360-viewer {width:100%;max-width:100%;box-sizing:border-box;}
.single-product .aw360-gallery-holder .aw360-stage {height:auto!important;max-height:560px;min-height:0!important;aspect-ratio:1;display:flex;align-items:center;justify-content:center;}
.single-product .aw360-gallery-holder .aw360-stage img {max-height:560px;width:100%;height:100%;object-fit:contain;}
.single-product .aw360-gallery-source {margin:0;padding:0;border:0;}
/* Avant l'initialisation JS, ne pas étendre la page en pleine largeur. */
.single-product .aw360-gallery-source:not(.aw360-gallery-mounted) {display:none!important;}
@media(max-width:849px){.single-product .aw360-gallery-holder .aw360-stage{max-height:450px}.single-product .aw360-gallery-holder .aw360-stage img{max-height:450px}}

/* v1.5.25 : le visualiseur nait dans le pied de page, invisible,
   puis est deplace dans la colonne galerie par JavaScript.
   Aucun bloc 360 ne doit preceder la description du produit. */
.aw360-gallery-source[hidden]{display:none!important}
.single-product .product-gallery .aw360-gallery-holder,
.single-product .woocommerce-product-gallery .aw360-gallery-holder{max-width:100%!important;width:100%!important;float:none!important}
.single-product .product-gallery .aw360-gallery-controls,
.single-product .woocommerce-product-gallery .aw360-gallery-controls{max-width:100%!important;width:100%!important;float:none!important}


/* v1.5.28 : aucun reflow global de Flatsome. Le visualiseur reste dans sa colonne galerie native. */
.single-product .product-main .product-gallery,
.single-product .product-main .woocommerce-product-gallery {min-width:0;}
.single-product .product-main .product-gallery .aw360-gallery-holder,
.single-product .product-main .woocommerce-product-gallery .aw360-gallery-holder {width:100%!important;max-width:100%!important;overflow:hidden;}
.single-product .product-main .aw360-gallery-holder .aw360-stage {width:100%!important;max-height:500px!important;min-height:0!important;aspect-ratio:1!important;}
.single-product .product-main .aw360-gallery-holder .aw360-stage img {width:100%!important;height:100%!important;max-height:500px!important;object-fit:contain!important;}
.single-product .aw360-swatches {display:flex!important;gap:9px;justify-content:center;flex-wrap:wrap;margin:10px auto 12px;}
.single-product .aw360-swatches button {width:34px;height:34px;min-width:34px;min-height:34px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #999;}
.aw360-footer-fallback[hidden]{display:none!important}

/* v1.5.29 : limiter le viewer a la colonne native sans toucher aux rows Flatsome */
.single-product .product-main .product-gallery>.aw360-gallery-holder,
.single-product .product-main .woocommerce-product-gallery>.aw360-gallery-holder,
.single-product .product-main .product-gallery>.aw360-gallery-controls,
.single-product .product-main .woocommerce-product-gallery>.aw360-gallery-controls{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;clear:both;box-sizing:border-box;}
.single-product .product-main .aw360-gallery-holder .aw360-stage{width:100%!important;height:auto!important;aspect-ratio:1!important;max-height:550px!important;min-height:0!important;display:flex!important;align-items:center;justify-content:center;}
.single-product .product-main .aw360-gallery-holder .aw360-stage img{width:100%!important;height:100%!important;object-fit:contain!important;max-height:550px!important;}
.single-product .aw360-gallery-hidden{display:none!important}

/* v1.5.30: le viewer ne peut depasser sa colonne native. */
.single-product .aw360-gallery-holder,.single-product .aw360-gallery-controls{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
.single-product .aw360-gallery-holder .aw360-viewer{width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
.single-product .aw360-gallery-active>.aw360-gallery-hidden{display:none!important;}
.single-product .aw360-gallery-holder .aw360-stage{width:100%!important;max-height:560px!important;}
.single-product .aw360-gallery-controls .aw360-mode-toggle{font-size:12px;padding:7px 10px;margin-right:8px;}
