/* ---- Thumbnail badge: "360°" + play marker on the video slide's thumb ---- */
.woocommerce-product-gallery .flex-control-thumbs li.product-360-video-thumb {
    position: relative;
}
.woocommerce-product-gallery .flex-control-thumbs li.product-360-video-thumb::after {
    content: "360\00B0  \25B6";
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* ---- Inline video player, filling the active slide exactly like the image it replaces ----
   aspect-ratio starts at a sensible 16:9 default (minimizes any flash of
   empty space before the video's metadata loads) and is then corrected by
   JS to the video's real width/height — this is what removes the "empty
   gap" that showed up when the poster image's own aspect ratio didn't
   match the video's. */
.product-360-video-slide {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-360-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 5;
}
.product-360-video-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    pointer-events: none;
    z-index: 6;
}

/* ---- Bigger video lightbox opened by the magnifier/zoom-trigger icon ---- */
.product-360-video-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}
.product-360-video-overlay.is-open {
    display: flex;
}
.product-360-video-overlay__inner {
    position: relative;
    width: 90vw;
    max-width: 1100px;
}
.product-360-video-overlay__video {
    width: 100%;
    max-height: 85vh;
    display: block;
    background: #000;
}
.product-360-video-overlay__close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
