
    /* General Container and Layout */
    .checkout-page-content {
        padding: 40px 20px;
        background-color: #f8f8f8;
    }

    .checkout-container {
        display: flex;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        align-items: flex-start;
        /*margin-top: 100px; */
    }

    /* Section Titles */
    .section-title {
        font-size: 2em; /* Larger title for main page heading */
        color: #2c3e50;
        margin-bottom: 30px;
        font-weight: 600;
        text-align: center;
    }

    /* Left Section: Checkout Form Steps */
    .checkout-form-section {
        flex: 2.5; /* Takes more space */
        background-color: #ffffff;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        min-width: 60%;
        /* No fixed max-height/overflow-y here as forms are typically fully visible */
        box-sizing: border-box;
        margin-top: 100px;
    }

    .checkout-step {
        margin-bottom: 40px; /* Space between steps */
        padding-bottom: 20px;
        border-bottom: 1px solid #e0e0e0; /* Separator for steps */
    }

    .checkout-step:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .step-title {
        font-size: 1.5em;
        color: #34495e; /* Slightly different shade for step titles */
        margin-bottom: 25px;
        font-weight: 600;
        text-align: left; /* Align step titles to left */
    }

    .checkout-form .form-group {
        margin-bottom: 15px;
    }

    .checkout-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #555;
        font-size: 0.95em;
    }

    .checkout-form input[type="text"],
    .checkout-form input[type="email"],
    .checkout-form select {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 1em;
        box-sizing: border-box; /* Include padding in width */
    }

    .checkout-form input[type="text"]:focus,
    .checkout-form input[type="email"]:focus,
    .checkout-form select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    }

    .form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 15px;
    }

    .form-row .form-group {
        flex: 1; /* Make form groups in a row share space */
        margin-bottom: 0; /* Remove bottom margin if inside a row */
    }

    .checkbox-group {
        display: flex;
        align-items: center;
        margin-top: 20px;
    }

    .checkbox-group input[type="checkbox"] {
        width: auto; /* Auto width for checkboxes */
        margin-right: 10px;
        transform: scale(1.2); /* Slightly larger checkbox */
    }


    /* Right Section: Order Summary (Sticky) */
    .checkout-summary-section {
        flex: 1;
        background-color: #ffffff;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        min-width: 350px;
        position: sticky; /* Keep summary visible on scroll */
        top: 20px; /* Distance from top when sticky */
        max-height: calc(100vh - 40px); /* Limit height to viewport for sticky */
        overflow-y: auto; /* Allow scrolling within summary if too many items */
        padding-right: 15px; /* Account for scrollbar */
        box-sizing: border-box;
        margin-top: 100px;
    }

    .checkout-summary-section .section-title {
        font-size: 1.8em; /* Slightly smaller title than main page title */
        text-align: left;
    }

    .summary-details {
        margin-bottom: 30px;
    }

    /* Individual Summary Item Styling */
    .summary-item {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px dashed #f0f0f0; /* Lighter dashed border for items */
    }

    .summary-item:last-of-type { /* Target last specific summary item before subtotal */
        border-bottom: none;
        padding-bottom: 0;
    }

    .summary-item img {
        width: 60px; /* Smaller image in summary */
        height: 60px;
        object-fit: cover;
        border-radius: 5px;
        border: 1px solid #eee;
    }

    .summary-item-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .summary-item-name {
        font-weight: 500;
        color: #333;
        font-size: 0.95em;
    }

    .summary-item-qty {
        font-size: 0.8em;
        color: #777;
    }

    .summary-item-price {
        font-weight: bold;
        color: #e44d26;
        font-size: 1em;
        min-width: 60px;
        text-align: right;
    }


    /* Summary Lines (Subtotal, Shipping, Total) */
    .summary-line {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 1.05em;
        color: #555;
     padding-right:20px;

    }

    .summary-line span:first-child {
        font-weight: 500;
    }

    .summary-line.promo-code-section {
        border-top: 1px dashed #e0e0e0;
        padding-top: 15px;
        margin-top: 20px;
        display: flex;
        gap: 10px;
    }

    .promo-input {
        flex-grow: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 0.95em;
    }

    .apply-promo-btn {
        background-color: #6c757d;
        color: white;
        padding: 10px 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        font-size: 0.95em;
    }

    .apply-promo-btn:hover {
        background-color: #5a6268;
    }


    .summary-line.total-line {
        font-size: 1.6em;
        font-weight: bold;
        margin-top: 25px;
        padding-top: 20px;
        border-top: 2px solid #007bff;
        color: #2c3e50;
    }

    /* Buttons */
    .cta-button {
        /*background-color: #007bff;*/
        color: white;
        padding: 15px 25px;
        border: none;
        border-radius: 8px;
        font-size: 1.2em;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
        width: 90%;
        margin-top: 25px;
        font-weight: 600;
    }

    .cta-button:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }
