.stl3d-box {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #fafafa;
}

.stl3d-title {
    font-weight: 600;
    margin-bottom: .5rem;
}

.stl3d-drop {
    display: block;
    margin: 0;
    padding: 1.25rem 1rem;
    border: 2px dashed #adb5bd;
    border-radius: .5rem;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
}

.stl3d-drop:hover,
.stl3d-drop.is-over {
    border-color: #0d6efd;
    background: #f0f6ff;
}

.stl3d-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.stl3d-progress {
    height: 6px;
    margin-top: .75rem;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
}

.stl3d-progress-bar {
    height: 100%;
    width: 0;
    background: #0d6efd;
    transition: width .2s;
}

.stl3d-error {
    margin-top: .75rem;
    color: #b02a37;
}

.stl3d-info {
    margin-top: .75rem;
    font-size: .9rem;
    word-break: break-word;
}

.stl3d-price {
    margin-top: .5rem;
    font-size: 1.1rem;
}

.stl3d-material {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .75rem 0 0;
}

.stl3d-material span {
    font-weight: 600;
    white-space: nowrap;
}

.stl3d-preview {
    position: relative;
    height: 280px;
    margin-top: .75rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: linear-gradient(#ffffff, #eef1f4);
    overflow: hidden;
}

.stl3d-preview[hidden] {
    display: none;
}

.stl3d-preview canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.stl3d-preview canvas:active {
    cursor: grabbing;
}

.stl3d-preview-hint {
    position: absolute;
    left: .5rem;
    bottom: .4rem;
    font-size: .75rem;
    color: #6c757d;
    pointer-events: none;
}
