/* Custom Item Section */
.ecp-custom-item-section {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.ecp-custom-item-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.ecp-custom-item-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ecp-custom-item-form input{
    width: auto !important;
}

.ecp-custom-item-form #ecp-custom-item-name {
    width: 75%;
}

.ecp-custom-item-form #ecp-custom-item-quantity {
    width: 5%;
}

.ecp-custom-item-form #ecp-add-custom-item {
    width: 25%;
}

.ecp-custom-item-name {
    flex: 2;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ecp-custom-item-quantity {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

#ecp-add-custom-item {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

#ecp-add-custom-item:hover {
    background: #45a049;
}

.ecp-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Items Grid */
.ecp-items-grid {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.ecp-items-grid label small {
    display: none;
}

.ecp-item-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.ecp-item-option:hover {
    border-color: #4CAF50;
    background: #f5f5f5;
}

.ecp-item-option input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ecp-item-option strong {
    flex: 1;
    font-size: 14px;
}

.ecp-item-price {
    color: #4CAF50;
    font-weight: bold;
    margin: 0 10px;
    font-size: 14px;
}

.ecp-item-option small {
    color: #666;
    font-size: 12px;
    max-width: 200px;
}

/* Remove button styling */
.ecp-remove-item {
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.ecp-remove-item:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .ecp-custom-item-name,
    .ecp-custom-item-quantity,
    #ecp-add-custom-item {
        width: 100%;
    }
    
    .ecp-item-option {
        flex-wrap: wrap;
    }
    
    .ecp-item-option small {
        width: 100%;
        margin-left: 30px;
        margin-top: 5px;
    }

    .ecp-custom-item-form #ecp-custom-item-name {
        width: 70% !important;
    }
    
    .ecp-custom-item-form #ecp-custom-item-quantity {
        width: 30% !important;
    }
    
    .ecp-custom-item-form #ecp-add-custom-item {
        width: 100% !important;
    }



    .ecp-modern-header, .ecp-modern-body{
        padding: 20px !important;
    }

    .ecp-modern-body{
        padding-top: 0 !important;
    }
}







/* Modal Styles */
.ecp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    overflow-y: auto;
}

.ecp-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ecpModalSlideIn 0.3s ease;
}

@keyframes ecpModalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ecp-modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ecp-modal-header h2 {
    margin: 0;
    font-size: 22px;
}

.ecp-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background 0.3s;
}

.ecp-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ecp-modal-body {
    padding: 30px;
    text-align: center;
}

.ecp-success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.ecp-modal-body p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.ecp-pdf-preview {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.ecp-pdf-preview iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.ecp-download-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.ecp-btn-primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.ecp-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.ecp-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.ecp-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.ecp-email-note {
    font-size: 14px;
    color: #888;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Loading Overlay */
.ecp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecp-loading-content {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ecp-loading-content h3 {
    margin: 20px 0 10px;
    color: #333;
}

.ecp-loading-content p {
    color: #666;
    margin: 0;
}

.ecp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .ecp-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .ecp-pdf-preview iframe {
        height: 300px;
    }
    
    .ecp-download-options {
        flex-direction: column;
    }
    
    .ecp-btn-primary,
    .ecp-btn-secondary {
        width: 100%;
    }
    
    .ecp-modal-header h2 {
        font-size: 18px;
    }
}









.ecp-template-1-wrapper .ecp-submit-btn{
    color: #fff;
    font-weight: 600;
}