/* =========================================================
   TRACK ORDER
========================================================= */

.track_order_section {
  padding: 80px;
  margin-bottom: 5rem;
  background: #eaf0f8;
  border-radius: 16px;
}

.track_order_card {
  max-width: 750px;
  margin: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.track_order_card h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.track_order_subtext {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
  font-weight: 500;
}

/* =========================================================
   FORM
========================================================= */

.track_order_form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track_order_form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #504f4f;
  border-radius: 10px;
  font-size: 20px;
  letter-spacing: 1px;
}

.track_order_form input:focus {
  outline: none;
  border-color: #007bff;
}

.track_order_form button {
  height: 52px;
  border: none;
  border-radius: 10px;
  background: #007bff;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.track_order_form button:not(:disabled):hover {
  background: #0056b3;
}

.track_order_form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================================
   MESSAGE
========================================================= */

#trackMessage {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.track_error {
  color: #d93025;
}

.track_success {
  color: #188038;
}

.track_info {
  color: #555;
}

/* =========================================================
   RESULT
========================================================= */

.track_result {
  margin-top: 35px;
  display: none;
  transition: 0.3s ease;
}

.order_status_badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
}

.status_confirmed {
  background: #e6f4ea;
  color: #188038;
}

.status_processing {
  background: #fff4e5;
  color: #b26a00;
}

.status_failed {
  background: #fde7e9;
  color: #d93025;
}

/* =========================================================
   ORDER LIST
========================================================= */

.orders_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order_list_card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  transition: 0.25s ease;
  cursor: pointer;
}

.order_list_card:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.order_list_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.order_list_id {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  word-break: break-word;
}

.order_list_status {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.order_list_meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.order_list_meta_item {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px;
}

.order_list_label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 5px;
}

.order_list_value {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.orders_found_title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #111827;
}

.track_order_item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  margin-bottom: 18px;
}

.track_order_top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.track_order_top h3 {
  margin-bottom: 6px;
  font-size: 18px;
  color: #111827;
  word-break: break-word;
}

.track_order_top p {
  color: #6b7280;
  font-size: 14px;
}

.track_order_bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

.track_open_order_btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.track_open_order_btn:hover:not(:disabled) {
  background: #000000;
}

.track_open_order_btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================================
   ORDER INFO
========================================================= */

/* .order_info_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

.order_info_item {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
}

.order_info_label {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.order_info_value {
  font-size: 15px;
  font-weight: 600;
} */

/* =========================================================
   PRODUCTS
========================================================= */

/* .track_products {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.track_product_card {
  display: flex;
  gap: 16px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
}

.track_product_card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.track_product_info h4 {
  margin-bottom: 8px;
  line-height: 1.5;
}

.track_product_info p {
  color: #666;
  margin-bottom: 5px;
} */

/* =========================================================
   TOTAL
========================================================= */

/* .track_total {
  margin-top: 25px;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
} */

.otp_section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

#trackOTP {
  text-align: center;
  letter-spacing: 4px;
  font-size: 18px;
}

#verifyOTPBtn,
#resendOTPBtn {
  width: 100%;
}

/* =========================================================
   ORDER STATUS MODAL
========================================================= */

.order_status_modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.order_status_modal.active {
  display: flex;
}

.order_status_modal_content {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  animation: modalFade 0.25s ease;
}

.close_order_status_modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
  cursor: pointer;
}

.close_order_status_modal:hover {
  background: #e5e7eb;
}

#modalOrderTitle {
  margin-bottom: 22px;
  font-size: 24px;
  color: #111827;
}

.modal_order_status_row {
  margin-bottom: 18px;
}

.modal_order_label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.modal_order_value {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.modal_status_badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.modal_status_confirmed {
  background: #e6f4ea;
  color: #188038;
}

.modal_status_processing {
  background: #fff4e5;
  color: #b26a00;
}

.modal_status_failed {
  background: #fde7e9;
  color: #d93025;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   Tablet/MOBILE
========================================================= */

@media (max-width: 1024px) {
  .track_order_section {
    padding: 10px;
  }

  .track_order_card {
    padding: 15px;
    font-size: 22px;
  }

  .track_order_subtext {
    font-size: 15px;
  }

  .track_order_form input {
    min-width: 0;
    font-size: 15px;
  }

  .track_order_form label {
    font-size: 15px;
  }

  .order_list_top {
    flex-direction: column;
    align-items: flex-start;
  }

  .order_list_meta {
    grid-template-columns: 1fr;
  }

  .track_order_top {
    flex-direction: column;
  }

  .track_order_bottom {
    flex-direction: column;
  }
}
