/* WordPress Cake Builder Embed Styles */

.cake-builder-container {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.cake-builder-iframe {
    width: 100%;
    border: none;
    display: block;
    min-height: 600px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .cake-builder-container {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .cake-builder-iframe {
        min-height: 800px;
    }
}

@media (max-width: 480px) {
    .cake-builder-container {
        margin: 10px 0;
        border-radius: 6px;
    }
    
    .cake-builder-iframe {
        min-height: 900px;
    }
}

/* Loading state */
.cake-builder-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.cake-builder-loading::before {
    content: '🎂';
    font-size: 2rem;
    margin-right: 10px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* WordPress admin styles */
.wp-admin .cake-builder-container {
    max-width: 100%;
    margin: 10px 0;
}

/* Widget specific styles */
.widget .cake-builder-container {
    margin: 10px 0;
}

.widget .cake-builder-iframe {
    min-height: 500px;
}

/* Theme compatibility */
.cake-builder-container * {
    box-sizing: border-box;
}

/* Full width option */
.cake-builder-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Compact version */
.cake-builder-compact .cake-builder-iframe {
    min-height: 500px;
}