/* Global Nice Select harmonization (frontend + backend)
   - Targets `.site-nice-select` instances to avoid changing unrelated `.nice-select` usage.
   - Fixes grey/low-contrast dropdown lists in forms (e.g., deposit gateway selector).
*/

.site-nice-select.nice-select {
  width: 100%;
  min-height: 44px;
  height: auto;
  line-height: 44px;
  border-radius: 12px !important;
  background: #ffffff;
  color: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.site-nice-select.nice-select:hover {
  border-color: rgba(15, 23, 42, 0.22);
}

.site-nice-select.nice-select:active,
.site-nice-select.nice-select.open,
.site-nice-select.nice-select:focus {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.site-nice-select.nice-select:after {
  border-bottom: 2px solid rgba(15, 23, 42, 0.55);
  border-right: 2px solid rgba(15, 23, 42, 0.55);
}

.site-nice-select.nice-select .list {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  padding: 6px 0;
  max-height: 320px;
  overflow: auto;
}

.site-nice-select.nice-select .option {
  background: transparent;
  color: rgba(15, 23, 42, 0.90);
  font-weight: 650;
}

.site-nice-select.nice-select .option:hover,
.site-nice-select.nice-select .option.focus,
.site-nice-select.nice-select .option.selected.focus {
  background: rgba(34, 197, 94, 0.12);
}

.site-nice-select.nice-select .option.selected {
  font-weight: 850;
}

.site-nice-select.nice-select .option.disabled {
  color: rgba(15, 23, 42, 0.42);
}

/* Dark theme */
body.dark-theme .site-nice-select.nice-select {
  background: rgba(15, 23, 42, 0.88);
  color: rgba(226, 232, 240, 0.92);
  border-color: rgba(226, 232, 240, 0.10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

body.dark-theme .site-nice-select.nice-select:after {
  border-bottom: 2px solid rgba(226, 232, 240, 0.65);
  border-right: 2px solid rgba(226, 232, 240, 0.65);
}

body.dark-theme .site-nice-select.nice-select .list {
  background: #0b1220;
  border-color: rgba(226, 232, 240, 0.10);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

body.dark-theme .site-nice-select.nice-select .option {
  color: rgba(226, 232, 240, 0.92);
}

body.dark-theme .site-nice-select.nice-select .option:hover,
body.dark-theme .site-nice-select.nice-select .option.focus,
body.dark-theme .site-nice-select.nice-select .option.selected.focus {
  background: rgba(79, 70, 229, 0.18);
}

body.dark-theme .site-nice-select.nice-select .option.disabled {
  color: rgba(226, 232, 240, 0.42);
}

