File size: 1,907 Bytes
2acde71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* Wallet Adapter Custom Styles */

/* Override wallet adapter button styles to use our design system */
.wallet-adapter-button-trigger .wallet-adapter-button {
  /* Remove all default styles */
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  
  /* Focus styles */
  outline: none;
  ring-offset-color: hsl(var(--background));
}

.wallet-adapter-button-trigger .wallet-adapter-button:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.wallet-adapter-button-trigger .wallet-adapter-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Ensure wallet modal styles work with our theme */
.wallet-adapter-modal-wrapper {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.wallet-adapter-modal-title {
  color: hsl(var(--foreground));
}

.wallet-adapter-modal-list .wallet-adapter-modal-list-item {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}

.wallet-adapter-modal-list .wallet-adapter-modal-list-item:hover {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--ring));
}

.wallet-adapter-modal-list .wallet-adapter-modal-list-item .wallet-adapter-modal-list-item-name {
  color: hsl(var(--foreground));
}

/* Force proper wallet detection to prioritize installed app over web */
.wallet-adapter-modal-list .wallet-adapter-modal-list-item[data-wallet-name="Phantom"] {
  order: -1; /* Place Phantom first if detected */
}