.catalog-product-view.custome {max-width: 100%;margin: 0 auto;padding: 20px;}
.catalog-product-view.custome h2 {color: #333;font-size: 24px;margin-bottom: 20px;font-weight: 600;display: inline-block;margin-right: 25px;}
.catalog-product-view.custome .attribute {display: flex;gap: 30px;margin-bottom: 20px;flex-wrap: wrap;}
.catalog-product-view.custome .attribute .name {flex: 1;min-width: 200px;}
.catalog-product-view.custome .attribute .name label {display: block;margin-bottom: 8px;font-weight: 600;color: #333;}
.catalog-product-view.custome .attribute .name div {background-color: #f8f9fa;border: 1px solid #e9ecef;border-radius: 4px;color: #495057;}
.catalog-product-view.custome .info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #000000;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    margin-left: 5px;
    cursor: help;
    float: right;
}

.catalog-product-view.custome .cutoff {margin: 30px 0;padding: 20px;background-color: #f8f9fa;border-radius: 8px;}
.catalog-product-view.custome .cutoff p {margin: 0 0 15px 0;font-weight: 600;color: #333;}
.catalog-product-view.custome .radio-group {display: flex;gap: 20px;}
.catalog-product-view.custome .radio-group label {display: flex;align-items: center;cursor: pointer;font-weight: normal;}
.catalog-product-view.custome .radio-group input[type="radio"] {display: none;}
.catalog-product-view.custome .custom-radio {width: 18px;height: 18px;border: 2px solid #ddd;border-radius: 50%;
    margin-right: 8px;position: relative;transition: all 0.3s ease;
}
.catalog-product-view.custome .radio-group input[type="radio"]:checked + .custom-radio {border-color: #007bff;background-color: #007bff;}
.catalog-product-view.custome .radio-group input[type="radio"]:checked + .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}
.catalog-product-view.custome .custom-cut-sheet {border:1px solid #e3e3e3; padding:12px; margin-bottom:12px; border-radius:6px;}
.catalog-product-view.custome .custom-cut-section {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 10px 0; 
    margin-bottom: 8px;
    background-color: #ffffff;
    position: relative;
    border-bottom:1px dashed #ddd;
}
.catalog-product-view.custome .custom-cut-sheet .delete-cut{margin-left: 10px;}
.catalog-product-view.custome .custom-cut-section:last-child{border-bottom:0;}
.catalog-product-view.custome .custom-cut-section h4 {margin: 0 0 20px 0;color: #333;font-size: 18px;font-weight: 600;}
.catalog-product-view.custome .remove-section {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}
.catalog-product-view.custome .remove-section:hover {background-color: #c82333;}
.catalog-product-view.custome .custom-inputs {display: grid;grid-template-columns: 1fr 1fr auto;gap: 20px;align-items: start;}
.catalog-product-view.custome .field {display: flex;flex-direction: column;margin-bottom:6px;}
.catalog-product-view.custome .field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.catalog-product-view.custome .field input[type="text"],
.catalog-product-view.custome .field input[type="number"] {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.catalog-product-view.custome .field input[type="text"]:focus,
.catalog-product-view.custome .field input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.catalog-product-view.custome .note {font-size: 12px;color: #666;margin-top: 5px;font-style: italic;}
.catalog-product-view.custome .error-message {color: #c62828;font-size: 12px;margin-top: 5px;font-weight: 500;}
.catalog-product-view.custome .quantity-wrapper {display: flex;align-items: flex-start;gap: 10px;}
.catalog-product-view.custome .quantity-box {display: flex;flex-direction: column;}
.catalog-product-view.custome .quantity-box label {margin-bottom: 8px;font-weight: 600;color: #333;}
.catalog-product-view.custome .qty-count {
    width: 70px;
    padding: 10px 8px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    text-align: center;
}
.catalog-product-view.custome .qty-plus {
    background-color: #28a745;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-top: 28px;
    transition: all 0.3s ease;
    padding:0;
}
.catalog-product-view.custome .cuts-table{width:100%; border-collapse:collapse;}
.catalog-product-view.custome .cuts-table th, .catalog-product-view.custome .cuts-table td{border:1px solid #ddd; padding:8px; text-align:center;}
.catalog-product-view.custome .custom-cut-choice{margin-bottom:15px;width: 100%;}
.catalog-product-view.custome .custom-cut-choice label,.catalog-product-view.custome .cut-mode label{margin-right:20px;}
.catalog-product-view.custome .qty-plus:hover:not(:disabled) {background-color: #218838;transform: translateY(-1px);}
.catalog-product-view.custome .qty-plus:disabled {background-color: #6c757d;cursor: not-allowed;}
.catalog-product-view.custome .cut-mode{margin:10px 0 20px;}
.catalog-product-view.custome .add-cut-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    margin-top:10px;
}

.catalog-product-view.custome .add-cut-btn:hover {background: linear-gradient(135deg, #0056b3, #004085);transform: translateY(-2px);box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);}
.catalog-product-view.custome .add-cut-btn:active {transform: translateY(0);box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);}
.catalog-product-view.custome #table-section {
    display:none;
    margin-top:20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.catalog-product-view.custome #table-section h2 {color: #333;font-size: 20px;margin-bottom: 20px;padding-bottom: 10px;border-bottom: 2px solid #007bff;}
.catalog-product-view.custome #dynamic-table-container table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.catalog-product-view.custome #dynamic-table-container table thead {background: linear-gradient(135deg, #007bff, #0056b3);color: white;}
.catalog-product-view.custome #dynamic-table-container table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.catalog-product-view.custome #dynamic-table-container table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}
.catalog-product-view.custome #dynamic-table-container table tbody tr:hover {background-color: #f8f9fa;}
.catalog-product-view.custome #dynamic-table-container table tbody tr:last-child td {border-bottom: none;}
.catalog-product-view.custome .confirm {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.catalog-product-view.custome .confirm:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.catalog-product-view.custome .cancel {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.catalog-product-view.custome .cancel:hover {
    background: linear-gradient(135deg, #545b62, #383d41);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalog-product-view.custome .attribute {
        flex-direction: column;
        gap: 15px;
    }
    
    .catalog-product-view.custome .custom-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .catalog-product-view.custome .quantity-wrapper {
        justify-content: center;
    }
    
    .catalog-product-view.custome .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .catalog-product-view.custome #dynamic-table-container {
        overflow-x: auto;
    }
    
    .catalog-product-view.custome #dynamic-table-container table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .catalog-product-view.custome {
        padding: 15px;
    }
    
    .catalog-product-view.custome .custom-cut-section {
        padding: 15px;
    }
    
    .catalog-product-view.custome .add-cut-btn,
    .catalog-product-view.custome .confirm,
    .catalog-product-view.custome .cancel {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Success Message Styles */
.catalog-product-view.custome .success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #155724;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    animation: slideIn 0.5s ease-out;
}

.catalog-product-view.custome .success-message h4 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 18px;
    font-weight: 600;
}

.catalog-product-view.custome .success-message p {
    margin: 8px 0;
    font-size: 14px;
}

/* Pricing Info Styles */
.catalog-product-view.custome .pricing-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.catalog-product-view.custome .pricing-info h4 {
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.catalog-product-view.custome .pricing-info p {
    margin: 8px 0;
    font-size: 14px;
}

.catalog-product-view.custome .pricing-info .total-price {
    font-size: 18px;
    color: #28a745;
    font-weight: bold;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

/* Animation for success message */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.catalog-product-view.custome .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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