.gui-inventory {
  max-width: 1000px;
  margin: 0 auto;
}

.gui-inventory .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.gui-inventory-message {
  text-align: center;
}

/* Keeps a section heading visible below Divi's fixed header when another page links to it, e.g. /inventory/#phones. */
.gui-inventory-section {
  margin: 0 0 48px;
  scroll-margin-top: 140px;
}

.gui-inventory-section h2 {
  margin: 0 0 16px;
  padding: 0;
  color: #002929;
}

.gui-inventory .gui-inventory-table {
  width: 100%;
  margin: 0;
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 3px 0 rgba(0, 41, 41, 0.15);
}

.gui-inventory .gui-inventory-table th {
  padding: 12px 16px;
  background: #002929;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.gui-inventory .gui-inventory-table td {
  padding: 12px 16px;
  border: none;
  border-top: 1px solid #e6f2f2;
  vertical-align: middle;
}

.gui-inventory .gui-inventory-table tbody tr:nth-child(even) td {
  background: #f7fbfb;
}

.gui-inventory .gui-inventory-photo {
  width: 96px;
}

.gui-inventory .gui-inventory-photo img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.gui-inventory .gui-inventory-name {
  color: #002929;
  font-weight: 600;
}

.gui-inventory .gui-inventory-condition {
  white-space: nowrap;
}

.gui-inventory .gui-inventory-table th:last-child,
.gui-inventory .gui-inventory-price {
  text-align: right;
}

.gui-inventory .gui-inventory-price {
  color: #002929;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* On phones each row becomes a card: photo on the left, details stacked on the right. */
@media (max-width: 640px) {
  .gui-inventory .gui-inventory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .gui-inventory .gui-inventory-table,
  .gui-inventory .gui-inventory-table tbody {
    display: block;
  }

  .gui-inventory .gui-inventory-table tr {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 14px;
    padding: 14px 16px;
    border-top: 1px solid #e6f2f2;
  }

  .gui-inventory .gui-inventory-table tbody tr:first-child {
    border-top: none;
  }

  .gui-inventory .gui-inventory-table tbody tr:nth-child(even) {
    background: #f7fbfb;
  }

  .gui-inventory .gui-inventory-table td,
  .gui-inventory .gui-inventory-table tbody tr:nth-child(even) td {
    display: block;
    width: auto;
    padding: 2px 0;
    border: none;
    background: none;
    text-align: left;
  }

  .gui-inventory .gui-inventory-photo {
    grid-row: span 3;
  }

  .gui-inventory .gui-inventory-condition::before,
  .gui-inventory .gui-inventory-price::before {
    content: attr(data-label) ': ';
    color: #666;
    font-weight: 400;
  }
}
