/* OK-Boats: product 360 viewer v3 */
.okb-360-viewer {
    width: 100%;
}

.okb-360-viewer__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    outline: none;
}

.okb-360-viewer__stage.is-dragging {
    cursor: grabbing;
}

.okb-360-viewer__stage:focus-visible {
    box-shadow: 0 0 0 3px var(--light-color);
}

.okb-360-viewer__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.okb-360-viewer__status,
.okb-360-viewer__hint {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.okb-360-viewer__status {
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    color: #1b1b1b;
    font-size: 12px;
    line-height: 1.2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.okb-360-viewer__hint {
    left: 50%;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 8px 14px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.2s ease-in-out;
}

.okb-360-viewer.is-used .okb-360-viewer__hint {
    opacity: 0;
}

.okb-360-viewer.is-error .okb-360-viewer__status {
    color: #b42318;
}

.okb-360-viewer__frames {
    display: none !important;
}

@media (max-width: 767px) {
    .okb-360-viewer__stage {
        min-height: 210px;
    }

    .okb-360-viewer__hint {
        bottom: 10px;
        font-size: 12px;
        white-space: normal;
    }

    .okb-360-viewer__status {
        top: 10px;
        left: 10px;
    }
}
