 :root {
            --primary: #2a5bd7;
            --secondary: #6c757d;
            --success: #28a745;
            --light-bg: #f8f9fa;
            --border: #e0e0e0;
        }
        
        body {
            background-color: #f5f7fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .cart-container {
            max-width: 1200px;
      
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .cart-header {
            background: var(--primary);
            color: white;
            padding: 20px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .cart-header h2 {
            margin: 0;
            font-weight: 600;
        }
        
        .item-count {
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .delivery-section {
            padding: 20px 30px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .pincode-input {
            display: flex;
            gap: 10px;
            flex: 1;
            max-width: 300px;
        }
        
        .pincode-input input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
        }
        
        .pincode-input button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 6px;
            font-weight: 500;
        }
        
        .cart-items {
            padding: 0;
        }
        
        .cart-item {
            display: flex;
            padding: 25px 30px;
            border-bottom: 1px solid var(--border);
            gap: 20px;
        }
        
        .item-image {
            width: 120px;
            height: 120px;
            background: var(--light-bg);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            font-size: 2rem;
        }
        
        .item-details {
            flex: 1;
        }
        
        .item-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 5px;
        }
        
        .item-variant {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
        
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 15px 0;
        }
        
        .qty-btn {
            width: 32px;
            height: 32px;
            border: 1px solid var(--border);
            background: white;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .qty-value {
            min-width: 40px;
            text-align: center;
            font-weight: 500;
        }
        
        .price-section {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .current-price {
            font-weight: 700;
            font-size: 1.2rem;
            color: #d63384;
        }
        
        .original-price {
            text-decoration: line-through;
            color: var(--secondary);
        }
        
        .discount {
            color: var(--success);
            font-weight: 500;
            background: rgba(40, 167, 69, 0.1);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        .coupon-applied {
            background: rgba(40, 167, 69, 0.05);
            border: 1px dashed rgba(40, 167, 69, 0.3);
            border-radius: 6px;
            padding: 10px 15px;
            margin-top: 10px;
            font-size: 0.9rem;
        }
        
        .coupon-applied i {
            color: var(--success);
            margin-right: 5px;
        }
        
        .item-actions {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .cart-summary {
            padding: 25px 30px;
            background: var(--light-bg);
        }
        
        .applied-coupon {
            background: white;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        }
        
        .coupon-code {
            background: var(--primary);
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .price-details {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        }
        
        .price-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
        }
        
        .price-row.total {
            border-top: 1px solid var(--border);
            margin-top: 10px;
            padding-top: 15px;
            font-weight: 700;
            font-size: 1.1rem;
        }
        
        .savings-banner {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            text-align: center;
            font-weight: 500;
        }
        
        .emi-option {
            background: white;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            text-align: center;
            font-weight: 500;
            border: 1px solid var(--border);
        }
        
        @media (max-width: 768px) {
            .cart-item {
                flex-direction: column;
            }
            
            .item-image {
                align-self: center;
            }
            
            .pincode-input {
                max-width: 100%;
            }
        }

          .invoice-box {
        max-width: 800px;
        margin: auto;
        padding: 30px;
        border: 1px solid #eee;
    }
    .invoice-box h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .invoice-box table {
        width: 100%;
        line-height: 1.6;
        border-collapse: collapse;
    }
    .invoice-box table td {
        padding: 5px;
        vertical-align: top;
    }
    .invoice-box table th {
        padding: 8px;
        border-bottom: 1px solid #ddd;
        text-align: left;
    }
    .invoice-box .section {
        margin-bottom: 20px;
    }
    .invoice-box .totals td {
        padding: 5px;
    }
    .divider {
        border-top: 1px dashed #000;
        margin: 20px 0;
    }
    .right {
        text-align: right;
    }

    

/* Receipt styling */
   #receipt-container {
    max-width: 750px;
    margin: auto;
    background: #fff;
    
   
    font-family: 'Arial', sans-serif;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .company-info strong {
    font-size: 20px;
    color: #2c3e50;
    
  }
  .company-info{
    text-align:right;
  }
  #CompanyNameCustomer{
        text-transform: uppercase;
  }
  #CompanyName{
        text-transform: uppercase;
  }

  .logo-upload {
    font-size: 20px;
    color: #835851;
    /* border: 1px dashed #ccc; */
    padding: 15px;
    text-align: center;
    /* width: 150px; */
    border-radius: 5px;
    /* white-space: normal; */
    font-weight: bold;
    display: flex;
    align-items: center;
  }

  h1 {
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
  }

  .receipt-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
  }

  #PrintReceiptTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
  }

  #PrintReceiptTable th, #PrintReceiptTable td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    font-size: 14px;
  }

  #PrintReceiptTable th {
    background: #f4f6f8;
  }

  .totals {
    text-align: right;
    font-size: 14px;
    margin-bottom: 20px;
  }

  .totals p {
    margin: 5px 0;
  }

  .totals strong {
    font-size: 16px;
  }

  .notes {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
  }

  .notes a {
    color: #3498db;
    text-decoration: none;
  }

  .copy {
  
  border: 1px solid #cccccc;
    padding: 15px
}

.copy-header {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
  color: #835851;
}

.dotted-separator {
  border-top: 2px dashed #999;
  margin-top: 20px;
  text-align: center;
  position: relative;
}

.dotted-separator span {
  position: relative;
  top: -12px;
  background: #fff;
  padding: 0 10px;
  color: #999;
  font-size: 12px;
}