.deposit-modal-open { overflow: hidden; }
.deposit-dialog {
  width: min(700px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 1px solid #b7dcf8;
  border-radius: 24px;
  color: #113761;
  background: linear-gradient(150deg, #fbfdff, #edf5ff);
  box-shadow: 0 24px 85px #031d4e70;
}
.deposit-dialog::-webkit-scrollbar { display: none; }
.deposit-dialog::backdrop { background: #031b3e99; backdrop-filter: blur(7px); }
.deposit-dialog svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deposit-heading { padding: 20px 22px 16px; color: #fff; background: linear-gradient(135deg, transparent 71%, #4da4e81c 71% 78%, transparent 78% 83%, #4da4e812 83% 90%, transparent 90%), radial-gradient(ellipse at 0 0, #2788d660, transparent 75%), linear-gradient(115deg, #104d91, #072952 85%); }
.deposit-heading-row { display: flex; align-items: center; gap: 12px; }
.deposit-heading-art { flex: 0 0 44px; object-fit: contain; filter: drop-shadow(0 3px 5px #031b3c4d); }
.deposit-dialog .deposit-heading h2 { margin: 0; color: #fff; font-size: 23px; line-height: 1.25; }
.deposit-heading p { margin: 4px 0 0; color: #bedcf6; font-size: 12px; }
.deposit-close { display: grid; place-items: center; flex: 0 0 34px; height: 34px; margin-inline-start: auto; padding: 0; align-self: flex-start; border: 1px solid #a2d5ff66; border-radius: 50%; color: #e5f4ff; background: #ffffff0b; font-size: 26px; line-height: 1; }
.deposit-close:hover { background: #ffffff22; }
.deposit-wallet { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #b9e0ff30; }
.deposit-wallet > span:first-child { color: #cae1f5; font-size: 11px; }
.deposit-wallet strong { display: inline-flex; align-items: center; gap: 6px; font: 800 25px/1.1 Tahoma, sans-serif; font-variant-numeric: tabular-nums; }
.deposit-wallet strong > span:first-child { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #fff; background: linear-gradient(#84db2c, #268e1b); box-shadow: inset 0 1px 1px #c4ff7b96, 0 0 5px #3fba466d; font-size: 15px; font-weight: 900; }
#deposit-refresh { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; color: #d2ebff; background: #e3f4ff12; }
.deposit-minimum { margin-inline-start: auto; padding: 5px 9px; border: 1px solid #ffe4a341; border-radius: 20px; color: #ffe6a5; background: #ecc0610d; font-size: 10px; white-space: nowrap; }
.deposit-content { padding: 17px 19px 13px; }
.deposit-fields { display: grid; grid-template-columns: 1.08fr 1fr; gap: 12px; align-items: stretch; }
.deposit-bank-card, .deposit-amount-card { min-width: 0; padding: 15px; border: 1px solid #c5ddf2; border-radius: 18px; background: #fff; box-shadow: inset 0 1px #fff, 0 4px 12px #0d467b0b; }
.deposit-bank-card { background: radial-gradient(ellipse at 0 0, #e1f1ff, transparent 80%), linear-gradient(145deg, #f8fcff, #edf5ff); }
.deposit-section-label, .deposit-amount-card > label.deposit-section-label { display: flex; align-items: center; gap: 7px; margin: 0 0 13px; color: #294f77; font-size: 12px; font-weight: 750; line-height: 1.4; }
.deposit-section-number { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid #b4d9f5; border-radius: 8px; color: #0874bb; background: #e4f2ff; font: 800 10px/1 Tahoma, sans-serif; }
.deposit-receipt-section { margin-top: 16px; }
.deposit-bank-heading { display: flex; align-items: center; gap: 10px; }
.deposit-bank-heading img { flex: 0 0 43px; padding: 7px; border-radius: 12px; background: #4e2e7f; }
.deposit-bank-heading span { color: #7990ab; font-size: 9px; letter-spacing: .9px; }
.deposit-bank-heading h3 { margin: 3px 0 0; font-size: 13px; line-height: 1.3; }
.deposit-account-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-top: 14px; }
.deposit-account-number { color: #0b4e91; font-size: 23px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; user-select: all; }
.deposit-copy { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 33px; padding: 5px 8px; border: 1px solid #b2d4ef; border-radius: 9px; color: #1266ab; background: #fff; box-shadow: 0 2px 5px #17538c0a; font-size: 10px; font-weight: 700; white-space: nowrap; }
.deposit-copy svg { width: 14px; height: 14px; }
.deposit-copy:hover { background: #d5eaff; }
.deposit-account-owner { margin-top: 10px; color: #254f76; font-size: 12px; font-weight: 700; }
.deposit-account-owner span { margin-inline-end: 6px; color: #8096ab; font-size: 10px; font-weight: 400; }
.deposit-inline-status { margin-top: 4px; color: #17714b; font-size: 10px; }
.deposit-inline-status:empty { display: none; }
.deposit-amount-card > label { color: #527291; font-size: 11px; font-weight: 700; }
.deposit-amount-field { display: flex; align-items: center; gap: 5px; min-height: 61px; margin-block: 5px 12px; border-bottom: 1px solid #d8e7f5; }
.deposit-amount-field > span:first-child { color: #3792d1; font-size: 21px; font-weight: 700; }
.deposit-amount-field > span:nth-of-type(2) { color: #8aa0b5; font-size: 10px; }
.deposit-amount-field input { min-width: 0; width: 100%; padding: 4px; border: 0; color: #0b4d8d; background: transparent; font: 800 31px/1.2 Tahoma, sans-serif; font-variant-numeric: tabular-nums; }
.deposit-amount-field input::placeholder { color: #abc1d4; }
.deposit-amount-field input:focus { outline: none; }
.deposit-amount-field:focus-within { border-bottom-color: #168bdd; box-shadow: 0 2px 0 #168bdd; }
.deposit-amount-field:has([aria-invalid="true"]) { border-bottom-color: #ca455d; }
#deposit-reset-amount { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; padding: 0; border: 0; border-radius: 8px; color: #7193b2; background: #eef5fc; font-size: 19px; }
.deposit-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.deposit-presets button { min-height: 35px; padding: 4px 2px; border: 1px solid #c4dcef; border-radius: 9px; color: #426e96; background: #f5faff; font: 700 11px/1.2 Tahoma, sans-serif; }
.deposit-presets button:hover { border-color: #65afe3; background: #e7f4ff; }
.deposit-presets button[aria-pressed="true"] { border-color: #5fa8dc; color: #fff; background: linear-gradient(150deg, #1488d5, #0a5ca8); box-shadow: 0 3px 7px #0c6bb92b; }
.deposit-field-help { margin-top: 8px; color: #8a9fb4; font-size: 9px; }
.deposit-source-note { display: flex; align-items: flex-start; gap: 8px; margin-block: 12px 0; padding: 10px 12px; border: 1px solid #d3e7f7; border-radius: 12px; color: #527697; background: #eaf5ff; font-size: 11px; line-height: 1.5; }
.deposit-source-note svg { width: 17px; height: 17px; color: #168bd2; }
.deposit-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 47px; padding: 10px 14px; border: 1px solid #56a7de; border-radius: 13px; color: #fff; background: linear-gradient(115deg, #147ecc, #0a4c96); box-shadow: inset 0 1px #ceeeff59, 0 6px 15px #1265a726; font-size: 14px; font-weight: 800; }
.deposit-primary:hover { filter: brightness(1.06); }
.deposit-primary:disabled { cursor: default; opacity: 1; color: #f7fbff; border-color: #bad2e4; background: #b6cfe2; filter: none; box-shadow: inset 0 1px #ffffff38; }
.deposit-dropzone { margin-bottom: 14px; border: 1px dashed #8fc2e7; border-radius: 15px; background: linear-gradient(125deg, #f8fcff, #edf6ff); }
.deposit-dropzone.is-dragover { border-color: #117ac7; background: #e2f2ff; }
.deposit-pick-slip { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; min-height: 115px; padding: 19px; border: 0; border-radius: inherit; color: #517b9f; background: transparent; }
.deposit-upload-symbol { display: grid; place-items: center; flex: 0 0 47px; height: 47px; border: 1px solid #c4e0f6; border-radius: 15px; color: #1689d3; background: #e1f1ff; }
.deposit-upload-symbol > svg { width: 24px; height: 24px; }
.deposit-upload-copy { display: grid; gap: 6px; text-align: left; }
.deposit-upload-copy > span { color: #7793ad; font-size: 11px; }
.deposit-file-action { margin-inline-start: 10px; padding: 8px 14px; border: 1px solid #b3d5ee; border-radius: 9px; color: #166aa9; background: #fff; font-size: 11px; font-weight: 700; }
.deposit-pick-slip strong { color: #1d639c; font-size: 13px; }
.deposit-pick-slip small { color: #96aabd; font-size: 10px; }
.deposit-slip-preview { display: flex; align-items: center; gap: 12px; min-height: 132px; padding: 12px; }
.deposit-slip-preview > img { flex: 0 0 76px; width: 76px; height: 88px; border: 1px solid #cee1f2; border-radius: 8px; background: #fff; object-fit: contain; }
.deposit-slip-preview > div { min-width: 0; flex: 1; }
.deposit-slip-preview strong { color: #1d6d9e; font-size: 12px; }
.deposit-slip-preview p { margin: 5px 0; color: #7890a7; overflow-wrap: anywhere; font-size: 10px; }
#deposit-replace-slip { padding: 4px 0; border: 0; color: #0874bf; background: transparent; font-size: 11px; font-weight: 700; }
#deposit-remove-slip { align-self: flex-start; flex: 0 0 29px; height: 29px; padding: 0; border: 1px solid #d4e2ef; border-radius: 50%; color: #8c6b79; background: #fff; font-size: 21px; }
.deposit-error { margin: 7px 0 10px; color: #bb3650; font-size: 11px; line-height: 1.5; }
.deposit-submit-help { margin-top: 7px; color: #7892ac; text-align: center; font-size: 10px; }
.deposit-demo-note { margin-top: 13px; color: #8ba0b4; text-align: center; font-size: 10px; }
.deposit-result { padding: 16px 8px 5px; text-align: center; }
.deposit-result-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 13px; border: 1px solid #a5ddc5; border-radius: 50%; color: #188a5a; background: #e2f7ed; font-size: 31px; }
.deposit-result h3 { margin: 0 0 13px; color: #154d80; font-size: 20px; }
#deposit-result-amount { color: #0d6dae; font: 800 30px/1.2 Tahoma, sans-serif; }
.deposit-result p { margin: 14px 0 22px; color: #7690a9; font-size: 12px; }
.deposit-dialog :focus-visible { outline: 2px solid #1385cf; outline-offset: 3px; }
@media (max-width: 570px) {
  .deposit-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); border-radius: 20px; }
  .deposit-heading { padding: 15px 15px 12px; }
  .deposit-heading-art { width: 37px; height: 37px; flex-basis: 37px; }
  .deposit-dialog .deposit-heading h2 { font-size: 21px; }
  .deposit-heading p { font-size: 10px; }
  .deposit-wallet { gap: 7px; }
  .deposit-wallet strong { font-size: 23px; }
  .deposit-minimum { padding-inline: 7px; font-size: 9px; }
  .deposit-content { padding: 13px; }
  .deposit-fields { grid-template-columns: 1fr; gap: 10px; }
  .deposit-account-row { flex-wrap: nowrap; justify-content: space-between; }
  .deposit-account-number { font-size: clamp(20px, 6vw, 25px); }
  .deposit-bank-heading h3 { font-size: 14px; }
  .deposit-amount-card, .deposit-bank-card { padding: 12px; }
  .deposit-inline-status { margin-bottom: 0; }
  .deposit-amount-field { min-height: 47px; margin-block: 4px 8px; }
  .deposit-amount-field input { font-size: 29px; }
  .deposit-field-help { margin-top: 6px; }
  .deposit-section-label, .deposit-amount-card > label.deposit-section-label { margin-bottom: 11px; }
  .deposit-pick-slip { gap: 10px; min-height: 119px; padding: 14px; }
  .deposit-upload-symbol { flex-basis: 38px; height: 38px; border-radius: 12px; }
  .deposit-upload-copy > span { font-size: 10px; line-height: 1.5; }
  .deposit-pick-slip small { font-size: 9px; }
  .deposit-file-action { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .deposit-primary, .deposit-copy { transition: filter .15s, background-color .15s; }
  #deposit-refresh.is-refreshing svg { animation: deposit-refresh-turn .45s linear; }
  @keyframes deposit-refresh-turn { to { transform: rotate(360deg); } }
}
