.deposit-bonus-choices { container-type: inline-size; color: var(--text); font: inherit; min-width: 0; }
.deposit-panel .wallet-deposit-grid[hidden], .deposit-panel .deposit-status[hidden] { display: none !important; }
.nav-notification-msg.nav-notification-welcome { white-space: pre-line; }
.bonus-choice-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.bonus-choice-header h3 { margin: 0; color: var(--soft); font-size: 15px; font-weight: 600; }
.bonus-choice-all { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; cursor: pointer; }
.bonus-choice-grid { --columns: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bonus-choice-grid[data-count="1"] { --columns: 1; justify-content: flex-start; }
.bonus-choice-grid[data-count="2"] { --columns: 2; justify-content: flex-start; }
.bonus-choice-grid[data-count="4"] { --columns: 4; }
.bonus-choice { box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; flex: 0 0 calc((100% - (var(--columns) - 1)*10px)/var(--columns)); min-width: 0; min-height: 78px; padding: 12px; border: 1px solid rgba(148,163,184,.14); border-radius: 10px; background: var(--bg); cursor: pointer; }
.bonus-choice-grid[data-count="1"] .bonus-choice { max-width: 260px; }
.bonus-choice-grid[data-count="2"] .bonus-choice { max-width: 320px; }
.bonus-choice.is-selected { border-color: rgba(129,180,232,.3); background: color-mix(in srgb, var(--bg) 94%, #81b4e8); }
.bonus-choice:has(input:disabled), .bonus-choice-all:has(input:disabled) { cursor: default; }
.bonus-choice:has(input:not(:disabled)):hover { border-color: #81a9d6; }
.bonus-choice-top, .bonus-choice-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.bonus-choice-name { color: var(--soft); font-size: 12px; font-weight: 500; line-height: 1.35; }
.bonus-choice-range { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bonus-choice-percent { flex-shrink: 0; color: #a2c7ef; font-size: 22px; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bonus-choice-percent small { margin-left: 1px; font-size: 13px; font-weight: 500; }
.bonus-choice-referral { cursor: default; }
.bonus-choice-referral .bonus-choice-percent { align-self: flex-end; }
.deposit-bonus-choices input[type=checkbox] { appearance: none; box-sizing: border-box; display: inline-grid; place-content: center; flex: 0 0 17px; width: 17px; height: 17px; margin: 0; border: 1px solid #52627a; border-radius: 5px; background: transparent; color: #101827; cursor: inherit; }
.deposit-bonus-choices input[type=checkbox]:checked, .deposit-bonus-choices input[type=checkbox]:indeterminate { background: #a2c7ef; border-color: #a2c7ef; }
.deposit-bonus-choices input[type=checkbox]:checked::after { content: ''; width: 7px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.deposit-bonus-choices input[type=checkbox]:indeterminate::after { content: ''; width: 8px; border-top: 2px solid currentColor; }
.deposit-bonus-choices input:disabled { opacity: .55; }
.deposit-bonus-choices :is(input,button):focus-visible { outline: 2px solid #a2c7ef; outline-offset: 3px; }
.bonus-choice-help, .bonus-choice-status { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.deposit-bonus-choices [data-bonus-status] { display: block; box-sizing: border-box; height: 36px; margin: 8px 0 0; }
.bonus-choice-terms { margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.bonus-choice-terms:hover { color: #a2c7ef; }
.bonus-choice-status.is-error { color: #e6b0a4; }
@container (max-width: 300px) { .deposit-bonus-choices [data-bonus-status] { height: 54px; } }
@container (max-width: 640px) {
  .bonus-choice-grid[data-count="4"], .bonus-choice-grid[data-count="6"] { --columns: 2; }
  .bonus-choice { gap: 8px; padding: 10px; }
  .bonus-choice-bottom { align-items: flex-start; flex-direction: column-reverse; }
  .bonus-choice-range { font-size: 11px; }
  .bonus-choice-grid[data-count="2"] .bonus-choice { max-width: none; }
  .bonus-choice-referral .bonus-choice-percent { align-self: flex-start; }
}

/* Shared compact layout for the navbar and full-wallet deposit dialogs. */
:is(.wallet-modal, .wallet-modal-box) .deposit-panel { gap: 8px; }
#depBox.deposit-panel { gap: 8px; }
.deposit-panel :is([data-deposit-choice], [data-deposit-details], [data-deposit-asset-field], [data-asset])[hidden] { display: none !important; }
.deposit-network-choice { display: grid; gap: 18px; padding-top: 6px; }
.deposit-choice-intro h3 { margin: 0; color: var(--soft); font-size: 18px; font-weight: 600; line-height: 1.4; }
.deposit-choice-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.deposit-network-options { display: grid; gap: 12px; }
.deposit-network-option { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px; border: 1px solid rgba(148,163,184,.2); border-radius: 12px; background: var(--bg); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.deposit-network-option:hover { border-color: rgba(129,180,232,.6); background: var(--panel); }
.deposit-network-option-bitcoin:hover { border-color: rgba(247,147,26,.6); }
.deposit-network-option[aria-disabled="true"] { opacity: .65; cursor: default; }
.deposit-network-option[aria-disabled="true"]:hover { border-color: rgba(148,163,184,.3); background: var(--bg); }
.deposit-network-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid rgba(148,163,184,.15); border-radius: 12px; background: var(--bg-soft); }
.deposit-network-icon img { display: block; width: 28px; height: 28px; object-fit: contain; }
.deposit-network-icon-bitcoin { border-color: rgba(247,147,26,.2); background: rgba(247,147,26,.08); color: #f5b566; font: 600 32px/1 var(--font-main); }
.deposit-network-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.deposit-network-name { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: var(--soft); font-size: 16px; font-weight: 650; line-height: 1.4; }
.deposit-network-badge { padding: 2px 6px; border-radius: 4px; background: rgba(98,213,140,.09); color: #9ddcbe; font-size: 10px; font-weight: 550; line-height: 1.6; }
.deposit-network-badge-muted { background: rgba(148,163,184,.1); color: var(--muted); }
.deposit-network-assets { color: #bbc5d4; font-size: 12px; font-weight: 550; line-height: 1.5; }
.deposit-network-description { color: var(--muted); font-size: 12px; line-height: 1.5; }
.deposit-network-arrow { flex: 0 0 18px; width: 18px; height: 18px; color: var(--muted); }
.deposit-choice-note { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.deposit-network-details { display: flex; flex-direction: column; gap: 10px; position: relative; }
.deposit-details-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding-bottom: 2px; }
.deposit-details-heading h3 { margin: 0; color: var(--soft); font-size: 15px; font-weight: 600; line-height: 1.5; }
.deposit-network-back { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; padding: 3px 5px 3px 0; border: 0; background: transparent; color: var(--muted); font: 500 12px/1.5 var(--font-main); cursor: pointer; }
.deposit-network-back svg { width: 18px; height: 18px; }
.deposit-network-back:hover { color: var(--soft); }
.deposit-network-option:focus-visible, .deposit-network-back:focus-visible { outline: 2px solid #a2c7ef; outline-offset: 3px; }
.deposit-panel > .wallet-field, .deposit-network-details > .wallet-field { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.deposit-panel [data-deposit-asset-field] > .deposit-asset-toggle { flex: 1; max-width: 340px; }
.deposit-panel .deposit-asset-toggle { padding: 3px; }
.deposit-panel .deposit-asset-button { min-height: 36px; padding-block: 6px; }
.deposit-panel .bonus-choice-header { margin-bottom: 6px; gap: 4px 12px; }
.deposit-panel .bonus-choice { display: grid; grid-template-columns: minmax(0, 1fr) 17px; align-items: center; min-height: 58px; padding: 8px; gap: 4px; }
.deposit-panel .bonus-choice-top { grid-column: 2; grid-row: 1; }
.deposit-panel .bonus-choice-name { display: none; }
.deposit-panel .bonus-choice-bottom { display: contents; }
.deposit-panel .bonus-choice-percent { grid-column: 1; grid-row: 1; font-size: 20px; }
.deposit-panel .bonus-choice-range { grid-column: 1 / -1; grid-row: 2; font-size: 11px; line-height: 1.35; }
.deposit-panel .deposit-bonus-choices [data-bonus-status] { height: 18px; margin: 4px 0 0; }
.deposit-panel .deposit-bonus-choices [data-bonus-status]:empty { display: none; height: auto; margin: 0; }
.deposit-panel .deposit-bonus-choices { margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(148,163,184,.12); }
.deposit-panel .deposit-bonus-choices:not(:has(.bonus-choice-grid)) .bonus-choice-header { margin-bottom: 0; }
.deposit-panel .deposit-bonus-choices:not(:has(.bonus-choice-grid)) .bonus-choice-help { margin-top: 4px; }
.deposit-panel .wallet-address-row { flex-wrap: nowrap; align-items: center; gap: 8px; padding: 6px 8px; }
.deposit-panel .wallet-address { flex: 1 1 0; }
.deposit-panel .wallet-address-row button { min-width: 62px; padding-inline: 10px; }
.deposit-panel .wallet-deposit-info { gap: 6px; }
.deposit-panel .deposit-detail { min-height: 0; font-size: 13px; line-height: 1.5; }
@media (min-width: 641px) {
  .deposit-panel .deposit-address-input { font-size: 12px; }
}
.deposit-bitcoin-warning { padding: 8px 10px; border: 1px solid rgba(231,178,93,.25); border-left: 3px solid #dba653; border-radius: 8px; background: rgba(231,178,93,.04); color: var(--muted); font-size: 12px; line-height: 1.45; }
.deposit-bitcoin-warning[hidden], .deposit-bitcoin-progress[hidden] { display: none !important; }
.deposit-bitcoin-warning > strong { display: block; color: #f0c27e; font-size: 13px; font-weight: 650; line-height: 1.4; }
.deposit-bitcoin-warning p { margin: 3px 0 0; }
.deposit-bitcoin-progress { padding-top: 5px; border-top: 1px solid rgba(231,178,93,.18); color: var(--text); overflow-wrap: anywhere; }
.deposit-panel[data-deposit-state="ready"] { position: relative; }
.deposit-panel[data-deposit-state="ready"] .wallet-deposit-info { padding-bottom: 0; }
.deposit-panel[data-deposit-state="ready"] .deposit-request { position: static; width: 100%; margin-top: 0; }
.deposit-panel[data-deposit-state="ready"]:has([data-bitcoin-warning]:not([hidden])) .deposit-status { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#depBox[data-deposit-state="ready"] .wallet-deposit-info { padding-bottom: 0; }
#depBox[data-deposit-state="ready"] .deposit-request { position: static; width: 100%; }
.wallet-modal:has(.wallet-tab-panel[data-tab-panel="deposit"]:not([hidden])) .wallet-modal-header { padding-bottom: 8px; }
.wallet-modal:has(.wallet-tab-panel[data-tab-panel="deposit"]:not([hidden])) .wallet-tab-nav { margin-top: 8px; }
.wallet-modal:has(.wallet-tab-panel[data-tab-panel="deposit"]:not([hidden])) .wallet-modal-title-row > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.wallet-modal:has(.wallet-tab-panel[data-tab-panel="deposit"]:not([hidden])) .wallet-modal-subtitle { margin-top: 0; }
.wallet-tab-panel[data-tab-panel="deposit"] > .wallet-footer-row { padding-top: 4px; }
/* Let deposit details and bonus choices use the space already available on
   screen; the modal's existing max-height keeps smaller viewports scrollable. */
.wallet-modal:has(.wallet-tab-panel[data-tab-panel="deposit"]:not([hidden]) .deposit-panel[data-deposit-state="ready"]) { height: auto; }
.wallet-modal:has(.wallet-tab-panel[data-tab-panel="deposit"]:not([hidden]) .deposit-panel[data-deposit-state="choosing"]),
.wallet-modal-box:has(#depBox[data-deposit-state="choosing"][style*="display: flex"]) { height: auto; }
.wallet-tab-panel[data-tab-panel="deposit"]:has(.deposit-panel[data-deposit-state="choosing"]) > .wallet-footer-row { margin-top: 18px; }
@media (min-width: 641px) and (max-height: 780px) {
  .deposit-panel .wallet-deposit-grid { grid-template-columns: 144px minmax(0, 1fr); }
  .deposit-panel :is(.wallet-qr-box, .wallet-qr-placeholder, .wallet-qr-img), #depBox #qrImg { width: 144px; height: 144px; }
}
@media (max-width: 640px) {
  .deposit-network-option { gap: 12px; padding: 14px; }
  .deposit-network-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 10px; }
  .deposit-network-icon img { width: 25px; height: 25px; }
  .deposit-network-arrow { flex-basis: 14px; width: 14px; height: 14px; }
  .deposit-panel .wallet-deposit-grid { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
  .deposit-panel :is(.wallet-qr-box, .wallet-qr-placeholder, .wallet-qr-img) { width: 128px; height: 128px; }
  #depBox #qrImg { width: 128px; height: 128px; }
  .deposit-panel .wallet-qr-meta { font-size: 12px; }
  .deposit-panel .wallet-label { font-size: 13px; }
  .deposit-panel .deposit-bonus-choices [data-bonus-status] { height: 36px; }
  .deposit-panel .wallet-address-row { gap: 4px; padding-inline: 4px; }
  .deposit-panel .wallet-address-row button { min-width: 44px; padding-inline: 5px; }
  .deposit-panel .deposit-detail { font-size: 12px; }
  .deposit-panel[data-deposit-state="ready"] .deposit-request { width: 100%; }
}
@media (max-width: 420px) {
  .deposit-panel .wallet-deposit-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .deposit-panel .wallet-deposit-qr { align-items: center; gap: 5px; }
  .deposit-panel .wallet-qr-meta { text-align: center; min-height: 0; font-size: 11px; }
  .deposit-panel .wallet-address-row { padding: 4px 8px; gap: 8px; }
  .deposit-panel .wallet-address-row button { min-width: 52px; }
  .deposit-panel .deposit-address-input, .wallet-modal-box .deposit-panel #addr { font-size: 12px; }
  .deposit-panel .wallet-deposit-info { gap: 5px; }
  .deposit-panel .deposit-bitcoin-warning { padding: 8px 10px; }
  .deposit-network-details { gap: 8px; }
}
@media (max-width: 640px) and (max-height: 740px) {
  :is(.wallet-modal, .wallet-modal-box) .deposit-panel, #depBox.deposit-panel { gap: 6px; }
  .deposit-panel .bonus-choice { min-height: 52px; padding: 6px; gap: 2px; }
  .deposit-panel .bonus-choice-header { margin-bottom: 4px; }
  .deposit-panel .wallet-address-row { padding-block: 4px; }
  .wallet-modal:has(.wallet-tab-panel[data-tab-panel="deposit"]:not([hidden])) .wallet-tab-btn { min-height: 36px; padding-block: 6px; }
  .wallet-tab-panel[data-tab-panel="deposit"] > .wallet-footer-row .btn { min-height: 34px; padding-block: 6px; }
}
@media (max-width: 380px) {
  .deposit-panel [data-deposit-asset-field] { flex-direction: column; align-items: stretch; gap: 4px; }
  .deposit-panel [data-deposit-asset-field] > .deposit-asset-toggle { width: 100%; }
  .deposit-network-option { gap: 10px; padding: 12px; }
  .deposit-network-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .deposit-network-icon img { width: 22px; height: 22px; }
  .deposit-network-icon-bitcoin { font-size: 26px; }
}
