#deposit-dialog {
  position: fixed; inset: 0;
  width: min(448px, calc(100% - 40px)); max-width: none;
  max-height: calc(var(--pd-view-height, 100dvh) - 32px); margin: auto; padding: 0;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  color: #f6f6f6; background: linear-gradient(153deg, #2b2d30, #181a1d 43%, #111214 85%);
  border: 1px solid #484a4d; border-radius: 23px;
  box-shadow: inset 0 1px rgb(255 255 255 / 20%), inset 0 0 0 1px rgb(255 255 255 / 3%), 0 -4px 35px #0005, 0 26px 82px #000a;
}
#deposit-dialog::backdrop { background: rgb(0 0 0 / 60%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #deposit-dialog {
    background: radial-gradient(ellipse 95% 53% at 0% -18%, rgb(224 239 236 / 11%), transparent 75%), linear-gradient(153deg, rgb(38 40 43 / 89%), rgb(21 23 25 / 95%) 48%, rgb(14 15 17 / 98%));
    -webkit-backdrop-filter: blur(18px) saturate(115%); backdrop-filter: blur(18px) saturate(115%);
  }
}
html:has(#deposit-dialog[open]) { overflow: hidden; }
.pd-screen { padding: 22px 25px 24px; font-variant-numeric: tabular-nums; }
.pd-grip { display: none; }
.pd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 33px; }
.pd-head h2 { font-size: 24px; font-weight: 640; line-height: 1.16; letter-spacing: -.048em; }
.pd-head h2:focus { outline: 0; }
.pd-close {
  position: relative; display: grid; place-items: center; flex: 0 0 44px; height: 44px; margin: -4px -6px -4px 0;
  border-radius: 50%; color: #dddde1; isolation: isolate;
}
.pd-close::before { content: ''; position: absolute; z-index: -1; inset: 7px; border-radius: 50%; background: rgb(255 255 255 / 7%); box-shadow: inset 0 1px rgb(255 255 255 / 11%); }
.pd-close:hover::before { background: #424246; }
#deposit-dialog :is(button, a, input[type="radio"]):focus-visible { outline: 2px solid #f3f3f5; outline-offset: 2px; }
.pd-notice { margin: 4px 0 0; color: #bdbdc2; font-size: 13px; line-height: 1.4; }
.pd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pd-input { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 85px; cursor: text; }
.pd-amount-type { display: inline-flex; flex: none; align-items: baseline; color: #fbfbfc; font-size: clamp(48px, 16vw, 68px); font-weight: 560; line-height: 1.15; letter-spacing: -.067em; }
.pd-currency { color: #b5b5bd; margin-right: 3px; font-weight: 480; }
.pd-number { position: relative; display: inline-block; min-width: .62em; }
.pd-measure { display: block; padding-right: 3px; visibility: hidden; white-space: pre; }
.pd-number input {
  position: absolute; inset: 0; width: 100%; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0; border-radius: 0;
  color: inherit; caret-color: #f4f4f4; background: transparent; font: inherit; font-variant-numeric: inherit; letter-spacing: inherit;
}
.pd-number input:focus-visible { outline: 0; }
.pd-input:has(input:focus-visible) .pd-number { box-shadow: 0 1px #8d8d94; }
.pd-number input::placeholder { color: #89898e; }
.pd-presets { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 13px; }
.pd-presets button { min-width: 0; min-height: 44px; display: inline-flex; align-items: center; border-radius: 18px; }
.pd-presets button span { display: grid; place-items: center; min-width: 58px; min-height: 32px; padding: 0 11px; border: 1px solid #424245; border-radius: 18px; color: #d5d5da; background: #242427; font-weight: 540; font-size: 13px; line-height: 1; }
.pd-presets button:hover span { border-color: #747479; }
.pd-presets button[aria-pressed=true] span { color: #f9f9fa; border-color: #909095; background: #37373b; }
.pd-label,.pd-methods legend { display: block; width: 100%; margin: 0; padding: 0 0 7px; color: #c4c4ca; font-size: 13px; line-height: 1.4; font-weight: 570; }
.pd-methods { min-width: 0; padding: 0; border: 0; margin: 0; }
.pd-method-featured { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.pd-method-others { margin-top: 8px; }
.pd-method-row,.pd-method-summary { display: flex; align-items: center; gap: 11px; min-height: 49px; padding: 4px 3px 4px 0; }
.pd-method-row { border-bottom: 1px solid #303034; cursor: pointer; }
.pd-method-row:hover,.pd-method-row:has(input:focus-visible) { background: rgb(255 255 255 / 3%); }
.pd-method-featured .pd-method-row {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 10px; min-width: 0; min-height: 93px; padding: 12px 13px 11px;
  border: 1px solid rgb(220 229 229 / 19%); border-radius: 13px; background: linear-gradient(145deg,rgb(255 255 255 / 6%),rgb(255 255 255 / 2%));
  box-shadow: inset 0 1px rgb(255 255 255 / 5%);
}
.pd-method-featured .pd-method-row:hover { border-color: #7d7d84; }
.pd-method-featured .pd-method-row:has(input:checked) {
  background: linear-gradient(149deg, rgb(229 245 229 / 15%), rgb(224 237 226 / 7%) 46%, rgb(210 228 213 / 4%));
  border-color: rgb(220 240 219 / 54%);
  box-shadow: inset 0 1px rgb(255 255 255 / 20%), 0 3px 9px rgb(0 0 0 / 15%);
}
.pd-method-featured .pd-method-row:has(input:focus-visible) { outline: 2px solid #f1f1f3; outline-offset: 2px; }
.pd-method-featured .pd-method-row input { position: absolute; right: 11px; top: 11px; }
.pd-method-others .pd-method-row { min-height: 46px; }
.pd-method-others .pd-method-row:has(input:checked) {
  background: linear-gradient(92deg, rgb(228 240 227 / 8%), rgb(228 240 227 / 2%) 80%, transparent);
  box-shadow: inset 2px 0 rgb(216 236 208 / 70%); border-radius: 4px;
}
.pd-method-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 60px; height: 32px; color: #e1e1e5; }
.pd-mark { display: block; flex: none; width: 40px; height: 26px; object-fit: contain; }
.pd-mark-google-pay { width: 58px; height: 39px; }
.pd-mark-paypal,.pd-mark-visa,.pd-mark-mastercard { border-radius: 3px; }
.pd-mark-coinbase { width: 40px; height: 28px; padding: 2px 8px; border-radius: 4px; background: #fff; }
.pd-icon-card { gap: 3px; }
.pd-method-row .pd-icon-card img { width: 28px; height: 19px; }
.pd-method-featured .pd-method-icon { flex: 0 0 auto; width: auto; height: 23px; justify-content: flex-start; }
.pd-method-featured .pd-mark-apple-pay { width: 41px; height: 26px; }
.pd-method-featured .pd-mark-google-pay { margin-inline: -6px; }
.pd-method-featured .pd-icon-card { gap: 4px; }
.pd-method-featured .pd-icon-card img { width: 31px; height: 20px; }
.pd-method-text { display: grid; min-width: 0; gap: 2px; }
.pd-method-featured .pd-method-text { margin-top: auto; min-height: 31px; align-content: start; }
.pd-method-text strong { color: #f0f0f2; font-size: 15px; line-height: 1.22; font-weight: 540; letter-spacing: -.018em; }
.pd-method-text small { color: #a8a8b1; font-size: 12px; line-height: 1.15; }
.pd-method-text .pd-last-used { color: #d1d1d7; font-size: 11px; }
.pd-method-row input {
  appearance: none; position: relative; flex: 0 0 19px; width: 19px; height: 19px; margin: 0 0 0 auto; padding: 0;
  border: 1.5px solid #68686f; border-radius: 50%; background: transparent; cursor: pointer;
}
.pd-method-row input:checked { background: #e3f2d6; border-color: #e3f2d6; }
.pd-method-row input:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; transform: rotate(43deg); border: solid #1c1c1f; border-width: 0 1.8px 1.8px 0; }
.pd-projection,.pd-balances div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pd-projection { margin: 12px 0 11px; color: #aaaab2; font-size: 12px; line-height: 1.4; }
.pd-projection strong { color: #dedee3; font-weight: 560; font-size: 13px; overflow-wrap: anywhere; }
.pd-primary,.pd-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 5px 12px; border-radius: 13px; font-size: 15px; font-weight: 620; line-height: 1.3; letter-spacing: -.015em; }
.pd-primary { color: #141619; background: #f2f3f2; box-shadow: inset 0 1px #fff, 0 2px 6px #0003; }
.pd-primary:hover { background: white; }
.pd-secondary { min-height: 44px; margin-top: 3px; color: #c7c7ce; font-size: 13px; }
.pd-secondary:hover { color: white; }
.pd-error { color: #ffb0ab; font-size: 13px; line-height: 1.45; }
.pd-error:not(:empty) { margin: 3px 0 9px; }
.pd-summary,.pd-receipt-amount { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 23px 0 22px; }
.pd-summary strong,.pd-receipt-amount strong { min-width: 0; color: #fbfbfc; font-size: clamp(32px, 11vw, 48px); font-weight: 570; line-height: 1.1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.pd-method-summary { border-block: 1px solid #38383d; min-height: 57px; }
.pd-balances { display: grid; gap: 10px; margin: 17px 0 21px; padding: 0; }
.pd-balances dt { color: #b1b1b9; font-size: 13px; line-height: 1.45; }
.pd-balances dd { margin: 0; color: #ececef; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.pd-receipt-amount { margin-bottom: 7px; }
.pd-success-mark { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #ececee; color: #1a1a1c; }
.pd-success-mark svg { width: 18px; height: 18px; }
.pd-receipt-intro { margin: 0 0 23px; text-align: center; color: #bcbcc3; font-size: 13px; line-height: 1.45; }
@media (forced-colors: active) {
  .pd-method-row input { appearance: auto; }
  .pd-method-row input:checked::after { content: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes pd-enter { from { opacity: 0; transform: translateY(var(--pd-enter-distance, 5px)); } to { opacity: 1; transform: translateY(0); } }
  #deposit-dialog[open] { animation: pd-enter 160ms ease-out; }
  .pd-method-row,.pd-presets button span { transition: border-color 130ms ease-out, box-shadow 130ms ease-out; }
}
@media (prefers-reduced-transparency: reduce) {
  #deposit-dialog { background: #181a1c; -webkit-backdrop-filter: none; backdrop-filter: none; }
  #deposit-dialog::backdrop { background: #08090aea; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 760px) {
  #deposit-dialog {
    --pd-enter-distance: 14px;
    inset: auto 0 var(--pd-bottom, 0px); width: 100%; max-width: 100%;
    max-height: calc(var(--pd-view-height, 100dvh) - max(8px, env(safe-area-inset-top, 0px)));
    margin: 0; border-width: 1px 0 0; border-radius: 22px 22px 0 0;
    border-color: #383838; color: #f4f4f4;
    background: linear-gradient(180deg, #171717, #0b0b0b 32%); box-shadow: 0 -12px 40px #0006;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .pd-screen { max-width: 500px; margin: 0 auto; padding: 9px max(20px, env(safe-area-inset-right, 0px)) max(16px, calc(env(safe-area-inset-bottom, 0px) + 10px)) max(20px, env(safe-area-inset-left, 0px)); }
  .pd-grip { display: block; width: 32px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: #595959; }
  .pd-head h2 { font-weight: 610; letter-spacing: -.04em; }
  .pd-close::before { background: #252525; box-shadow: none; }
  .pd-notice { margin-top: 1px; color: #aaa; }
  .pd-input { height: 78px; }
  .pd-amount-type { color: #f8f8f8; font-size: clamp(47px, 14vw, 62px); font-weight: 540; letter-spacing: -.05em; }
  .pd-currency { color: #a5a5a5; font-weight: 440; }
  .pd-presets { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); width: min(100%, 350px); margin: 0 auto 15px; gap: 6px; }
  .pd-presets button { width: 100%; }
  .pd-presets button span { width: 100%; min-width: 0; min-height: 32px; padding: 0 5px; color: #c8c8c8; background: #1b1b1b; border-color: #333; border-radius: 8px; }
  .pd-presets button[aria-pressed=true] span { background: #eee; border-color: #eee; color: #101010; }
  .pd-methods legend,.pd-label { color: #a9a9a9; font-size: 12px; font-weight: 560; }
  .pd-method-featured { display: block; }
  .pd-method-others { margin: 0; }
  .pd-method-featured .pd-method-row,.pd-method-others .pd-method-row,.pd-method-summary {
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 50px; padding: 6px 1px;
    border: 0; border-bottom: 1px solid #292929; border-radius: 0; background: transparent; box-shadow: none;
  }
  .pd-method-featured .pd-method-row:has(input:checked),.pd-method-others .pd-method-row:has(input:checked) {
    background: transparent; border-color: #292929; border-radius: 0; box-shadow: none;
  }
  .pd-method-featured .pd-method-icon,.pd-method-others .pd-method-icon,.pd-method-summary .pd-method-icon {
    flex: 0 0 57px; height: 28px; justify-content: center;
  }
  .pd-method-featured .pd-method-text { min-height: 0; margin: 0; }
  .pd-method-featured .pd-icon-card { gap: 2px; }
  .pd-method-featured .pd-icon-card img { width: 27px; height: 18px; }
  .pd-method-text { gap: 2px; }
  .pd-method-text strong { font-size: 14px; font-weight: 555; color: #eee; }
  .pd-method-text small { color: #aaa; font-size: 12px; }
  .pd-method-featured .pd-method-row input { position: relative; inset: auto; }
  .pd-method-row input { width: 18px; height: 18px; flex-basis: 18px; border: 1px solid #636363; }
  .pd-method-row input:checked { background: #efefef; border-color: #efefef; }
  .pd-method-row input:checked::after { top: 2px; left: 5px; }
  .pd-method-summary { border-top: 1px solid #292929; }
  .pd-primary { border-radius: 11px; background: #f0f0ee; box-shadow: none; font-weight: 600; }
  .pd-projection { margin-block: 15px; color: #aaa; }
  .pd-projection strong { color: #eee; }
  .pd-summary,.pd-receipt-amount { margin-top: 30px; }
}
@media (max-height: 680px) and (max-width: 760px) {
  .pd-input { height: 62px; }
  .pd-amount-type { font-size: 48px; }
  .pd-presets { margin-bottom: 4px; }
  .pd-method-row { min-height: 44px; }
  .pd-method-others .pd-method-row { min-height: 44px; }
  .pd-method-featured .pd-method-row { min-height: 44px; }
  .pd-method-others { margin-top: 0; }
  .pd-grip { margin-bottom: 5px; }
}
@media (max-width: 350px) {
  .pd-screen { padding-inline: max(15px, env(safe-area-inset-left, 0px)) max(15px, env(safe-area-inset-right, 0px)); }
  .pd-method-icon { flex-basis: 57px; }
  .pd-presets { gap: 5px; }
}
