.wrapper {
  position: relative;
  width: 400px;
  overflow-x: unset;
}
.desktop {
  display: block;
}
.mobile {
  display: none;
}

.title {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: bold;
  font-size: 30px;
  line-height: 35px;
  color: #1d1d1d;
  margin-bottom: 5px;
}

.subtitle {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300;
  font-size: 22px;
  line-height: 28px;
  color: #1d1d1d;
  margin-bottom: 20px;
}
.string_title {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  padding-top: 15px;
  color: #000000;
}
.string_content {
  display: flex;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid #f1f1f1;
}
.content {
  // height: calc(100% - 155px);
  padding-right: 10px;
  height: auto;
  // height: calc(var(--vh, 1vh) * 100 - 65.39px - 42.59px - 35px - 115px - 60px);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.config {
  padding-right: 20px;
  height: 100%;
  overflow-x: unset;
  position: relative;
  transition: all 0.2s;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  max-height: 0vh;

  &.active {
    opacity: 1;
    right: 0;
    visibility: visible;
    overflow: auto;
    overflow-x: unset;
    max-height: calc(var(--vh, 1vh) * 100);

    .content {
      height: calc(
        var(--vh, 1vh) * 100 - 65.39px - 42.59px - 35px - 25px - 60px
      );
    }
  }
}

.shop {
  padding-right: 10px;
  height: 100%;
  overflow-x: unset;
  position: relative;
  transition: all 0.2s;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  max-height: 0vh;

  &_content {
    position: absolute !important;
    bottom: 0 !important;
    left: 10px !important;
    width: calc(100%) !important;
    padding: 0 !important;
    display: block !important;
    height: 115px !important;
  }
  &.active {
    opacity: 1;
    right: 0;
    visibility: visible;
    overflow: auto;
    max-height: calc(var(--vh, 1vh) * 100);
  }
  &_save_config {
    display: none;
  }
}
.offer {
  &__wrapper {
    padding: 20px;
    padding-bottom: 0;
    background: #fff;
    position: sticky !important;
    z-index: 9;
    bottom: 0px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #adb5bd;

    &.shop {
    }
  }
  &_title {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
    text-align: right;
    color: #1d1d1d;
  }
  &_price {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    text-align: right;
    color: #000000;
  }
  &_info {
    margin-right: 20px;
  }
  &_btn {
    transition: all 0.2s;
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: #004225;
    border: 1px solid transparent;
    border-radius: 10px;
    height: 54px;
    padding: 17px 30px;

    cursor: pointer;

    &:hover {
      background: transparent;
      border: 1px solid #004225;
      color: #004225;
    }
    &.disable {
      background: rgba(35, 31, 32, 0.2);
      pointer-events: none;
    }
  }
}

.none {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: bold;
  position: relative;
  padding: 20px 0;
  font-size: 24px;
  line-height: 33px;
  color: #004225;
}

.total {
  &_title {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: bold;
    font-size: 26px;
    line-height: 33px;
    color: #004225;
  }

  &_price {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: bold;
    font-size: 26px;
    line-height: 33px;
    color: #000000;
  }
  &__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 10px;
    height: 40px;
  }
}
.btn__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back_btn {
  transition: all 0.2s;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  color: #004225;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #004225;
  border-radius: 10px;
  height: 54px;
  padding: 10px 30px;
  margin-right: 20px;
  cursor: pointer;
  &:hover {
    background: #004225;
    border: 1px solid transparent;
    color: #fff;
  }
}
.next_btn {
  transition: all 0.2s;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  background: #004225;
  border: 1px solid transparent;
  border-radius: 10px;
  height: 54px;
  padding: 10px 30px;

  cursor: pointer;
  &:hover {
    background: transparent;
    border: 1px solid #004225;
    color: #004225;
  }
  &.disable {
    background: rgba(35, 31, 32, 0.2);
    pointer-events: none;
  }
}

@media (max-width: 1600px) {
  .wrapper {
    width: 30%;
  }
  .offer__wrapper {
    padding: 20px 5px;
    padding-bottom: 0;
  }
}

@media (max-width: 1360px) {
  .title {
    font-size: 20px;
    margin-bottom: 0;
  }
  .subtitle {
    font-size: 18px;
  }
}

@media (max-width: 1080px) {
  .subtitle {
    font-size: 17px;
  }
}

@media (max-width: 1160px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: block;
  }
}
@media (max-width: 1024px) {
  .wrapper {
    height: auto !important;
  }

  .config {
    padding-right: 0;
    &.active {
      max-height: unset;
      .content {
        height: auto;
      }
    }
  }
  .content {
    padding-right: 0;
  }
  .desktop {
    display: block;
  }
  .mobile {
    display: none;
  }
  .shop {
    position: fixed;
    top: 0px;
    left: 0;
    z-index: 9999;
    background: #fff;
    width: 100%;
    padding-left: 10px;

    &_content {
      height: 235px !important;
    }
    &_title {
      &__wrapper {
        padding-top: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .title {
          display: flex;
        }
      }
    }
    &_save_config {
      display: block;
    }
  }
  .btn__wrapper {
    justify-content: space-between;
    padding-top: 10px;
  }

  .total__wrapper {
    margin-bottom: 20px;
  }
  .wrapper {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100 - 440px);
    padding-right: 4px;
  }
  .title {
    display: none;
  }
  .subtitle {
    display: none;
  }
  .total {
    &_price {
      font-size: 24px;
    }
    &_title {
      font-size: 24px;
    }
  }
  .product__block {
    overflow-x: auto;
    width: 100%;
    display: flex;
    flex-direction: column !important;
  }
  .shop {
    &.active {
      .offer {
        &__wrapper {
          padding: 0;
          height: 137px !important;
        }
      }
    }
  }
  .offer {
    &__wrapper {
      justify-content: space-between;
    }
  }
  .wrapper {
    width: 100%;
  }
  .offer__wrapper {
    padding: 10px 5px;
    padding-bottom: 0;
  }
}

@media (max-width: 520px) {
  .wrapper {
    height: calc(var(--vh, 1vh) * 100 - 350px);
  }
  .content {
    height: calc(var(--vh, 1vh) * 100 - 65.39px - 42.59px - 35px - 66px - 60px);
  }

  .total__wrapper {
    margin-bottom: 0;
  }
  .shop_content {
    height: 210px !important;
  }
  .shop {
    &.active {
      .offer {
        &__wrapper {
          padding: 0;
          height: 105px !important;
        }
      }
    }
  }
}
@media (max-width: 400px) {
  .next_btn,
  .back_btn,
  .offer_btn {
    font-size: 14px;
    padding: 10px;
    height: 44px;
  }
  .config {
    padding-right: 5px;
  }
  .offer__wrapper {
    padding: 5px;
    padding-bottom: 0;
    height: unset;
  }
}
