/* CES Customizer Frontend Styles */

#ces-customizer-app {
    width: 100%;
    height: 100%;
}

.ces-loading {
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ces-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0071dc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.ces-loading p {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
}

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

.ces-customize-product-btn {
    margin: 25px 0;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    background: #0071dc;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 113, 220, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ces-customize-product-btn:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 220, 0.4);
}

.ces-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ces-modal-content {
    background-color: #f8f9fa;
    margin: 1vh auto;
    width: 98%;
    max-width: 1600px;
    height: 98vh;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ces-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    border: 1px solid #eee;
}

.ces-modal-close:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

#ces-customizer-container {
    flex: 1;
    overflow-y: auto;
    height: 100%;
}