.nice-select {
  -webkit-tap-highlight-color: transparent;
  background-color: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0, 53, 102, 0.16);
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 54px;
  outline: none;
  padding: 16px 44px 16px 54px;
  position: relative;
  z-index: 3;
  text-align: left !important;
  transition: all 0.2s ease-in-out;
  user-select: none;
  white-space: nowrap;
  width: 100%;
  color: var(--header);
}

.nice-select:hover {
  border-color: rgba(0, 53, 102, 0.35);
}

.nice-select:active,
.nice-select:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 4px rgba(108, 87, 210, 0.12);
}

.nice-select.open {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 4px rgba(108, 87, 210, 0.12);
  z-index: 105;
}

.nice-select:after {
  border-bottom: 2px solid rgba(0, 53, 102, 0.55);
  border-right: 2px solid rgba(0, 53, 102, 0.55);
  content: "";
  display: block;
  height: 10px;
  margin-top: -5px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: rotate(45deg);
  transition: all 0.15s ease-in-out;
  width: 10px;
}

.nice-select.open:after {
  transform: rotate(-135deg);
}

.nice-select.open .list {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.nice-select.disabled {
  border-color: rgba(0, 53, 102, 0.2);
  color: rgba(0, 53, 102, 0.4);
  pointer-events: none;
}

.nice-select.disabled:after {
  border-color: rgba(0, 53, 102, 0.3);
}

.nice-select.wide {
  width: 100%;
}

.nice-select .list {
  background-color: var(--white);
  border: 1px solid rgba(0, 53, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 40px rgba(10, 25, 54, 0.12);
  box-sizing: border-box;
  display: none;
  margin-bottom: 4px;
  margin-top: 6px;
  opacity: 0;
  overflow: hidden;
  padding: 8px 0;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  transform: scale(0.9) translateY(-12px);
  transform-origin: 50% 0;
  transition: transform 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  width: 100%;
  z-index: 110;
}

.nice-select.open .list {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.nice-select .option {
  border-bottom: 1px solid rgba(0, 53, 102, 0.08);
  color: var(--header);
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
  list-style: none;
  min-height: 44px;
  outline: none;
  padding: 10px 18px;
  text-align: left;
  transition: all 0.2s ease;
}

.nice-select .option:last-child {
  border-bottom: none;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
  background-color: rgba(108, 87, 210, 0.12);
}

.nice-select .option.selected {
  font-weight: 600;
  color: var(--theme-color);
  background-color: rgba(108, 87, 210, 0.16);
}

.nice-select .option.disabled {
  background-color: transparent;
  color: rgba(0, 53, 102, 0.35);
  cursor: default;
}

.no-csspointerevents .nice-select .list {
  display: none;
}

.no-csspointerevents .nice-select.open .list {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .nice-select {
    background-color: #1b2744;
    border-color: rgba(255, 255, 255, 0.24);
    color: #f6f7ff;
  }

  .nice-select:after {
    border-color: rgba(246, 247, 255, 0.7);
  }

  .nice-select .list {
    background-color: #1f2f54;
    border-color: rgba(246, 247, 255, 0.16);
    box-shadow: 0 24px 48px rgba(2, 12, 28, 0.4);
  }

  .nice-select .option {
    color: #f6f7ff;
    border-bottom: 1px solid rgba(246, 247, 255, 0.08);
  }

  .nice-select .option:hover,
  .nice-select .option.focus,
  .nice-select .option.selected.focus {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .nice-select .option.selected {
    color: #b1c2ff;
    background-color: rgba(108, 87, 210, 0.28);
  }

  .nice-select .option.disabled {
    color: rgba(246, 247, 255, 0.35);
  }
}
