/* Фильтр каталога направлений (блок directions, правила d-filter*) перенесён из общего local/templates/muiv/css/style.css.
   Подключает catalog.section.list/directions-v3/filter_directions_sections.php (Asset::addCss, на каждом хите). */
.d-filter {
  margin-bottom: 30px;
}

.d-filter__close button {
  font-size: 14px;
  display: flex;
  padding: 17px 50px 17px 10px;
  color: #4f6a84;
  border: none;
  background: none;
  align-items: center;
}

.d-filter__close button svg {
  display: block;
  width: 17px;
  height: 11px;
  margin-right: 12px;
}

@media screen and (min-width: 992px) {
  .d-filter__close {
    display: none;
  }
}

.d-filter .d-filter__offcanvas-open {
  width: 100%;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__offcanvas-open {
    display: none;
  }
}

.d-filter .offcanvas-lg {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media screen and (min-width: 992px) {
  .d-filter .offcanvas-lg {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }
}

.d-filter .d-filter__container {
  padding: 0;
  scrollbar-gutter: stable;
}

.d-filter .d-filter__container::-webkit-scrollbar {
  width: 6px;
  height: 12px;
}

.d-filter .d-filter__container::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #4f6a84;
}

.d-filter .d-filter__container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__container {
    display: flex;
    gap: 10px;
  }
}

.d-filter .d-filter__item {
  border: 0;
}

.d-filter .d-filter__itemBtn {
  font-size: 16px;
  font-weight: 600;
  padding-left: 10px;
  color: #4f6a84;
  border-bottom: 1px solid #e9e9e9;
  box-shadow: none;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__itemBtn {
    font-size: 16px;
    font-weight: 400;
    position: relative;
    display: block;
    padding: 15px 35px 15px 20px;
    color: #132041;
    border: 1px solid #132041;
    border-radius: 5px;
    background: #fff;
    gap: 10px;
  }
}

/* .d-filter .d-filter__itemBtn.accordion-button сильнее .accordion-button:not(.collapsed) и .accordion-button:focus
   из bootstrap.min.css (color, box-shadow, border-color): файл подключается раньше Bootstrap.
   Стоит до правил :hover, чтобы не перебивать их. */
.d-filter .d-filter__itemBtn.accordion-button {
  color: #4f6a84;
  border-bottom-color: #e9e9e9;
  box-shadow: none;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__itemBtn.accordion-button {
    color: #132041;
    border-color: #132041;
  }
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__itemBtn:after {
    position: absolute;
    top: 46%;
    right: 17px;
    display: block;
    width: 10px;
    height: 6px;
    content: '';
    border: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.43409 5.43256L9.82976 1.08155C10.0698 0.828198 10.0707 0.439932 9.83167 0.200481C9.59266 -0.0389712 9.18847 -0.0398471 8.94843 0.198567L5.00281 4.11749L1.0742 0.181503C0.82023 -0.0579814 0.431009 -0.0588249 0.190971 0.179589C-0.0490675 0.418003 -0.0499089 0.806268 0.189061 1.06065L4.55086 5.43065C4.80483 5.67013 5.19405 5.67098 5.43409 5.43256Z" fill="%23132041"/></svg>');
    background-position: center;
    background-size: contain;
  }
}

.d-filter .d-filter__itemBtn:focus {
  box-shadow: none !important;
}

@media screen and (max-width: 992px) {
  .d-filter .d-filter__itemBtn:not(.collapsed) {
    background: none;
  }
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__itemBtn:hover {
    color: #fff;
    background: #132041;
  }

  .d-filter .d-filter__itemBtn:hover:after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.43409 5.43256L9.82976 1.08155C10.0698 0.828198 10.0707 0.439932 9.83167 0.200481C9.59266 -0.0389712 9.18847 -0.0398471 8.94843 0.198567L5.00281 4.11749L1.0742 0.181503C0.82023 -0.0579814 0.431009 -0.0588249 0.190971 0.179589C-0.0490675 0.418003 -0.0499089 0.806268 0.189061 1.06065L4.55086 5.43065C4.80483 5.67013 5.19405 5.67098 5.43409 5.43256Z" fill="%23ffffff"/></svg>');
  }
}