@media screen and (max-width: 768px) {
    .checkout-form input[type="text"],
    .checkout-form input[type="email"],
    .checkout-form select {
        font-size: 0.95em;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .checkout-form input[type="text"],
    .checkout-form input[type="email"],
    .checkout-form select {
        font-size: 0.9em;
        padding: 8px;
    }
}

    /* Responsive Adjustments */
    @media (max-width: 992px) {
        .checkout-container {
            flex-direction: column;
            gap: 30px;
        }

        .checkout-form-section,
        .checkout-summary-section {
            width: 100%;
            min-width: unset;
            position: static; /* Disable sticky on smaller screens */
            max-height: none; /* Allow full content height */
            overflow-y: visible;
            padding-right: 0; /* Remove scrollbar padding */
        }
    }

    @media (max-width: 600px) {
        .form-row {
            flex-direction: column; /* Stack form inputs on small screens */
            gap: 0; /* Remove gap when stacked */
        }
        .form-row .form-group {
            margin-bottom: 15px; /* Re-add margin between stacked groups */
        }
        .summary-item {
            flex-wrap: wrap; /* Allow item info to wrap if needed */
            text-align: center;
            justify-content: center;
        }
        .summary-item-info {
            align-items: center;
        }
        .summary-item-price {
            width: 100%;
            text-align: center;
            margin-top: 5px;
        }
    }
    
    .main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: #000 !important;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease !important;
    /*padding: 15px 0 !important;*/
    border-bottom: 1px solid transparent !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.payment-method {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.payment-method.active {
    border-color: #0066cc;
    background-color: #f0f7ff;
}

.payment-details {
    margin-top: 20px;
}

.verification-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
}

.verification-message.success {
    background-color: #d4edda;
    color: #155724;
}

.verification-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.text-button {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.text-button:hover {
    text-decoration: underline;
}

.verification-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.verified-email-display {
    background-color: #f0f7ff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0066cc;
}

.email-verification-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* address */

.checkout-form-section {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.address-options {
    margin-bottom: 30px;
}

.address-option {
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.address-option.selected {
    border: 2px solid #ffffff;
    background-color: #f9f9f9;
}

.address-radio {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.address-details {
    flex: 1;
    line-height: 1.5;
}

.deliver-here-section {
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.deliver-here-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.add-new-address-btn {
    margin: 20px 0;
}

#showAddressFormBtn {
    background-color: transparent;
    color: #4CAF50;
    padding: 10px 15px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#showAddressFormBtn:hover {
    background-color: #f0fff0;
}

.add-new-address h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.checkout-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.save-address-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.save-address-btn:hover {
    background-color: #45a049;
}

.cancel-btn {
    background-color: #f1f1f1;
    color: #333;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.cancel-btn:hover {
    background-color: #e1e1e1;
}


.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.edit-address-btn {
    background: none;
    border: none;
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 5px;
}

.edit-address-btn:hover {
    color: #45a049;
}


.payment-methods {
    margin: 20px 0;
}

.payment-method {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #3399cc;
}

.payment-method.active {
    border-color: #3399cc;
    background-color: #f5f9fc;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
}

.payment-method label {
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}




/* Modal Overlay */
.email-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

/* Modal Content */
.email-modal-content {
  background-color: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-in-out;
  margin: auto;
}

/* Titles and Text */
.email-modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}

.email-modal-text {
  font-size: 0.95rem;
  text-align: center;
  color: #555;
}

/* Form Elements */
.email-form-group {
  margin-top: 1rem;
}

.email-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #222;
}

.email-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* Button */
.email-button {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.7rem;
  background-color: #007bff;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.email-button:hover {
  background-color: #0056b3;
}

/* Resend Actions */
.email-actions {
  margin-top: 1rem;
  text-align: center;
}

.email-link-button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 0.9rem;
  margin-right: 10px;
  padding: 0;
}

.email-message {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #d9534f;
  text-align: center;
  min-height: 20px;
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Tweaks */
@media (max-width: 480px) {
  .email-modal-content {
    padding: 1.5rem;
  }

  .email-modal-title {
    font-size: 1.3rem;
  }

  .email-button {
    font-size: 0.95rem;
  }
}

/* Modal Overlay */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1050;
}

/* Modal Content */
.payment-modal-content {
  background: #fff;
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeInScale 0.3s ease;
  margin: auto;
}

/* Modal Title */
.payment-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Close Button */
.payment-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}

/* Payment Options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 2px solid transparent;
}

.payment-option input[type="radio"] {
  margin-top: 2px;
}

.payment-option label {
  flex: 1;
  font-size: 1rem;
  color: #444;
  cursor: pointer;
}

.payment-option.active,
.payment-option:hover {
  border-color: #007bff;
  background: #eef5ff;
}

/* Confirm Button */
.payment-button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.payment-button:hover {
  background-color: #0056b3;
}

/* Message Display */
.payment-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #d9534f;
  text-align: center;
  min-height: 20px;
}

/* Animation */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Tweaks */
@media (max-width: 480px) {
  .payment-modal-content {
    padding: 1.5rem;
  }

  .payment-title {
    font-size: 1.3rem;
  }

  .payment-button {
    font-size: 0.95rem;
  }

  .payment-option label {
    font-size: 0.95rem;
  }
}

/* Coupon Section */
.coupon-section {
  margin-top: 1.5rem;
}

.coupon-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

/* Coupon Input Group */
.coupon-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Select Dropdown */
.coupon-select {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 200px;
}

/* Apply Button */
.apply-coupon-btn {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.apply-coupon-btn:hover {
  background-color: #0056b3;
}

/* Coupon Message */
.coupon-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #d9534f;
  min-height: 20px;
}

/* Responsive Tweaks */
@media (max-width: 576px) {
  .coupon-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .apply-coupon-btn {
    width: 100%;
  }

  .coupon-select {
    width: 100%;
  }
}