/* PP&S View — Next Gen only (eBay match + buyer groups) and the Legacy/Next Gen tabs.
   Legacy styles stay in pps-view.css. */

.pps-mode-tabs {
  display: inline-flex;
  border: 1px solid #475569;
  border-radius: 8px;
  overflow: hidden;
}

.pps-mode-tabs button {
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.pps-mode-tabs button + button {
  border-left: 1px solid #475569;
}

.pps-mode-tabs button.is-active {
  background: #2563eb;
  color: #fff;
}

.pps-mode-tabs button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.pps-ship-btn--label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  text-decoration: none;
}

.pps-ship-btn--label:hover {
  background: #1d4ed8;
}

.pps-ship-row.is-ebay {
  border-color: #1d4ed8;
}

.pps-ship-ebay {
  margin-top: 3px;
  font-size: 0.6875rem;
  color: #cbd5e1;
}

.pps-ship-ebay-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* eBay wordmark on a white chip — its blue disappears on the dark UI otherwise. */
.pps-ebay-logo {
  display: inline-block;
  box-sizing: content-box;
  flex: none;
  height: 14px;
  width: auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff;
  vertical-align: middle;
}

.pps-ebay-logo--banner {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
}

.pps-ebay-logo--verdict {
  height: 26px;
  padding: 5px 10px;
  border-radius: 8px;
}

.pps-verdict {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pps-verdict[hidden] {
  display: none;
}

.pps-verdict.is-checking {
  color: #94a3b8;
  font-weight: 500;
}

.pps-verdict.is-ebay {
  border-color: #2563eb;
  background: #172554;
  color: #fff;
}

.pps-verdict-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pps-ship-others {
  margin-top: 4px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #422006;
  border: 1px solid #a16207;
  color: #fde68a;
}

.pps-ship-others-head {
  font-weight: 700;
}

.pps-ship-others ul {
  margin: 2px 0 0;
  padding-left: 14px;
}

.pps-ship-others li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}


.pps-ship-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #422006;
  border: 1px solid #a16207;
  color: #fde68a;
  font-size: 0.75rem;
}

.pps-ship-group-head[role="button"] {
  cursor: pointer;
}

.pps-ship-group-head[role="button"]:hover {
  filter: brightness(1.25);
}

.pps-ship-group-head[role="button"]:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.pps-ship-group-head.is-complete {
  background: #052e16;
  border-color: #166534;
  color: #bbf7d0;
}

.pps-ship-group-buyer {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pps-ship-group-count {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.pps-ship-row.in-group {
  margin-left: 10px;
}

.pps-group {
  flex: none;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #422006;
  border: 2px solid #f59e0b;
  color: #fef3c7;
}

.pps-group[hidden] {
  display: none;
}

.pps-group.is-complete {
  background: #052e16;
  border-color: #22c55e;
  color: #dcfce7;
}

.pps-group-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
}

.pps-group-title {
  grid-column: 2;
}

.pps-group-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.pps-group-sub {
  grid-column: 2;
  font-size: 0.8125rem;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

.pps-group-close {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.pps-group-items {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-height: 40vh;
  overflow-y: auto;
}

.pps-group-item {
  padding: 6px;
  border-radius: 8px;
  background: #0f172a;
  border: 2px solid #334155;
  color: #e2e8f0;
  min-width: 0;
}

.pps-group-item.is-current {
  border-color: #38bdf8;
}

.pps-group-item.is-scanned {
  border-color: #2563eb;
}

.pps-group-item.is-shipped {
  border-color: #16a34a;
  opacity: 0.6;
}

.pps-group-photo {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.pps-group-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pps-group-sku {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pps-group-name {
  font-size: 0.6875rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pps-group-chip {
  margin-top: 4px;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #b45309;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.pps-group-item.is-scanned .pps-group-chip {
  background: #2563eb;
}

.pps-group-item.is-shipped .pps-group-chip {
  background: #16a34a;
}

.pps-group-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* The item just scanned — after the state rules so it wins over "scanned" green. */
.pps-group-item.is-current {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px #38bdf8;
}

.pps-lookup {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pps-lookup input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f8fafc;
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.pps-lookup input:focus {
  outline: 2px solid #38bdf8;
  outline-offset: -1px;
  border-color: #38bdf8;
}

.pps-lookup button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pps-lookup button:disabled {
  opacity: 0.6;
  cursor: default;
}

.pps-lookup-note {
  flex-basis: 100%;
  min-height: 1em;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.pps-lookup-note:empty {
  display: none;
}

.pps-lookup-note.is-warn {
  color: #fbbf24;
}

/* Second link for a buyer with several eBay orders: the buyer's whole list. */
.pps-ship-btn--all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-color: #2563eb;
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
}

.pps-ship-btn--all:hover {
  background: #1e3a8a;
}

/* Marked Shipped by hand while the platform shows no label bought. */
.pps-ship-row.is-no-label {
  border-color: #f59e0b;
}

.pps-ship-row.is-no-label .pps-ship-meta {
  color: #fbbf24;
}

/* Marked Shipped by hand, but the platform shows no label bought for it. */
.pps-group-item.is-marked {
  border-color: #f59e0b;
}

.pps-group-item.is-marked .pps-group-chip {
  background: #b45309;
}

/* eBay account avatar beside the logo (2026-10-05): Bolt Luxury's gold bolt vs Bolt Golf's ball. */
.pps-acct-icon {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 50%;
  vertical-align: middle;
}

.pps-acct-icon--verdict {
  width: 34px;
  height: 34px;
  margin-left: 0;
}

.pps-acct-icon--banner {
  width: 26px;
  height: 26px;
  margin: 0 8px 0 0;
  vertical-align: -6px;
}
