   WP Cargo – Tracking Map Enhancement Styles v3.2.0
   =================================================== */

/* ---- Hide native WP Cargo map elements ------------ */
#wpcargo-history-section,
.ws-map,
.wpcargo-map,
#wpcargo_map,
#wpcargo-map,
.wpcargo-google-map,
.wpcargo-tracking-map {
    display: none !important;
}

/* ---- Contact Cards (Shipper / Receiver) ----------- */
  .wctm-contact-cards {
      display: flex;
      gap: 16px;
      padding: 16px 0;
      flex-wrap: wrap;
  }

  .wctm-contact-card {
      flex: 1 1 260px;
      background: #f3f5f5;
      border-radius: 20px;
      padding: 24px 24px 20px;
      box-shadow: 0 4px 20px rgba(60,90,180,0.08);
      min-width: 220px;
  }

  .wctm-card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
  }

  .wctm-card-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
  }

  .wctm-card-icon svg {
      width: 22px;
      height: 22px;
  }

  .wctm-card-icon--shipper { background: #d0d9f0; }
  .wctm-card-icon--shipper svg { fill: #3a5bbf; }
  .wctm-card-icon--receiver { background: #d7ede4; }
  .wctm-card-icon--receiver svg { fill: #2f9c78; }

  .wctm-card-title {
      font-size: 17px;
      font-weight: 800;
      letter-spacing: 0.06em;
      color: #1a1e3a;
      text-transform: uppercase;
  }

  .wctm-card-divider {
      border: none;
      border-top: 1.5px solid #c4cce6;
      margin: 0 0 14px;
  }

  .wctm-card-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 9px 0;
      border-bottom: 1px solid rgba(170,185,220,0.3);
      font-size: 14px;
      line-height: 1.5;
  }
  .wctm-card-row:last-child {
      border-bottom: none;
  }

  .wctm-card-label {
      font-weight: 700;
      color: #1a1e3a;
      min-width: 70px;
      flex-shrink: 0;
  }

  .wctm-card-value {
      color: #6b7599;
      word-break: break-word;
  }

  .wctm-phone-link {
      color: #2563eb !important;
      text-decoration: none;
  }
  .wctm-phone-link:hover { text-decoration: underline; }

  /* ---- Route Header --------------------------------- */
.wctm-route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.wctm-route-endpoint { flex: 1; }

.wctm-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.wctm-label svg {
    width: 13px;
    height: 13px;
    fill: #2563eb;
}

.wctm-city {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.wctm-route-middle {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    min-width: 120px;
}

.wctm-truck-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4px;
}

.wctm-dashes {
    flex: 1;
    height: 2px;
    border-top: 2.5px dashed #2563eb;
    opacity: 0.7;
}

.wctm-truck-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wctm-truck-icon svg {
    width: 28px;
    height: 28px;
}

.wctm-current-location {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    text-align: center;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Section titles (orange) ---------------------- */
.wctm-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 2px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2563eb;
    text-transform: uppercase;
}

.wctm-section-title svg {
    width: 15px;
    height: 15px;
    fill: #2563eb;
    stroke: #2563eb;
}

/* ---- Live Map ------------------------------------- */
.wctm-map-section {
    margin: 16px 0;
    background: #fff;
}

.wctm-map-el {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 0;
}

.wctm-map-unavailable {
    padding: 16px;
    color: #888;
    font-size: 13px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.wctm-map-legend {
    display: flex;
    gap: 18px;
    margin-top: 8px;
    padding-left: 2px;
    font-size: 12px;
    color: #555;
}

.wctm-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Solid dark line for "Completed" */
.wctm-legend-line {
    width: 18px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Dashed green line for "Remaining" */
.wctm-legend-dashed {
    width: 18px;
    height: 0;
    border-top: 3px dashed #22c55e;
    flex-shrink: 0;
}

  /* ---- Tracking History timeline --------------------- */
  .wctm-history-section {
      margin: 14px 0 8px;
  }

  .wctm-history-title {
      font-size: 18px;
      font-weight: 700;
      color: #0f172a;
      margin: 0 0 16px;
  }

  .wctm-history-timeline {
      display: flex;
      flex-direction: column;
  }

  .wctm-history-item {
      display: flex;
      align-items: stretch;
      gap: 14px;
  }

  .wctm-history-marker {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex-shrink: 0;
      width: 28px;
  }

  .wctm-history-dot {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid #d7dceb;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 14px;
  }

  .wctm-history-dot--current {
      background: #4f6bf0;
      border-color: #4f6bf0;
  }

  .wctm-history-line {
      width: 2px;
      flex: 1;
      background: #d7dceb;
      margin: 2px 0;
  }

  .wctm-history-card {
      flex: 1;
      background: #EFF2F5;
      border: 1px solid #e3e7ef;
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 14px;
  }

  .wctm-history-status {
      font-size: 15px;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 8px;
  }

  .wctm-history-status--current {
      color: #4f6bf0;
  }

  .wctm-history-location {
      display: flex;
      align-items: center;
      font-size: 13px;
      color: #64748b;
      margin-bottom: 6px;
  }

  .wctm-history-date {
      font-size: 13px;
      color: #64748b;
  }

/* ---- Shipment Updates section --------------------- */
.wctm-updates-section {
    margin: 14px 0 8px;
    background: #EFF2F5;
    border-radius: 12px;
    padding: 14px 16px 16px;
}

.wctm-updates-list {
    border-radius: 10px;
    overflow: hidden;
}

.wctm-update-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    background: transparent;
    font-size: 13px;
}

.wctm-update-item:last-child { border-bottom: none; }

.wctm-update-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
}

.wctm-update-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wctm-update-time {
    font-size: 11px;
    color: #6b7280;
}

.wctm-update-left svg {
    width: 15px;
    height: 15px;
    stroke: #2563eb;
    flex-shrink: 0;
}

.wctm-update-amount {
    font-weight: 700;
    color: #111827;
    font-size: 13px;
    white-space: nowrap;
}

/* ---- Hide logo, barcode & tracking-number text ---- */
.comp_logo,
.b_code,
.shipment-number {
    display: none !important;
}
