/* /check-order-status/ — styling lifted directly from source's own embedded
   <style> block for this page (route=order_status), scoped to #content so
   it can't leak onto any other page/post sharing these generic class names. */

#content .order-status-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  #content .order-status-container {
    max-width: 800px;
  }
}

@media (max-width: 767px) {
  #content .order-status-container {
    max-width: 100%;
    padding: 15px;
  }
  #content h1 {
    font-size: 28px !important;
  }
  #content .mb-4 {
    padding: 0 10px !important;
  }
  #content .mb-4 p {
    font-size: 16px !important;
  }
}

/* ===== FORM ===== */
#content #order_status_form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#content #order_status_form input[type="text"],
#content #order_status_form input[type="email"] {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 16px;
}
#content #order_status_form input[type="submit"] {
  background-color: #2B3788;
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s;
}
#content #order_status_form input[type="submit"]:hover {
  background-color: #1e2a6a;
}
#content .error {
  color: #d32f2f;
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 10px;
}

/* ===== ORDER RESULTS ===== */
#content .order-results {
  margin-top: 30px;
}
#content .order-results-header {
  text-align: center;
  margin-bottom: 25px;
}
#content .order-results-header h2 {
  color: #2B3788;
  font-size: 24px;
  margin-bottom: 5px;
}
#content .order-results-header .order-meta {
  color: #666;
  font-size: 14px;
}

/* ===== PROGRESS TRACKER ===== */
#content .progress-tracker {
  background: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}
#content .progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  min-width: 500px;
  padding: 0 10px;
}
#content .progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  z-index: 1;
}
#content .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 3px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
#content .step-label {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  text-align: center;
  font-weight: 500;
  max-width: 90px;
  line-height: 1.3;
}
#content .progress-step.completed .step-circle {
  background: #2B3788;
  border-color: #2B3788;
}
#content .progress-step.completed .step-label {
  color: #2B3788;
  font-weight: 600;
}
#content .progress-step.active .step-circle {
  background: #fff;
  border-color: #2B3788;
  box-shadow: 0 0 0 4px rgba(43, 55, 136, 0.15);
}
#content .progress-step.active .step-label {
  color: #2B3788;
  font-weight: 700;
}
#content .progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 25px);
  width: calc(100% - 50px);
  height: 3px;
  background: #e0e0e0;
  z-index: 0;
}
#content .progress-step.completed:not(:last-child)::after {
  background: #2B3788;
}

/* ===== STATUS BANNER ===== */
#content .status-banner {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
#content .status-banner.cancelled {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
#content .status-banner.pending-payment {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
#content .status-banner .banner-text h4 {
  margin: 0 0 2px 0;
  font-size: 16px;
}
#content .status-banner .banner-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* ===== INFO CARDS ===== */
#content .info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  #content .info-cards {
    grid-template-columns: 1fr;
  }
}
#content .info-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
#content .info-card h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-weight: 600;
}
#content .info-card .card-value {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

/* ===== PRODUCTS TABLE ===== */
#content .products-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
#content .products-card h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #2B3788;
  font-weight: 700;
}
#content .product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
#content .product-item:last-child {
  border-bottom: none;
}
#content .product-name {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  flex: 1;
}
#content .product-qty {
  font-size: 14px;
  color: #666;
  margin: 0 15px;
  white-space: nowrap;
}
#content .product-price {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 500px) {
  #content .product-price {
    display: none;
  }
  #content .product-qty {
    margin-right: 0;
  }
}

/* Totals */
#content .order-totals {
  border-top: 2px solid #f0f0f0;
  margin-top: 10px;
  padding-top: 10px;
}
#content .total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #666;
}
#content .total-row.grand-total {
  font-size: 17px;
  font-weight: 700;
  color: #2B3788;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  margin-top: 5px;
}

/* ===== TIMELINE ===== */
#content .timeline-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
#content .timeline-card h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #2B3788;
  font-weight: 700;
}
#content .timeline {
  position: relative;
  padding-left: 25px;
}
#content .timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: #e0e0e0;
}
#content .timeline-entry {
  position: relative;
  padding-bottom: 18px;
}
#content .timeline-entry:last-child {
  padding-bottom: 0;
}
#content .timeline-entry::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 2px solid #fff;
}
#content .timeline-entry:first-child::before {
  background: #2B3788;
}
#content .timeline-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}
#content .timeline-status {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

/* ===== CHECK ANOTHER LINK ===== */
#content .check-another {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 10px;
}
#content .check-another a {
  color: #2B3788;
  font-size: 15px;
  text-decoration: none;
  font-weight: 600;
}
#content .check-another a:hover {
  text-decoration: underline;
}

/* ===== EXPLANATION SECTIONS ===== */
#content .status-explanation,
#content .tracking-info,
#content .delivery-issues,
#content .faqs,
#content .customer-support {
  margin-top: 20px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#content .status-explanation h3,
#content .tracking-info h3,
#content .delivery-issues h3,
#content .faqs h3,
#content .customer-support h3 {
  margin-top: 0;
  color: #2B3788;
  font-size: 20px;
}
#content .status-explanation p,
#content .tracking-info p,
#content .delivery-issues p,
#content .faqs p,
#content .customer-support p {
  margin-bottom: 15px;
  line-height: 1.6;
}
#content .faqs h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
}
#content .customer-support ul {
  padding-left: 20px;
  margin-bottom: 0;
}
#content .customer-support li {
  margin-bottom: 10px;
}