.d-filter .d-filter__itemContent {
  border-bottom: 1px solid #e9e9e9;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__itemContent {
    min-width: 250px;
    margin-top: 13px !important;
    margin-bottom: 13px !important;
    padding: 25px 30px 30px 20px;
  }
}

.d-filter .d-filter__itemContent .form-check {
  margin-left: 30px;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__itemContent .form-check {
    margin-left: 0;
  }
}

.d-filter .d-filter__itemContent .form-check:first-child {
  margin-top: 20px;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__itemContent .form-check:first-child {
    margin-top: 0;
  }
}

.d-filter .d-filter__itemContent .form-check:last-child {
  margin-bottom: 20px;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__itemContent .form-check:last-child {
    margin-bottom: 20px;
  }
}

.d-filter .d-filter__footer {
  display: flex;
  padding: 25px 10px;
  justify-content: space-between;
  gap: 10px;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__footer {
    padding: 0;
  }
}

.d-filter .d-filter__footer .btn {
  font-size: 14px;
  font-weight: 600;
  width: 50%;
  padding: 15px 20px;
  text-align: center;
  color: #a0b3c6;
  border: 1px solid #a0b3c6;
  border-radius: 10px;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__footer .btn {
    width: auto;
    color: #4f6a84;
    border-color: #4f6a84;
    border-radius: 5px;
  }
}

.d-filter .d-filter__footer .btn:hover {
  color: #fff;
  border-color: #4f6a84;
  background: #4f6a84;
}

.d-filter .d-filter__footer .btn--dark {
  color: #fff;
  border-color: #4f6a84;
  background: #4f6a84;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__footer .btn--dark {
    display: none;
  }
}

.d-filter .d-filter__footer .btn--dark:hover {
  color: #a0b3c6;
  border-color: #a0b3c6;
  background: none;
}

.d-filter .d-filter__selected {
  display: none;
}

@media screen and (min-width: 992px) {
  .d-filter .d-filter__selected {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 10px;
  }
}

.d-filter .d-filter__selected button {
  font-size: 16px;
  font-weight: 400;
  position: relative;
  display: inline-block;
  padding: 15px 43px 15px 20px;
  transition: none;
  color: #a0b3c6;
  border: 1px solid #a0b3c6;
  border-radius: 5px;
}

.d-filter .d-filter__selected button:after {
  position: absolute;
  top: 40%;
  right: 20px;
  display: block;
  width: 11px;
  height: 11px;
  content: '';
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 11 11" fill="none"><path d="M0.701683 0.000306683C0.514734 0.000388177 0.335605 0.0751223 0.204066 0.207885C0.0725336 0.340648 -0.000567068 0.520509 0.00106231 0.707386C0.00261071 0.894345 0.0788091 1.07284 0.212631 1.20332L4.50742 5.49835L0.212631 9.79296C0.0779203 9.92376 0.00131259 10.1031 1.91094e-05 10.2909C-0.00136632 10.4787 0.0726317 10.6592 0.205387 10.792C0.338142 10.9247 0.518661 10.9987 0.706425 10.9974C0.894189 10.9961 1.07357 10.9194 1.20435 10.7847L5.49872 6.48971L9.79351 10.7847C9.92407 10.9206 10.1038 10.9982 10.2922 11C10.4806 11.0018 10.6618 10.9278 10.7949 10.7944C10.9281 10.6612 11.002 10.4798 11 10.2915C10.998 10.1031 10.9203 9.92336 10.7842 9.79296L6.48987 5.49835L10.7842 1.20332C10.9199 1.07121 10.9964 0.889803 10.9962 0.700463C10.996 0.51106 10.9193 0.329797 10.7833 0.197937C10.6475 0.0660716 10.464 -0.005241 10.2747 0.000300435C10.0928 0.00584229 9.92032 0.0819636 9.79351 0.212527L5.49873 4.50714L1.20436 0.212527C1.07233 0.0767497 0.89099 0.000223228 0.701683 0.000306683Z" fill="%23A0B3C6"/></svg>') center;
  background-size: contain;
}

