/* Modern, responsive customization modal */
#wcpc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wcpc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}
.wcpc-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    margin: 2% auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wcpc-modal-header {
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wcpc-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}
.wcpc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}
.wcpc-modal-close:hover { color: #111827; }
.wcpc-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 20px;
    gap: 24px;
    background: #f9fafb;
}
.wcpc-left-panel {
    width: 500px;
    flex-shrink: 0;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    padding: 20px;
    padding-right:20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wcpc-left-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
    color: #1f2937;
}
.wcpc-right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: white;
    border-radius: 16px;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
#wcpc-canvas {
    max-width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
    background: #fff;
    display: block;
}
.wcpc-text-control {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: box-shadow 0.2s;
}
.wcpc-text-control label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #374151;
}
.wcpc-text-value {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ad781c;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.2s;
}
.wcpc-text-value:focus {
    outline: none;
    border-color: #ad781c;
    background: #f1eade;
}
.wcpc-text-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}
.wcpc-text-styles input,
.wcpc-text-styles select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
}
.wcpc-text-styles label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-weight: normal;
}
.wcpc-modal-footer {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.wcpc-modal-footer .button {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.wcpc-modal-footer .button-primary {
    background: #3b82f6;
    color: white;
}
.wcpc-modal-footer .button-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}
.wcpc-modal-footer .button:not(.button-primary) {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}
.wcpc-modal-footer .button:not(.button-primary):hover {
    background: #e5e7eb;
}
#wcpc-design-preview {
    margin-top: 15px;
    text-align: center;
}
#wcpc-preview-img {
    max-width: 120px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .wcpc-modal-body {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    .wcpc-left-panel {
        width: auto;
        max-height: 40%;
        padding: 16px;
    }
    .wcpc-right-panel {
        padding: 12px;
        min-height: 500px;
    }
    
    .wcpc-modal-header h2 {
        font-size: 1.25rem;
    }
     #wcpc-canvas {
        width: 100% !important;
        height: auto !important;
    }
    
    .canvas-wrapper {
        height:auto !important;
    }
    .wcpc-modal-container {
        width: 100%;
        height: 100%;
    }
    .wcpc-right-panel{padding:12px;}
    .wcpc-modal-body{padding:12px;}
     .canvas-container{
         width:700px !important;
         height:700px !important;
         }
     .canvas {
         width:700px !important; 
         height:700px!important;
     }
     .upper-canvas{
         width:700px !important; 
         height:700px!important;
     }
    
    
    
    
}

 
@media (max-width: 480px) {
    .canvas-wrapper {
        height:auto !important;
    }
    .wcpc-modal-container {
        width: 100%;
        height: 100%;
    }
    .wcpc-right-panel{padding:0px;}
    .wcpc-modal-body{padding:0px;}
     .canvas-container{
         width:390px !important;
         height:390px !important;
         }
     .canvas {
         width:390px !important; 
         height:390px!important;
     }
     .upper-canvas{
         width:390px !important; 
         height:390px!important;
     }

    .wcpc-modal-footer .button {
        padding: 0px 0px;
        font-size: 0.85rem;
    }
}
 