.fpd-printify-preview-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #f9f9f9;
}

.fpd-printify-preview-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.fpd-preview-image-container {
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 4px;
}

#fpd-preview-image {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fpd-no-preview {
    color: #999;
    font-style: italic;
    margin: 0;
}

.fpd-design-info {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.fpd-design-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.fpd-design-elements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fpd-design-element {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpd-design-element:last-child {
    border-bottom: none;
}

.fpd-element-type {
    font-weight: 600;
    color: #0073aa;
    text-transform: capitalize;
}

.fpd-element-details {
    color: #666;
    font-size: 14px;
}

.fpd-generate-preview-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.fpd-generate-preview-btn:hover {
    background: #005a87;
}

.fpd-generate-preview-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fpd-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: fpd-spin 1s linear infinite;
}

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

/* Cart and checkout styles */
.fpd-custom-design-notice {
    background: #e7f5fe;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #0073aa;
    font-size: 14px;
}

.fpd-design-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    margin-right: 10px;
}

.cart-item-fpd-design {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.cart-item-fpd-design .fpd-design-label {
    font-weight: 600;
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .fpd-printify-preview-container {
        margin: 15px 0;
        padding: 15px;
    }
    
    .fpd-preview-image-container {
        min-height: 150px;
    }
    
    #fpd-preview-image {
        max-height: 200px;
    }
    
    .fpd-design-element {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .fpd-design-thumbnail {
        width: 40px;
        height: 40px;
    }
}

/* Integration with popular themes */
.woocommerce .fpd-printify-preview-container {
    clear: both;
}

.woocommerce-page .fpd-printify-preview-container {
    clear: both;
}

/* Accessibility improvements */
.fpd-generate-preview-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.fpd-design-element:focus-within {
    background: #f0f8ff;
}

/* Print styles */
@media print {
    .fpd-printify-preview-container {
        border: none;
        background: transparent;
        page-break-inside: avoid;
    }
    
    .fpd-generate-preview-btn {
        display: none;
    }
} 