.d-filter .d-filter__selected button:hover {
  color: #132041;
  border-color: #132041;
}

.d-filter .d-filter__selected button:hover:after {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 11 11" fill="none"><path d="M0.701683 0.000306683C0.514734 0.000388177 0.335605 0.0751223 0.204066 0.207885C0.0725336 0.340648 -0.000567068 0.520509 0.00106231 0.707386C0.00261071 0.894345 0.0788091 1.07284 0.212631 1.20332L4.50742 5.49835L0.212631 9.79296C0.0779203 9.92376 0.00131259 10.1031 1.91094e-05 10.2909C-0.00136632 10.4787 0.0726317 10.6592 0.205387 10.792C0.338142 10.9247 0.518661 10.9987 0.706425 10.9974C0.894189 10.9961 1.07357 10.9194 1.20435 10.7847L5.49872 6.48971L9.79351 10.7847C9.92407 10.9206 10.1038 10.9982 10.2922 11C10.4806 11.0018 10.6618 10.9278 10.7949 10.7944C10.9281 10.6612 11.002 10.4798 11 10.2915C10.998 10.1031 10.9203 9.92336 10.7842 9.79296L6.48987 5.49835L10.7842 1.20332C10.9199 1.07121 10.9964 0.889803 10.9962 0.700463C10.996 0.51106 10.9193 0.329797 10.7833 0.197937C10.6475 0.0660716 10.464 -0.005241 10.2747 0.000300435C10.0928 0.00584229 9.92032 0.0819636 9.79351 0.212527L5.49873 4.50714L1.20436 0.212527C1.07233 0.0767497 0.89099 0.000223228 0.701683 0.000306683Z" fill="%23132041"/></svg>') center;
}

.d-filter .form-check {
  display: flex;
  margin-bottom: 15px;
  padding-left: 0;
  align-items: center;
}

.d-filter .form-check .form-check-input {
  display: none;
}

.d-filter .form-check .form-check-label {
  font-size: 18px;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  color: #23345a;
}

.d-filter .form-check .form-check-label::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  content: '';
  transform: translateY(-50%);
  border: 1px solid #b2bac2;
  border-radius: 50%;
  background-color: #fff;
}

.d-filter .form-check .form-check-label::after {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 8px;
  height: 8px;
  content: '';
  transition: transform .2s ease-in-out;
  transform: translateY(-50%) scale(0);
  border-radius: 50%;
  background-color: #fff;
}

.d-filter .form-check .form-check-input:checked + .form-check-label::before {
  border-color: #23345a;
  background-color: #23345a;
}

.d-filter .form-check .form-check-input:checked + .form-check-label::after {
  transform: translateY(-50%) scale(1);
  background-color: #fff;
}

.d-filter .checkbox .form-check-label::before {
  border-radius: 3px;
}

.d-filter .checkbox .form-check-label::after {
  position: absolute;
  top: 52%;
  left: 5px;
  width: 12px;
  height: 12px;
  content: '';
  transition: transform .2s ease-in-out;
  transform: translateY(-50%) scale(0);
  background-color: #fff;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="9" viewBox="0 0 12 9" fill="none"><path d="M10.7995 0.329326C10.3604 -0.109775 9.64962 -0.109775 9.21052 0.329326L3.83914 5.7007L1.91753 3.77909C1.47843 3.33999 0.765438 3.33999 0.328511 3.77909C-0.108416 4.21819 -0.11059 4.93119 0.328511 5.36812L3.04572 8.08532C3.48482 8.52442 4.19564 8.52442 4.63474 8.08532L10.7995 1.91835C11.2365 1.47925 11.2365 0.768426 10.7995 0.329326Z" fill="white"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.d-filter .checkbox .form-check-input:checked + .form-check-label::before {
  border-color: #23345a;
  background-color: #23345a;
}

.d-filter .checkbox .form-check-input:checked + .form-check-label::after {
  transform: translateY(-50%) scale(1);
  background-color: transparent;
}
