/* GoCargo Shipment: self-contained tracking result styles.
   Lets the tracking page render on any theme. The active theme may layer
   its own styles on top. */
.gocargo-track-results .timeline {
  list-style: none;
  padding: 20px 0 20px;
  position: relative;
}
.gocargo-track-results .timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 2px;
  background-color: #eeeeee;
  left: 50%;
  margin-left: -1.5px;
}
.gocargo-track-results .timeline.custom-tl:before {
  left: 130px;
}
.gocargo-track-results .timeline > li {
  margin-bottom: 20px;
  position: relative;
}
.gocargo-track-results .timeline.custom-tl > li {
  border-bottom: dashed 1px rgba(128,128,128,.35);
  padding-bottom: 20px;
}
.gocargo-track-results .timeline > li:before,
.gocargo-track-results .timeline > li:after {
  content: " ";
  display: table;
}
.gocargo-track-results .timeline > li:after {
  clear: both;
}
.gocargo-track-results .timeline > li > .timeline-panel {
  width: 46%;
  float: left;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  padding: 20px;
  position: relative;
  -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}
.gocargo-track-results .timeline.custom-tl > li > .timeline-panel {
  border: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  width: 100%;
}
.gocargo-track-results .timeline.custom-tl > li > .timeline-panel:before,
.gocargo-track-results .timeline.custom-tl > li > .timeline-panel:after {
  display: none;
}
.gocargo-track-results .timeline > li > .timeline-badge {
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 1.4em;
  text-align: center;
  position: absolute;
  top: 16px;
  left: 50%;
  margin-left: -25px;
  background-color: #999999;
  z-index: 100;
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
}
.gocargo-track-results .timeline.custom-tl > li > .timeline-badge {
  background: #D03232;
  left: 130px;
}
.gocargo-track-results .timeline.custom-tl > li.timeline-inverted > .timeline-panel {
  float: none;
  left: 170px;
}
.gocargo-track-results .timeline-badge.primary { background-color: #2e6da4 !important; }
.gocargo-track-results .timeline-badge.success { display: block; background-color: #3f903f !important; }
.gocargo-track-results .timeline-badge.warning { background-color: #f0ad4e !important; }
.gocargo-track-results .timeline-badge.danger { background-color: #d9534f !important; }
.gocargo-track-results .timeline-badge.info { background-color: #5bc0de !important; }
.gocargo-track-results .timeline-badge.intransit { background-color: #3498DB !important; }
.gocargo-track-results .timeline-badge.attemptfail { background-color: #9b59b6 !important; }
.gocargo-track-results .timeline-badge.expired { background-color: #7f8c8d !important; }
.gocargo-track-results .timeline-badge.pending { background-color: #bdc3c7 !important; }
.gocargo-track-results .timeline-badge.outfordelivery { background-color: #f39c12 !important; }
.gocargo-track-results .timeline-badge.inforeceived { background-color: #35495e !important; }
.gocargo-track-results .timeline-heading strong { font-size: 16px; }
.gocargo-track-results .timeline-body > .location {
  display: block;
  text-transform: uppercase;
  color: #555;
}
.gocargo-track-results .timeline-body > .location a { margin-left: 10px; text-transform: none; }
.gocargo-track-results .timeline-date {
  position: absolute;
  left: 0;
  top: 16px;
  font-weight: bold;
}
.gocargo-track-results .timeline-date > span {
  display: block;
  font-size: 12px;
  text-align: center;
  color: #555;
}
/* Tables wrap on every screen, never clipped. */
.gocargo-track-results table.shipment-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.gocargo-track-results table.shipment-table td,
.gocargo-track-results table.shipment-table th {
  word-break: break-word;
  overflow-wrap: anywhere;
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.gocargo-track-results .timeline-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gocargo-track-results ul.timeline.custom-tl {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.gocargo-track-results .divider-double {
  clear: both;
  height: 60px;
}
.gocargo-track-results .wrapper-line {
  border: 2px solid rgba(128,128,128,.45);
  border-radius: 10px;
  padding: 40px;
  overflow-x: visible;
}
/* Search form basics (usable without the theme's framework). */
.gocargo-track-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.gocargo-track-form input[type="text"] {
  flex: 1 1 220px;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.gocargo-track-form input[type="submit"],
.gocargo-track-form button {
  padding: 12px 26px;
  font-size: 16px;
  cursor: pointer;
}
.gocargo-track-results #gocargo-route-map {
  background: #f4f4f4;
}
@media screen and (max-width: 600px) {
  .gocargo-track-results .timeline.custom-tl:before { display: none; }
  .gocargo-track-results .timeline.custom-tl > li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
  }
  .gocargo-track-results .timeline.custom-tl > li > .timeline-badge {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    order: 1;
    flex: 0 0 auto;
  }
  .gocargo-track-results .timeline.custom-tl > li > .timeline-date {
    position: static !important;
    text-align: center;
    margin: 0 !important;
    order: 2;
  }
  .gocargo-track-results .timeline.custom-tl > li.timeline-inverted > .timeline-panel {
    float: none !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    text-align: center;
    order: 3;
  }
}
