#dialog:has(.wallet-picker) {
  width: min(462px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 23px;
  border-color: #495648;
  background: #1a201b;
  box-shadow: 0 24px 96px #000b;
}

#dialog:has(.wallet-picker) .dialog-head {
  margin-bottom: 7px;
}

#dialog:has(.wallet-picker) .dialog-head h2 {
  font-size: 1.45rem;
  font-weight: 750;
}

#dialog:has(.wallet-picker) #close-dialog {
  width: 38px;
  height: 38px;
  border: 1px solid #485347;
  background: #283029;
  color: #e1e8de;
}

.wallet-picker-intro {
  margin: 0 0 17px;
  color: #bfcbbd;
  font-size: .88rem;
  line-height: 1.53;
}

.wallet-picker-list {
  display: grid;
  gap: 8px;
}

.wallet-picker-row {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #414c41;
  border-radius: 11px;
  background: #252c26;
  color: #eff4ed;
  text-align: left;
  transition: background .16s, border-color .16s;
}

.wallet-picker-row:not(:disabled, [aria-disabled='true']):hover {
  border-color: #697f61;
  background: #2d392e;
  filter: none;
}

.wallet-picker-row:focus-visible {
  outline-offset: 2px;
}

.wallet-picker-row:disabled {
  border-color: #394439;
  background: #202722;
}

.wallet-picker-row:disabled .wallet-picker-action {
  border-color: transparent;
  background: transparent;
  color: #aebcaf;
  padding-inline: 0;
}

.wallet-picker-row[aria-disabled='true'] {
  cursor: wait;
}

.wallet-picker-waiting {
  border-color: #7d9c66;
}

.wallet-picker-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #546254;
  border-radius: 11px;
  background: #303e30;
  color: #d5f2c3;
  overflow: hidden;
}

.wallet-picker-mark img {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.wallet-picker-mark .ico {
  width: 21px;
  height: 21px;
}

.wallet-picker-mark.mark-metamask {
  border-color: #745342;
  background: #402c26;
}

.wallet-picker-mark.mark-rabby {
  border-color: #525b93;
  background: #323957;
}

.wallet-picker-mark.mark-trust {
  border-color: #9aa8d5;
  background: #ecf1ff;
}

.wallet-picker-mark.mark-trust img {
  width: 24px;
  height: 24px;
}

.wallet-picker-mark.mark-walletconnect {
  border-color: #9eafd1;
  background: #e9f1ff;
}

.wallet-picker-mark.mark-walletconnect img {
  width: 25px;
  height: 25px;
}

.wallet-picker-label {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.wallet-picker-label strong {
  color: #f1f6ef;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wallet-picker-label small {
  color: #b7c3b4;
  font-size: .745rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wallet-picker-action,
.wallet-picker-connected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: .29rem .42rem;
  border: 1px solid #536353;
  border-radius: 6px;
  background: #303a30;
  color: #e5eee1;
  font-size: .727rem;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
}

.wallet-picker-action .ico {
  width: 12px;
  height: 12px;
}

.wallet-picker-row[data-action='connect'] .wallet-picker-action,
.wallet-picker-connected {
  border-color: #56744a;
  background: #2d402a;
  color: #d7fac5;
}

.wallet-picker-footer,
.wallet-picker-note {
  margin: 12px 0 0;
  color: #bfccbb;
  font-size: .75rem;
  line-height: 1.5;
}

.wallet-picker-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid #3b473b;
}

.wallet-picker-footer .ico {
  width: 14px;
  height: 14px;
  color: #b0cf9e;
}

.wallet-picker-note:empty {
  margin: 0;
}

.wallet-picker-note[data-state='error'] {
  color: #ffcca9;
}

.wallet-picker-profile {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #475647;
  border-radius: 11px;
  background: #252e26;
}

.wallet-picker-profile-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.wallet-picker-address {
  margin: 12px 0 0;
  color: #d0dcce;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

.wallet-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wallet-picker-actions button {
  min-height: 39px;
  padding: 7px 11px;
  border: 1px solid #50604f;
  border-radius: 8px;
  background: #29352a;
  color: #e1edde;
  font-size: .8rem;
  font-weight: 700;
}

@media (max-width: 420px) {
  #dialog:has(.wallet-picker) {
    padding: 16px;
  }

  .wallet-picker-row {
    min-height: 64px;
    gap: 9px;
    padding-inline: 9px;
  }

  .wallet-picker-mark {
    width: 40px;
    height: 40px;
  }
}
