.main-body {
  background-color: #f4f4f4;
  color: #333;
  margin-bottom: 20px;
  padding: 5px;
}

/* Profile Section */
.profile {
    flex: 1 1 250px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.user-name {
    font-size: 1.5em;
    margin-top: 10px;
}

.user-bio {
    font-size: 1em;
    color: #555;
}

/* Order Details Section */
.order-details {
    flex: 1 1 300px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    position: relative;
    padding-right: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-details table {
    width: 100%;
    border-collapse: collapse;
}

.order-details table td {
    padding: 10px;
    border: 1px solid #ccc;
}

/*New Code start*/

.order-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
}

.order-status {
    height: 25px;
    padding: 4px 12px;  /* Reduced padding for a smaller button */
    color: #fff;
    border-radius: 12px;  /* Slightly less rounded for a small button feel */
    font-size: 0.8em;  /* Smaller font size */
    display: inline-block; /* Keeps it inline with text or other elements */
    text-align: center;
}

.order-status.pending {
    background-color: #ffc107; /* Yellow - Pending */
}

.order-status.shipping {
    background-color: #17a2b8; /* Teal - Shipping */
}

.order-status.processing {
    background-color: #fd7e14; /* Orange - Processing */
}

.order-status.delivered {
    background-color: #28a745; /* Green - Delivered */
}

.order-status.cancelled {
    background-color: #dc3545; /* Red - Cancelled */
}

@media (max-width: 768px) {
    .order-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .order-info {
        grid-template-columns: 1fr;
    }
}

.payment-type b {
    position: absolute;
    top:25px;
    right: 10px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    border: none;
    color: #fff;
    border-radius: 12px;  /* Slightly less rounded for a small button feel */
    font-size: 0.8em;  /* Smaller font size */
    display: inline-block; /* Keeps it inline with text or other elements */
    text-align: center;
    background-color: #28a745; /* Green - Delivered */
}

.amount {
    height: 25px;
    padding: 4px 12px;  /* Reduced padding for a smaller button */
    color: #fff;
    border-radius: 12px;  /* Slightly less rounded for a small button feel */
    font-size: 0.8em;  /* Smaller font size */
    display: inline-block; /* Keeps it inline with text or other elements */
    text-align: center;
    background-color: #28a745; /* Green - Delivered */
}

.payment-btn {
    position: absolute;
    top: 35px;
    right: 10px;
    transform: translateY(-50%);
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.payment-btn .icon {
    margin-right: 8px;
    font-size: 18px;
}

.payment-btn:hover {
    background-color: #45a049;
}

/*New code end*/

/* Timeline Section */
.timeline {
    flex: 1 1 300px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline ul {
    list-style-type: none;
    padding: 0;
}

.timeline li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.timeline-date {
    font-weight: bold;
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .profile, .order-details, .timeline {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-img {
        width: 80px;
        height: 80px;
    }

    .user-name {
        font-size: 1.2em;
    }

    .order-details table td, .timeline li {
        font-size: 0.9em;
    }
}


/* Popup Box Styles */
.popup-box {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  border: solid 2px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.close-btn {
  margin-bottom: 95px;
  font-size: 30px;
  cursor: pointer;
}

/* Optional: Animations for the popup (Fade In and Out) */
.popup-box.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Popup Style */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 300px;
}

.popup-content button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.pay-now-btn {
    background-color: #4CAF50;
    color: white;
}

.cod-btn {
    background-color: #FFC107;
    color: white;
}

.close-btn {
    background-color: #f44336;
    color: white;
}

/* Display popup */
.show-popup {
    display: flex;
}
