/* --- 360 Produktvisare Huvudstil --- */
#v360-main-wrapper {
    background: #fff;
    position: relative;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.v360-viewer-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.v360-canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none; 
}

.v360-canvas:active {
    cursor: grabbing;
}

.v360-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.v360-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s;
    min-width: 40px;
    height: 32px;
}

.v360-btn:hover { background: #f0f0f0; }
.v360-btn.active { background: #333; color: #fff; border-color: #333; }

/* --- TUMNAGEL & SVG-BADGE --- */
.thumb-360-wrapper {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

/* Container som placerar SVG:n i mitten */
.thumb-360-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center; 
    box-sizing: border-box;
}

/* Styr utseendet på din SVG-ikon */
.thumb-360-badge-svg {
    width: 45px; /* Justera bredden här om den känns för stor/liten */
    height: auto;
    fill: #444; /* Mörkgrå färg på text och pil */
    /* Lägger till ett subtilt vitt glow så den syns även på mörka produktbilder */
    filter: drop-shadow(0px 1px 3px rgba(255, 255, 255, 0.9)); 
}

/* --- FANCYBOX SPECIFIK STYLING --- */
#fb-360-root {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fb-360-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#fb-360-root .v360-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 6px 10px;
    width: auto;
    z-index: 9999;
}

.fancybox-nav {
  width:15%!important;
}