/**
 * MEM Connector — Frontend Order Tracking Styles
 *
 * Styles for the shipment tracking section on the
 * My Account > View Order page.
 *
 * @package Mem_Connector
 * @since   1.0.0
 */

.mem-tracking-section {
  margin: 2em 0;
}

.mem-tracking-heading {
  font-size: 1.25em;
  font-weight: 700;
  margin: 0 0 0.75em;
}

.mem-tracking-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.mem-tracking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f1;
}

.mem-tracking-row:last-child {
  border-bottom: none;
}

.mem-tracking-label {
  font-size: 0.9em;
  color: #646970;
  font-weight: 500;
}

.mem-tracking-value {
  font-size: 0.9em;
  font-weight: 600;
  color: #1d2327;
}

.mem-tracking-code {
  display: inline-block;
  background: #f6f7f7;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.mem-tracking-row--action {
  justify-content: flex-end;
  background: #fafafa;
}

.mem-tracking-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #3c3c3c;
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.mem-tracking-link:hover,
.mem-tracking-link:focus {
  background: #2a2a2a;
  color: #fff;
}

@media screen and (max-width: 480px) {
  .mem-tracking-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }

  .mem-tracking-row--action {
    align-items: stretch;
  }

  .mem-tracking-link {
    justify-content: center;
    width: 100%;
  }
}
