/* Wallet dropdown presentation only. Uses the active WinBet design tokens. */
html body .currency-dropdown[aria-label="Currency selector"] {
  inline-size: min(360px, calc(100vw - 24px)) !important;
  block-size: auto !important;
  max-block-size: min(430px, calc(100dvh - 88px)) !important;
  border-color: var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--wb-bg) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .035) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body .currency-dropdown[aria-label="Currency selector"]::before {
  background: var(--wb-bg) !important;
  border-color: var(--line) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-search {
  min-block-size: 40px !important;
  margin: 10px !important;
  padding-inline: 11px !important;
  gap: 8px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-input) !important;
  box-shadow: none !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-search:focus-within {
  border-color: var(--active-2) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--active-2) 28%, transparent) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-search .icon-mark {
  inline-size: 17px !important;
  block-size: 17px !important;
  color: var(--muted) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-search input {
  font-size: 14px !important;
  line-height: 1.2 !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-dropdown__scroll {
  flex: 1 1 auto !important;
  min-block-size: 0 !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: var(--active-2) var(--wb-bg);
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-dropdown__scroll::-webkit-scrollbar {
  inline-size: 3px;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-dropdown__scroll::-webkit-scrollbar-track {
  background: var(--wb-bg);
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-dropdown__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--active-2);
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-section h3 {
  min-block-size: 28px !important;
  padding: 7px 12px !important;
  border-block: 1px solid color-mix(in srgb, var(--line) 62%, transparent) !important;
  background: var(--wb-bg-soft) !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-section h3 small {
  font-size: 9px !important;
  color: var(--faint) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-row {
  min-block-size: 52px !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  gap: 9px !important;
  padding: 7px 12px !important;
  border-block-end: 1px solid color-mix(in srgb, var(--line) 48%, transparent) !important;
  background: transparent !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-row:hover,
html body .currency-dropdown[aria-label="Currency selector"] .currency-row:focus-visible {
  background: color-mix(in srgb, var(--wb-surface) 76%, var(--wb-bg)) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-row.active {
  border-inline-start: 3px solid var(--active-2) !important;
  padding-inline-start: 9px !important;
  background: color-mix(in srgb, var(--active-2) 12%, var(--wb-bg)) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-badge {
  inline-size: 32px !important;
  block-size: 32px !important;
  min-inline-size: 32px !important;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .12) !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-row.active .currency-badge {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--active-2) 34%, transparent), inset 0 1px rgba(255, 255, 255, .16) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-code {
  gap: 1px !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-code strong,
html body .currency-dropdown[aria-label="Currency selector"] .currency-values strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-code small {
  max-inline-size: 142px;
  overflow: hidden;
  color: var(--muted) !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-values {
  gap: 0 !important;
  text-align: end !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-values small,
html body .currency-dropdown[aria-label="Currency selector"] .currency-estimate-note,
html body .currency-dropdown[aria-label="Currency selector"] .currency-actions__disabled {
  display: none !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-row.is-unavailable {
  display: none !important;
}

html body .currency-dropdown[aria-label="Currency selector"][data-wallet-filtering="true"] .currency-row.is-unavailable,
html body .currency-dropdown[aria-label="Currency selector"] .currency-section[data-unavailable-expanded="true"] .currency-row.is-unavailable {
  display: grid !important;
  opacity: .46 !important;
  filter: saturate(.35);
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-unavailable-toggle {
  inline-size: 100%;
  min-block-size: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  border: 0;
  border-block-end: 1px solid color-mix(in srgb, var(--line) 48%, transparent);
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-unavailable-toggle:hover,
html body .currency-dropdown[aria-label="Currency selector"] .currency-unavailable-toggle:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--wb-surface) 60%, var(--wb-bg));
}

html body .currency-dropdown[aria-label="Currency selector"][data-wallet-filtering="true"] .currency-unavailable-toggle {
  display: none !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-actions {
  min-block-size: 42px !important;
  grid-template-columns: 1fr !important;
  border-block-start: 1px solid var(--line) !important;
  background: var(--wb-bg-soft) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-actions[hidden] {
  display: none !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-actions button:not(:disabled) {
  min-block-size: 42px !important;
  padding: 7px 12px !important;
  color: var(--text) !important;
  font-size: 12px !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-actions button:not(:disabled):hover,
html body .currency-dropdown[aria-label="Currency selector"] .currency-actions button:not(:disabled):focus-visible {
  background: color-mix(in srgb, var(--active-2) 14%, var(--wb-bg-soft)) !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-actions .icon-mark {
  inline-size: 16px !important;
  block-size: 16px !important;
  color: var(--active-2) !important;
}

@media (max-width: 760px) {
  html body .topbar[data-wallet-balance-open="true"] .currency-dropdown[aria-label="Currency selector"] {
    inset: 68px 8px auto 8px !important;
    inline-size: auto !important;
    max-block-size: min(410px, calc(100dvh - 84px)) !important;
    padding-block-start: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg) !important;
  }

  html body .currency-dropdown[aria-label="Currency selector"]::before {
    display: none !important;
  }

  html body .currency-dropdown[aria-label="Currency selector"] .currency-row {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    min-block-size: 50px !important;
    padding: 7px 11px !important;
  }

  html body .currency-dropdown[aria-label="Currency selector"] .currency-row > .currency-badge {
    grid-row: auto !important;
  }

  html body .currency-dropdown[aria-label="Currency selector"] :is(.currency-code, .currency-values) {
    grid-column: auto !important;
    align-items: initial !important;
  }

  html body .currency-dropdown[aria-label="Currency selector"] .currency-values {
    align-items: flex-end !important;
    text-align: end !important;
  }
}

@media (forced-colors: active) {
  html body .currency-dropdown[aria-label="Currency selector"] .currency-row.active {
    border-inline-start-color: Highlight !important;
  }
}
