.viewer-3d-container {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.viewer-3d-container.active {
    display: flex;
}

.wp3d-error {
    padding: 20px;
    border: 2px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.wp3d-progress-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    max-width: 80%;
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.wp3d-progress-bar-track {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.wp3d-progress-bar-fill {
    height: 100%;
    background: rgb(211, 33, 27);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
    animation: progress-pulse 2s infinite;
}

.wp3d-progress-text {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.viewer-360-toggle {
    display: flex;
    justify-content: center;
}

.toggle-360-btn {
    padding: 15px 30px;
    font-weight: bold;
    background: rgb(211, 33, 27);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    font-size: 14px;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
}

.toggle-360-btn:hover {
    background: #D3211B;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
    color: #FFFFFF;
}

.toggle-360-btn.btn-secondary-fill-medium:hover {
    background: #000 !important;
}

@keyframes progress-pulse {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

model-viewer[loaded] .wp3d-progress-bar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .wp3d-progress-bar {
        width: 280px;
        padding: 20px;
    }
}

.viewer-3d-wrapper {
    display: flex;
    flex-direction: column;
}