.spin360-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(30, 30, 30, .92);
    display: none;
    -webkit-user-select: none;
    user-select: none;
}

.spin360-overlay.is-open {
    display: block;
}

body.spin360-open {
    overflow: hidden;
}

.spin360-thumbs {
    position: absolute;
    top: 56px;
    right: 0;
    bottom: 67px;
    width: 120px;
    padding: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0, 0, 0, .35);
    display: none;
}

.spin360-thumb {
    display: block;
    width: 100%;
    height: 78px;
    object-fit: contain;
    margin-bottom: 6px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    opacity: .75;
}

.spin360-thumb:hover {
    opacity: 1;
}

.spin360-thumb.is-active {
    border-color: #fff;
    opacity: 1;
}

.spin360-overlay.has-thumbs .spin360-stage {
    right: 120px;
}

.spin360-icon360 {
    width: 26px;
    height: 26px;
    vertical-align: middle;
}

.spin360-btn.is-on {
    background: rgba(255, 255, 255, .3);
}

.spin360-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 2px;
}

.spin360-counter {
    font-size: 12px;
    opacity: .85;
}

.spin360-stage {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 67px;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.spin360-stage.is-dragging {
    cursor: grabbing;
}

.spin360-stage.is-zoomed {
    cursor: move;
}

.spin360-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    visibility: hidden;
    transform-origin: center center;
    pointer-events: none;
}

.spin360-frame.is-active {
    visibility: visible;
    pointer-events: auto;
}

.spin360-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 56px;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    background: rgba(0, 0, 0, .35);
}

.spin360-title {
    flex: 1 1 auto;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.spin360-btn {
    flex: 0 0 auto;
    width: 41px;
    height: 41px;
    margin-left: 4px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 16px;
    line-height: 41px;
    text-align: center;
    cursor: pointer;
}

.spin360-btn:hover {
    background: rgba(255, 255, 255, .26);
}

.spin360-btn[disabled] {
    opacity: .35;
    cursor: default;
}

.spin360-btn.is-wide {
    width: auto;
    padding: 0 12px;
}

.spin360-btn[data-tip] {
    position: relative;
}

.spin360-btn[data-tip]:hover::after,
.spin360-btn[data-tip]:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}

.spin360-btn[disabled][data-tip]:hover::after {
    display: none;
}

.spin360-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 67px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d8d8d8;
    font-size: 12px;
    background: rgba(0, 0, 0, .35);
    text-align: center;
    padding: 0 12px;
}

.spin360-hint {
    font-size: 15px;
    opacity: .9;
}

.spin360-zoomlabel {
    font-size: 11px;
    opacity: .7;
}

.spin360-progress {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-top: -10px;
    text-align: center;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 767px) {
    .spin360-stage {
        top: 52px;
        bottom: 62px;
    }

    .spin360-thumbs {
        top: 52px;
        bottom: 62px;
        width: 78px;
    }

    .spin360-overlay.has-thumbs .spin360-stage {
        right: 78px;
    }

    .spin360-thumb {
        height: 54px;
    }

    .spin360-bar {
        height: 52px;
    }

    .spin360-foot {
        height: 62px;
    }

    .spin360-btn {
        width: 38px;
        height: 38px;
        line-height: 38px;
    }

    .spin360-icon360 {
        width: 24px;
        height: 24px;
    }

    .spin360-hint {
        font-size: 13px;
    }

    .spin360-title {
        font-size: 12px;
    }
}
