/* Shared card picker UI (gift/trade modal, trophy vandal sacrifice, etc.) */

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker {
  min-height: 2rem;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-empty {
  font-size: 0.8rem;
  padding: 0.4rem 0.1rem;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-collection-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 10rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-collection-btn,
:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-back-btn,
:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn--selectable,
:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-qty-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  margin: 0;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-collection-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.4rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.8rem;
  text-align: left;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-collection-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-collection-btn.has-selected {
  border-color: #6366f1;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-collection-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-selected-badge {
  background: #6366f1;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.65rem;
  padding: 0.05rem 0.35rem;
  font-weight: 700;
  line-height: 1.4;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-collection-meta {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-chevron {
  font-size: 1rem;
  line-height: 1;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-view {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.7rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: fit-content;
  line-height: 1.3;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-back-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-heavy);
  color: var(--text-primary);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-back-icon {
  font-size: 1rem;
  line-height: 1;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-collection-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 9.5rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn,
:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn--selectable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.35rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-align: left;
  gap: 0.5rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-rarity {
  font-size: 0.65rem;
  vertical-align: middle;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-name .collection-card-premium-star {
  font-size: 0.75rem;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn--selectable {
  cursor: pointer;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn--selectable.is-disabled,
:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn--selectable:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn--selectable.is-disabled:hover,
:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn--selectable:disabled:hover {
  background: var(--bg-elevated);
  border-color: var(--border-primary);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-qty--muted {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn.is-selected,
:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-btn--selectable.is-selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-name {
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-you-own {
  font-size: 0.62rem;
  color: #6366f1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-they-own {
  color: #f59e0b;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-serial {
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 600;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-card-qty {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-qty-btn {
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-qty-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary, #6366f1);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-qty-btn--add {
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-qty-btn--add:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

:is(#makeOfferModal, #trophyVandalModal, #nameChangeModal, .moya-deck-editor-surface) .make-offer-picker-qty-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 1.1rem;
  text-align: center;
}
