.tabs {
  background-color: var(--main-black);
}

.tabs__buttons {
  width: 408px;
  height: 38px;
  position: relative;
  box-sizing: border-box;
}
.tab__item--button {
  position: relative;
  width: 100%;
  padding: 30px 20px;
  margin-bottom: 10px;
  background-color: var(--main-black);
  color: var(--tab-white-color);
  font-family: 'Formular';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  border: 1px solid var(--tab-white-color);
  text-align: left;
}
.tab__item--button::before {
  content: url(/assets/arrow.svg);
  position: absolute;
  right: 22px;
}

.tab__item--button:hover,
.tab__item--button.select {
  background-color: var(--tab-active-color);
  border-color: var(--tab-active-color);
}

.tabs__bodys {
  flex: 1;
  width: 100%;
  height: 100%;
}
.tab__item--body {
  display: none;
  padding-left: 31px;
}
.tab__item--body.show {
  display: block;
}

.tabs {
  width: 100%;
  min-height: 400px;
  box-sizing: border-box;
  position: relative;
  display: flex;
}
.tabs__buttons {
  display: flex;
  flex-flow: column;
}
.tabs__bodys {
  flex: 1;
}
.tabs .tab__item--button .material-icons {
  display: none;
}
.tabs .tab__item--button {
  align-items: center;
  height: 82px;
  display: flex;
  padding-right: 50px;
}
.tabs .tab__item--button.select {
  color: #fff;
}
.tabs .tab__item--body {
  display: none;
}
.tabs .tab__item--body.show {
  display: block;
  z-index: 1;
}

@media (max-width: 1048px) {
  .tabs {
    flex-flow: column;
  }
  .tabs .tab__item {
    position: relative;
  }
  .tabs .tab__item--button {
    width: 100%;
  }
  .tabs .tab__item--button .add {
    display: unset;
  }
  .tabs .tab__item--button.select .add {
    display: none;
  }
  .tabs .tab__item--button.select .clear {
    display: unset;
  }
  .tabs .tab__item--body {
    padding-top: 15px;
    display: block;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  }
  .tabs .tab__item--body.show {
    max-height: 19000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
  }
}

@media (max-width: 768px) {
  .tabs {
    padding: 0 30px;
  }
}
@media (max-width: 425px) {
  .tabs {
    padding: 0 19px;
  }
  .tabs .tab__item--button {
    font-size: 16px;
  }
  .tabs .card__item {
    flex-flow: row !important;
  }
}
