.custom-select {
	--max-scroll: 4;
	--text: #bcbcbc;
	--border: #ebebeb;
	--borderActive: #ebebeb;
	--background: #fff;
	--arrow: #bcbcbc;
	--arrowActive: #fff;
	--listText: #656565;
	--listBackground: #fff;
	--listActive: #555334;
	--listTextActive: #fff;
	--listBorder: #ebebeb;
	--textFilled: #656565;
    width: 100%;
    position: relative;
}
.custom-select select {
  display: none;
}
.custom-select > span {
  cursor: pointer;
  font-size: .65em;
  font-weight: 500;
  height: 3.7em;
  font-family: "Roboto", sans-serif;
  padding: 1em 1.152em;
  border-radius: 0.768em;
  display: block;
  position: relative;
  color: var(--text);
  border: 0.096em solid var(--border);
  background: var(--background);
  transition: all 0.3s ease;
}
.custom-select > span:before, .custom-select > span:after {
  content: "";
  display: block;
  position: absolute;
  width: 0.768em;
  height: 0.1152em;
  border-radius: 0.096em;
  top: 50%;
  right: 1.152em;
  background: var(--arrow);
  transition: all 0.3s ease;
}
.custom-select > span:before {
  margin-right: .5em;
  transform: scale(0.96, 0.8) rotate(50deg);
}
.custom-select > span:after {
  transform: scale(0.96, 0.8) rotate(-50deg);
}
.custom-select ul {
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  max-height: calc(var(--max-scroll) * 30px);
  top: 27px;
  left: 0;
  z-index: 1;
  right: 0;
  background: var(--listBackground);
  border-radius: 0.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  transform-origin: 0 0;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.3s cubic-bezier(0.4, 0.6, 0.5, 1.32);
  transform: scale(0.8) translate(0, 4px);
  border: 1px solid var(--listBorder);
}
.custom-select ul li {
  opacity: 0;
  transform: translate(6px, 0);
  transition: all 0.3s ease;
}
.custom-select.selectDropdown ul li a {
  cursor: pointer;
  display: block;  
  font-size: .65em;
  padding: 0.65em 0.75em;
  color: var(--listText);
  text-decoration: none;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
}
.custom-select.selectDropdown  ul li a:hover {
  color: var(--listActive);
}
.custom-select ul li.active a {
  color: var(--listTextActive) !important;
  background: var(--listActive);
}
.custom-select ul li.active a:before, .custom-select ul li.active a:after {
  --scale: .6;
  content: "";
  display: block;
  width: 10px;
  height: 2px;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  opacity: 0;
  background: var(--arrowActive);
  transition: all 0.2s ease;
}
.custom-select ul li.active a:before {
  transform: rotate(45deg) scale(var(--scale));
}
.custom-select ul li.active a:after {
  transform: rotate(-45deg) scale(var(--scale));
}
.custom-select ul li.active a:hover:before, .custom-select ul li.active a:hover:after {
  --scale: .9;
  opacity: 1;
}
.custom-select ul li:first-child a {
  border-radius: 0.25rem 0.25rem 0 0;
}
.custom-select ul li:last-child a {
  border-radius: 0 0 0.25rem 0.25rem;
}
.custom-select.filled > span {
  color: var(--textFilled);
}
.custom-select.open > span {
  border-color: var(--borderActive);
}
.custom-select.open > span:before, .custom-select.open > span:after {
  background: var(--arrowActive);
}
.custom-select.open > span:before {
  transform: scale(0.96, 0.8) rotate(-50deg);
}
.custom-select.open > span:after {
  transform: scale(0.96, 0.8) rotate(50deg);
}
.custom-select.open ul {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translate(0, 12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.4, 0.6, 0.5, 1.32);
}
.custom-select.open ul li {
  opacity: 1;
  transform: translate(0, 0);
}
.custom-select.open ul li:nth-child(1) {
  transition-delay: 80ms;
}
.custom-select.open ul li:nth-child(2) {
  transition-delay: 160ms;
}
.custom-select.open ul li:nth-child(3) {
  transition-delay: 240ms;
}
.custom-select.open ul li:nth-child(4) {
  transition-delay: 320ms;
}
.custom-select.open ul li:nth-child(5) {
  transition-delay: 400ms;
}
.custom-select.open ul li:nth-child(6) {
  transition-delay: 480ms;
}
.custom-select.open ul li:nth-child(7) {
  transition-delay: 560ms;
}
.custom-select.open ul li:nth-child(8) {
  transition-delay: 640ms;
}
.custom-select.open ul li:nth-child(9) {
  transition-delay: 720ms;
}
.custom-select.open ul li:nth-child(10) {
  transition-delay: 800ms;
}

select {
  --text: #3F4656;
  --border: #2F3545;
  --background: #151924;
}

@media (min-width: 3840px) {
	.custom-select ul {
		max-height: calc(var(--max-scroll) * 2em);
	}
	.custom-select > span {
		font-size: .85em;
	}
}