* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background: #000000;
  color: #ffffff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  line-height: 1.4;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(1.5rem - env(safe-area-inset-bottom, 0px));
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: calc(1.5rem + env(safe-area-inset-top));
  position: relative;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  width: 100%;
}

.block-search-input {
  appearance: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  border-left: none;
  border-right: none;
  border-top: 1px solid transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  outline: none;
  padding: 0;
  width: 100%;
}

.block-search-input:focus {
  border-bottom: 1px solid transparent;
  border-left: none;
  border-right: none;
  border-top: 1px solid transparent;
  box-shadow: none;
  outline: none;
}

.header-container {
  background: #222222;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  width: 100%;
}

.receipt-title-row {
  justify-content: space-between;
}

.row {
  align-items: flex-start;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.right {
  margin-left: auto;
  text-align: right;
}

.shipment-border-dhl {
  border-left: 4px solid #d40511;
}

.shipment-border-fedex {
  border-left: 4px solid #ff6600;
}

.shipment-border-unknown {
  border-left: 4px solid #666666;
}

.shipment-border-ups {
  border-left: 4px solid #ffb500;
}

.shipment-border-usps {
  border-left: 4px solid #0078c8;
}

.shipment-container {
  -webkit-user-select: none;
  background: #141414;
  cursor: pointer;
  padding: 1rem;
  user-select: none;
  width: 100%;
}

.shipment-container:hover,
.shipment-container-expanded {
  background: #222222;
}

.shipment-details-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
}

.shipment-container-expanded .shipment-details-panel {
  border-top: 1px solid #444444;
  display: flex;
  padding-top: 1rem;
}

.shipment-carrier {
  color: #666666;
}

.shipment-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.shipment-container-archived {
  background: #000000;
  border: 1px solid #444444;
  border-left: 4px solid #444444;
}

.shipment-container-archived.shipment-container-expanded,
.shipment-container-archived.shipment-container-expanded:hover {
  background: #000000;
}

.shipments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

@media (max-width: 576px) {
  .shipment-container .row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .shipment-container .right {
    margin-left: 0;
    text-align: left;
  }
}

.status-delivered {
  color: #666666;
}

.status-error,
.status-in-progress,
.status-unknown {
  color: #ffffff;
}

.subtle {
  color: #666666;
}

.tracking-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.tracking-events {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
