/* urbanXplorer grouped Wallet passes — parent card + selectable child pass previews. */

.wallet-card-pass-group {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin-top: 2px;
  pointer-events: none;
}

.wallet-document-card.is-active .wallet-card-pass-group {
  pointer-events: auto;
}

.wallet-card-pass-focus {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 4px 7px;
  border-radius: 9px;
  background: rgba(2,6,23,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.wallet-card-pass-focus strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 900;
}

.wallet-card-pass-focus small {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.76);
  font-size: 8.5px;
  font-weight: 800;
}

.wallet-card-pass-strip {
  min-width: 0;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 2px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.wallet-card-pass-strip::-webkit-scrollbar {
  display: none;
}

.wallet-pass-mini {
  flex: 0 0 auto;
  max-width: 116px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.wallet-pass-mini.is-selected {
  background: rgba(255,255,255,.92);
  color: color-mix(in srgb,var(--wallet-card-base) 82%,black);
  border-color: rgba(255,255,255,.96);
}

.wallet-pass-mini:disabled {
  pointer-events: none;
}

.wallet-pass-mini:focus-visible {
  outline: 2px solid rgba(255,255,255,.96);
  outline-offset: 1px;
}

@media (max-width: 370px) {
  .wallet-card-pass-focus {
    padding: 3px 6px;
  }

  .wallet-card-pass-focus strong {
    font-size: 9.5px;
  }

  .wallet-card-pass-focus small {
    font-size: 8px;
  }

  .wallet-pass-mini {
    min-height: 23px;
    max-width: 94px;
    padding-inline: 7px;
    font-size: 8.5px;
  }
}

.wallet-pass-editor-fieldset {
  display: grid;
  gap: 10px;
}

.wallet-pass-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-pass-editor-actions .wallet-card-secondary-action {
  min-height: 38px;
  padding-inline: 11px;
  font-size: 12px;
}

.wallet-pass-editor-list {
  display: grid;
  gap: 9px;
}

.wallet-pass-editor-empty {
  display: block;
  padding: 10px 12px;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  color: #64748B;
  background: #F8FAFC;
  font-size: 12px;
}

.wallet-pass-editor-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(92px,.7fr) minmax(0,1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #F8FAFC;
}

.wallet-pass-editor-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.wallet-pass-editor-field > span {
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
}

.wallet-pass-editor-field input,
.wallet-pass-editor-field select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: #fff;
  color: #0F172A;
  padding: 0 9px;
  font: inherit;
  font-size: 13px;
}

.wallet-pass-editor-remove {
  width: 38px;
  height: 38px;
  border: 1px solid #FECACA;
  border-radius: 10px;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 560px) {
  .wallet-pass-editor-row {
    grid-template-columns: minmax(0,1fr) minmax(96px,.75fr) auto;
  }

  .wallet-pass-editor-field:nth-child(3) {
    grid-column: 1 / -2;
  }
}

