.cabinet {
  padding-top: 210px;
  margin-bottom: 100px;
  position: relative;
}

.cabinet__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.cabinet__nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 240px;
          flex: 0 0 240px;
  padding: 10px;
  background: #ffffff;
  -webkit-box-shadow: 0px 0px 20px rgba(226, 142, 104, 0.15);
          box-shadow: 0px 0px 20px rgba(226, 142, 104, 0.15);
  margin-right: 40px;
  position: relative;
}

.cabinet__nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 75px;
  width: 100%;
  height: 1px;
  background-color: rgba(201, 165, 140, 0.6);
}

.cabinet__nav a {
  display: inline-block;
  font-family: Montserrat;
  font-size: 16px;
  line-height: 20px;
  color: #402310;
  padding: 0 15px 0 50px;
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: 20px center;
  line-height: 40px;
  margin-bottom: 25px;
  border-radius: 5px;
  position: relative;
  background-color: #fff;
  -webkit-transition: all 0.2s ease 0s;
  -o-transition: all 0.2s ease 0s;
  transition: all 0.2s ease 0s;
}

.cabinet__nav a.open {
  background-color: #f7dcc2;
}

.cabinet__nav a:nth-child(1) {
  line-height: 50px;
  background-image: url(../img/icons/account.png);
  border: 1px solid #f7dcc2;
}

.cabinet__nav a:nth-child(2) {
  background-image: url(../img/icons/order.png);
  margin-bottom: 5px;
}

.cabinet__nav a:nth-child(3) {
  background-image: url(../img/icons/heart.png);
}

.cabinet__nav-img {
  width: 100%;
  height: 282px;
  background: url("../img/cabinet-nav-img.jpg") 0 0 no-repeat;
}

.cabinet__content {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

.cabinet__tab {
  display: none;
}

.cabinet__tab.show {
  display: block;
}

.cabinet__tab h3 {
  margin-bottom: 20px;
  font-family: Montserrat;
  font-size: 22px;
  line-height: 27px;
}

.profile div:last-child {
  margin-bottom: 0;
}

.profile__block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-bottom: 40px;
}

.profile__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 15px;
}

.profile__head h3 {
  margin-right: 20px;
  font-size: 22px;
  line-height: 26px;
}

.profile__head button {
  font-size: 16px;
  line-height: 19px;
  color: #402310;
  text-decoration: underline;
  background-color: #fff;
  font-family: Gilroy;
}

.profile__inputs {
  padding: 25px 5px 0;
  border: 1px solid #c9a58c;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.profile__inputs label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin: 0 25px 25px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 230px;
          flex: 0 0 230px;
  position: relative;
}

.profile__inputs label.required::before {
  content: "*";
  position: absolute;
  right: 5px;
  bottom: -2px;
  font-size: 24px;
  line-height: 29px;
  color: #db1313;
}

.profile__inputs span {
  display: inline-block;
  margin-bottom: 5px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

.profile__inputs span span {
  font-size: 12px;
  line-height: 14px;
}

.profile__inputs input {
  border: 1px solid rgba(0, 0, 0, 0.5);
  font-size: 17px;
  line-height: 20px;
  height: 30px;
  width: 100%;
  padding: 5px 22px;
  color: #402310;
  font-family: Gilroy;
}

.order__filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.order__filters-btns {
  margin-right: 30px;
  margin-bottom: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.order__filters button {
  margin-bottom: 15px;
  min-width: 125px;
  height: 35px;
  margin-right: 10px;
  border: 1px solid #c9a58c;
  background-color: #fff;
  -webkit-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
  font-size: 14px;
  line-height: 17px;
  font-family: Gilroy;
  color: #402310;
  padding: 0 4px;
}

.order__filters button.active {
  background: #f7dcc2;
  border: 1px solid #f7dcc2;
}

.order__filters input {
  width: 290px;
  height: 35px;
  margin-bottom: 30px;
  border: 1px solid #c9a58c;
  background: url("../img/icons/search.png") 10px center/15px no-repeat;
  padding: 0 10px 0 40px;
  color: #402310;
}

.order__filters input::-webkit-input-placeholder {
  color: rgba(64, 35, 16, 0.6);
}

.order__filters input::-moz-placeholder {
  color: rgba(64, 35, 16, 0.6);
}

.order__filters input:-ms-input-placeholder {
  color: rgba(64, 35, 16, 0.6);
}

.order__filters input::-ms-input-placeholder {
  color: rgba(64, 35, 16, 0.6);
}

.order__filters input::placeholder {
  color: rgba(64, 35, 16, 0.6);
}

.order__table {
  border: 1px solid #c9a58c;
}

.order__table_num {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100px;
          flex: 0 0 100px;
}

.order__table_date {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 70px;
          flex: 0 0 70px;
}

.order__table_status {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 90px;
          flex: 0 0 90px;
}

.order__table_count {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 90px;
          flex: 0 0 90px;
}

.order__table_sum {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100px;
          flex: 0 0 100px;
}

.order__table-head .order__table-row {
  padding: 10px 0;
}

.order__table-head .order__table-row::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 0;
  width: calc(100% + 40px);
  height: 1px;
  background-color: #c9a58c;
}

.order__table-head a {
  visibility: hidden;
  height: 1px !important;
}

.order__table-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 30px 0;
  margin: 0 30px 0 10px;
  position: relative;
}

