/* NEAR Wallet Selector 10.1.4: official pinned CSS precedes these refinements. */
#near-wallet-selector-modal {
 --backdrop-bg:rgba(6,11,8,.77);
 --heading-color:#f7f7f4;
 --text-color:#344037;
 --content-bg:#f5f5f1;
 --selected-wallet-bg:#263a2b;
 --wallet-option-bg-hover:#e0e7dd;
 --wallet-option-outline-color:#e68f61;
 --option-wallet-bg-color:#fffefa;
 --confirm-button-bg:#273c2c;
 --confirm-button-bg-hover:#456247;
 --sidebar-border-color:#bcc6ba;
}
#near-wallet-selector-modal .nws-modal-wrapper {
 z-index:2500!important;
 font-family:'Geist','Inter',Arial,sans-serif!important;
}
#near-wallet-selector-modal .nws-modal-background{
 max-width:min(770px,calc(100vw - 24px))!important;
 border:1px solid #899b88!important;border-radius:2px!important;
 box-shadow:0 35px 110px #0008!important;
}
#near-wallet-selector-modal .nws-modal-title-wrapper{
 padding:22px 50px!important;background:#1b241d!important;
 border-bottom:1px solid #5c695e;
}
#near-wallet-selector-modal .nws-modal-title{
 font:780 clamp(24px,3vw,34px)/1.1 'Geist','Inter',Arial,sans-serif!important;
 letter-spacing:-.06em!important;color:#fff!important;
}
#near-wallet-selector-modal .nws-modal{height:auto!important;min-height:325px;max-height:calc(100dvh - 160px)}
#near-wallet-selector-modal .modal-left{background:#f5f5f0!important}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar{
 min-height:83px;background:#fffefa!important;
 border:1px solid #c1cbc0!important;border-radius:2px!important;
 padding:14px!important;
}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar:hover{
 background:#e9eee6!important;border-color:#7e9781!important;
}
#near-wallet-selector-modal .nws-modal button:focus-visible,
#near-wallet-selector-modal .single-wallet:focus-within{
 outline:3px solid #d9804e!important;outline-offset:3px;
}
.pact-workspace #wallet-disconnect[hidden]{display:none!important}
.pact-workspace #wallet-disconnect{
 min-height:40px;padding:10px 14px;
 border:1px solid #b0b9ad;border-radius:99px;
 background:transparent;color:#f3f3ef;
 font:650 11px 'Geist','Inter',Arial,sans-serif;
 cursor:pointer;
}
.pact-workspace #wallet-disconnect:disabled{opacity:.6;cursor:wait}
.pact-workspace #connect-wallet[data-connected=true]{border-color:#b8d4b7!important;color:#f2fff0!important}
.pact-workspace .wallet-message{
 display:none;position:relative;min-height:0;
 padding:13px clamp(22px,4.4vw,80px) 13px calc(clamp(22px,4.4vw,80px) + 17px);
 font:500 12px/1.5 'Geist','Inter',Arial,sans-serif;
 border-bottom:1px solid #abb9aa;background:#e9f0e8;color:#25402a;
}
.pact-workspace .wallet-message[data-state=ok],
.pact-workspace .wallet-message[data-state=error],
.pact-workspace .wallet-message[data-state=pending]{display:block}
.pact-workspace .wallet-message::before{
 content:"";position:absolute;top:19px;left:clamp(22px,4.4vw,80px);
 width:8px;height:8px;border-radius:50%;background:#519259;
}
.pact-workspace .wallet-message[data-state=error]{background:#f9ece4;color:#713d28;border-color:#d8bba7}
.pact-workspace .wallet-message[data-state=error]::before{background:#ad5a3b}
.pact-workspace .wallet-message[data-state=pending]{background:#f3eee5;color:#59462c;border-color:#d5c7ad}
.pact-workspace .wallet-message[data-state=pending]::before{background:#b88b52}
@media(max-width:700px){
 #near-wallet-selector-modal .nws-modal-background{max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 22px)!important}
 #near-wallet-selector-modal .nws-modal{max-height:calc(100dvh - 115px)!important;overflow:auto!important}
 #near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list{grid-template-columns:1fr!important}
 #near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar{min-height:70px}
 .pact-workspace #wallet-disconnect{padding:8px 10px;font-size:10px}
 .pact-workspace .topbar-actions{gap:7px!important}
}
@media(max-width:390px){.pact-workspace #connect-wallet[data-connected=true]{max-width:125px!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}
@media(prefers-reduced-motion:reduce){
 #near-wallet-selector-modal .nws-modal-wrapper,#near-wallet-selector-modal .nws-modal-background{animation:none!important;transition:none!important}
}

/* The wallet selector's default label colors are too pale on PACT's light chooser. */
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar .content .title{color:#273629!important;font-weight:750!important}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar.selected-wallet .content .title{color:#ffffff!important}
#near-wallet-selector-modal .nws-modal .modal-right .info p,
#near-wallet-selector-modal .nws-modal .info p{color:#38453b!important}

/* Wallet modal composition: balanced choice area and readable provider identity. */
#near-wallet-selector-modal .nws-modal{display:flex!important;align-items:stretch!important;min-height:355px!important}
#near-wallet-selector-modal .nws-modal .modal-left{
  box-sizing:border-box!important;width:54%!important;flex:0 0 54%!important;
  height:auto!important;min-height:355px!important;
  padding:28px 26px!important;background:#f3f3ed!important;
  border-right:1px solid #b6c1b5!important;
}
#near-wallet-selector-modal .nws-modal .modal-right{
  box-sizing:border-box!important;width:46%!important;flex:1 1 46%!important;
  min-width:0!important;min-height:355px!important;height:auto!important;
  padding:16px!important;background:#e5e9df!important;
}
#near-wallet-selector-modal .nws-modal .modal-left .wallet-options-wrapper,
#near-wallet-selector-modal .nws-modal .modal-left .wallet-options-wrapper .options-list{
  width:100%!important;max-width:100%!important;
}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar{
  min-width:0!important;min-height:104px!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;gap:13px!important;
  padding:15px!important;
  border-radius:2px!important;
  background:#fffefa!important;
}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar .icon{
  width:31px!important;height:31px!important;min-width:31px!important;
  flex:0 0 31px!important;padding:0!important;margin:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar .icon img{
  width:28px!important;height:28px!important;min-width:28px!important;
  object-fit:contain!important;
}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar .content{
  flex:1 1 auto!important;min-width:0!important;width:auto!important;
  height:auto!important;max-width:none!important;margin:0!important;
}
#near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar .content .title{
  font-family:'Geist','Inter',Arial,sans-serif!important;
  font-size:13px!important;line-height:1.3!important;
  letter-spacing:-.018em!important;
  white-space:normal!important;overflow-wrap:normal!important;
  width:auto!important;height:auto!important;max-width:none!important;
  color:#243229!important;
}
#near-wallet-selector-modal .nws-modal .modal-right .wallet-home-wrapper,
#near-wallet-selector-modal .nws-modal .modal-right .wallet-info-wrapper{
  border-radius:2px!important;background:#f8f7f2!important;
}
#near-wallet-selector-modal .nws-modal .modal-right .info{
  justify-items:start!important;text-align:left!important;
  gap:12px!important;padding:27px!important;
  max-width:320px;
}
#near-wallet-selector-modal .nws-modal .modal-right .info::before{
  content:"NEAR  /  TESTNET";display:block;
  font:760 10px/1.2 'Geist','Inter',Arial,sans-serif;
  letter-spacing:.1em;color:#845136;
  border-bottom:1px solid #bdc4bb;padding-bottom:15px;width:100%;
}
#near-wallet-selector-modal .nws-modal .modal-right .info p{color:#39473c!important;line-height:1.55!important}
@media(max-width:700px){
 #near-wallet-selector-modal .nws-modal{flex-direction:column!important;min-height:0!important}
 #near-wallet-selector-modal .nws-modal .modal-left{
  width:100%!important;flex:auto!important;height:auto!important;min-height:0!important;
  padding:18px 20px 22px!important;border-right:0!important;border-bottom:1px solid #b4bdb3!important;
 }
 #near-wallet-selector-modal .nws-modal .modal-right{
  width:100%!important;flex:auto!important;min-height:150px!important;
  padding:9px!important;
 }
 #near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 #near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar{min-height:70px!important;gap:8px!important;padding:12px!important}
 #near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar .icon{width:22px!important;height:22px!important;min-width:22px!important;flex-basis:22px!important}
 #near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar .icon img{width:21px!important;height:21px!important;min-width:21px!important}
 #near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list .single-wallet.sidebar .content .title{font-size:11px!important}
 #near-wallet-selector-modal .nws-modal .modal-right .info{gap:6px!important;padding:14px!important}
 #near-wallet-selector-modal .nws-modal .modal-right .info::before{padding-bottom:9px}
}
@media(max-width:350px){
 #near-wallet-selector-modal .nws-modal .wallet-options-wrapper .options-list{grid-template-columns:1fr!important}
}

/* Remove the upstream nested 28px gutters that squeezed copy to 62px. */
#near-wallet-selector-modal .nws-modal .modal-right .wallet-info-wrapper{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  padding:0!important;
}
#near-wallet-selector-modal .nws-modal .modal-right .info{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  max-width:none!important;
  grid-template-columns:minmax(0,1fr)!important;
  padding:clamp(22px,2.3vw,35px)!important;
}
#near-wallet-selector-modal .nws-modal .modal-right .info p{
  max-width:270px!important;line-height:1.5!important;
}
@media(max-width:700px){
 #near-wallet-selector-modal .nws-modal .modal-right .info{padding:15px!important}
}
