.popup {
  display: none; /* Hidden by default */
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: top 0.5s ease, transform 0.5s ease;
}

.popup.open {
  visibility: visible;
  -webkit-animation: fadeIn 0.5s;
  animation: fadeIn 0.5s
}

.popup.closing {
  -webkit-animation: fadeOut 0.5s;
  animation: fadeOut 0.5s;
  animation-fill-mode: forwards; /* Keep the element in the state of the last keyframe when the animation completes */
}

/* Use on request rider */
.popup-content-request-rider {
  position: absolute;
  width: 290px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
  overflow-y: auto; /* Enables vertical scrolling if needed */
  max-height: 90%; /* Adjust as necessary */
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
  overflow-y: auto; /* Enables vertical scrolling if needed */
  max-height: 90%; /* Adjust as necessary */
}

.popup-image {
  width: 100px; /* Adjust size as needed */
  height: auto;
  margin-bottom: 20px;
}

.popup-message {
  margin: 20px 0;
}

.popup-close-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #FF8900;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-close-btn:hover {
  background-color: #e87e02;
}

.popup-cancel-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #a81414;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-cancel-btn:hover {
  background-color: #861010;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px; /* Adjust the gap between buttons as needed */
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

@-webkit-keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.order-details-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.order-details-table, .order-details-table th, .order-details-table td {
  border: 1px solid #ddd;
}

.order-details-table th, .order-details-table td {
  padding: 8px 12px;
  text-align: left;
}

.order-details-table thead {
  background-color: #f9fafb;
  color: #6b7280;
}

.order-details-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.hidden-row {
  display: none;
}