.order__table-row::before {
  content: "";
  position: absolute;
  left: 0px;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #c9a58c;
}

.order__table-row p {
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  margin: 0 2px;
}

.order__table-row a {
  width: 150px;
  height: 40px;
  background: #f7dcc2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 14px;
  line-height: 17px;
  color: #402310;
  padding: 0 2px;
}

.order__table-body {
  height: 330px;
  overflow-y: auto;
}

.order__table-body::-webkit-scrollbar {
  width: 5px;
}

.order__table-body::-webkit-scrollbar-track {
  background-color: #f7dcc2;
  border-radius: 7px;
}

.order__table-body::-webkit-scrollbar-thumb {
  background-color: #c9a58c;
  border-radius: 7px;
}

.order__btn-more {
  display: none;
  margin: 10px auto;
  font-family: Gilroy;
  font-size: 16px;
  line-height: 19px;
  background-color: #fff;
  color: #402310;
}

.wish .catalog {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.wish .pagination {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .profile__inputs {
    padding: 25px 15px 0;
  }

  .profile__inputs label {
    margin: 0 5px 25px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 185px;
            flex: 0 0 185px;
  }

  .order__filters-btns {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }

  .order__filters button {
    min-width: 100px;
  }

  .order__table_status {
    display: none;
  }

  .order__table_count {
    display: none;
  }

  .order__table-head .order__table-row::before {
    width: calc(100% + 20px);
  }

  .order__table-row {
    margin: 0 10px 0 10px;
  }

  .order__table-row a {
    height: 35px;
    width: 120px;
  }

  .order__table-body {
    height: auto;
  }

  .order__btn-more {
    display: block;
  }

  .wish .card {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 180px;
            flex: 1 1 180px;
  }
}

@media (max-width: 768px) {
  .cabinet {
    padding-top: 180px;
  }

  .cabinet__nav {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 222px;
            flex: 0 0 222px;
  }

  .wish .card__stars {
    width: 72px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 72px;
            flex: 0 0 72px;
    height: 12px;
  }

  .wish .card__mask {
    background-size: 72px 12px;
  }
}

@media (max-width: 700px) {
  .cabinet__body {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }

  .cabinet__nav {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    padding: 17px 15px;
    margin-right: 0;
    margin-bottom: 40px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    overflow-y: auto;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .cabinet__nav::before {
    display: none;
  }

  .cabinet__nav a {
    margin-bottom: 0;
    line-height: 35px;
    -webkit-box-flex: 1;
        -ms-flex: 1 0 170px;
            flex: 1 0 170px;
    background-position: 15px center;
    margin-right: 28px;
    padding: 0 15px 0 45px;
    white-space: nowrap;
  }

  .cabinet__nav a::before {
    content: "";
    position: absolute;
    right: -14px;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgba(201, 165, 140, 0.6);
  }

  .cabinet__nav a:nth-child(1) {
    line-height: 35px;
  }

  .cabinet__nav a:nth-child(2) {
    margin-bottom: 0;
  }

  .cabinet__nav a:nth-child(3) {
    margin-right: 0;
  }

  .cabinet__nav a:nth-child(3)::before {
    display: none;
  }

  .cabinet__nav-img {
    display: none;
  }

  .cabinet__content {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
  }

  .order__filters-btns {
    margin-bottom: 5px;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    margin-right: 0;
    overflow-x: auto;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
  }

  .wish .card {
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .cabinet {
    padding-top: 120px;
    margin-bottom: 80px;
  }

  .cabinet__tab h3 {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 17px;
  }

  .profile__head {
    margin-bottom: 20px;
  }

  .profile__head h3 {
    font-size: 20px;
    line-height: 24px;
  }

  .profile__inputs {
    padding: 30px 20px 10px;
  }

  .profile__inputs label {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    margin: 0 0 20px;
  }

  .order__table-row a {
    display: none;
  }

  .order__btn-more {
    margin: 15px auto;
  }

  .wish .card {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 140px;
            flex: 1 1 140px;
  }
}