/**
 * IG Óptica - Frontend Styles
 */

.ig-vto-wrapper,
.ig-pd-wrapper,
.ig-3d-wrapper {
    margin: 20px 0;
    text-align: center;
}

.ig-vto-container,
.ig-pd-container,
.ig-3d-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    min-width: 300px;
    min-height: 300px;
    width: 100%;
    height: 400px;
}

.ig-vto-start-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s ease;
}

.ig-vto-start-btn:hover {
    background: #005a87;
}

.ig-vto-start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .ig-vto-container,
    .ig-pd-container,
    .ig-3d-container {
        width: 100% !important;
        max-width: 100%;
    }
    
    .ig-vto-start-btn {
        width: 90%;
        margin: 10px 5%;
    }
}

/* Loading states */
.ig-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
}

.ig-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.ig-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Success states */
.ig-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Custom styles for FittingBox integration */
#msrtWidgetIframeContainer {
    border-radius: 8px !important;
}

/* VTO specific styles */
.ig-vto-container iframe {
    border: none;
    border-radius: 8px;
}

/* PD specific styles */
.ig-pd-container iframe {
    border: none;
    border-radius: 8px;
}

/* 3D placeholder styles */
.ig-3d-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ig-3d-container h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.ig-3d-container p {
    margin: 5px 0;
}

.ig-3d-container small {
    color: #999;
}



