@charset "UTF-8";
.choices {
  padding: 0;
  margin: 0;
  width: 125px;
  height: 100%;
  border: none; /* Убрать границу */
}
@media (max-width: 850px) {
  .choices {
    margin-left: 4px;
    margin-right: 4px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: calc(100% - 8px);
    margin-bottom: 0;
    border-radius: 10px;
    box-shadow: 0 0 1px 2px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    will-change: height;
  }
  .choices:has(#rating-sorting), .choices:has(#genre-sorting) {
    display: none;
  }
  .choices.is-open {
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
  }
}

.choices__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: white;
  border: none;
  z-index: 2;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 125px;
}
@media (max-width: 850px) {
  .choices__inner {
    transition: border-radius 0.2s ease;
    width: 100%;
    border-radius: 10px;
    text-align: start;
  }
  .is-open .choices__inner {
    border-radius: 10px 10px 0 0;
  }
}

.choices__list--single {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 5px;
  width: 100%;
  height: 100%;
  text-align: start;
}

.choices__list {
  width: 125px;
}
@media (max-width: 850px) {
  .choices__list {
    width: 100%;
    border-radius: 0 0 10px 10px;
    text-align: start;
  }
}

.choices__placeholder {
  opacity: 1;
}

@media (max-width: 850px) {
  .choices__list--dropdown .choices__placeholder {
    width: 100%;
  }
}

.choices__list--dropdown {
  max-height: 180px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  top: calc(100% - 5px);
  padding-top: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Добавить тень */
  border: none; /* Убрать границу */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, visibility 0.3s ease;
}
.choices__list--dropdown .choices__list {
  max-height: none;
}
@media (max-width: 850px) {
  .choices__list--dropdown {
    position: relative;
    top: 0;
    box-shadow: none;
    border-top: 1px solid #eee;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding-top: 0;
    max-height: 0;
    display: block !important;
    transition: max-height 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    overflow-y: scroll;
    border-top: none;
  }
  .is-open .choices__list--dropdown {
    max-height: 180px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
  }
}

.choices__list--dropdown .choices__item--selectable {
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.choices[data-type*=select-one] .choices__inner {
  padding-bottom: 0;
}

/*Стили для правой стрелки в закрытом состоянии*/
.choices[data-type*=select-one]:after {
  height: 8px;
  width: 8px;
  z-index: 3;
  top: 40%;
  border: 1px solid black;
  border-width: 0 0 1px 1px;
  transform: rotate(-45deg);
}
@media (max-width: 850px) {
  .choices[data-type*=select-one]:after {
    transition: transform 0.3s ease, top 0.3s ease;
  }
}

/*Стили для правой стрелки в открытом состоянии*/
.choices[data-type*=select-one].is-open:after {
  top: 60%;
  border: 1px solid black;
  border-width: 1px 1px 0 0;
}
@media (max-width: 850px) {
  .choices[data-type*=select-one].is-open:after {
    transform: rotate(315deg);
    top: 11%;
  }
}

.is-focused .choices__inner,
.is-open .choices__inner {
  border: none;
}

.is-open .choices__inner {
  border-radius: 2px 2px 0 0;
  border-width: 0;
}

.choices__list--dropdown .choices__item {
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.choices__list--dropdown .choices__item > * {
  pointer-events: none;
}

/* Когда список открыт */
.is-open .choices__list--dropdown {
  max-height: 180px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.choices__list--single .choices__item--selectable {
  display: flex;
  flex-direction: row;
  align-items: center;
}
