.history__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.375rem;
  padding: 2.625rem 2.1875rem 1.875rem;
  background: #fff;
  border-radius: 20px;
}
@media screen and (max-width: 767.98px) {
  .history__wrapper {
    padding: 1.5rem 1rem 1.25rem;
  }
}
.history__wrapper__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 43.75rem;
}
@media screen and (max-width: 767.98px) {
  .history__wrapper__items {
    width: 100%;
    gap: 0.75rem;
  }
}
.history__wrapper__items__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5625rem;
  margin-top: 1.5625rem;
}
.history__wrapper__items__result p {
  font-size: 1.5rem;
}
.history__wrapper__items__result__buttons {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 2.25rem;
}
.history__wrapper__items__result__buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(360px, calc(100vw - 1rem));
  min-width: 0;
  min-height: 4.125rem;
  padding: 0.875rem 1.5rem;
  background: #000;
  white-space: normal;
  text-align: center;
  font-size: 1rem;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  border: 2px solid #000;
  border-radius: 999px;
}
.history__wrapper__items__result__buttons .btn:hover,
.history__wrapper__items__result__buttons .btn:focus-visible {
  background: #f00;
  border-color: #f00;
  color: #fff;
}
@media screen and (max-width: 767.98px) {
  .history__wrapper__items__result {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.125rem;
  }
  .history__wrapper__items__result p {
    font-size: 1rem;
  }
  .history__wrapper__items__result__buttons {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  .history__wrapper__items__result__buttons .btn {
    width: 100%;
  }
}
.history__wrapper__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5625rem 0 1.5625rem 0.75rem;
  border-top: 1px solid #b8bdbf;
  border-bottom: 1px solid #b8bdbf;
}
.history__wrapper__item__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}
.history__wrapper__item__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
}
.history__wrapper__item__info p:last-child {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: capitalize;
}
.history__wrapper__item__content {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.5rem;
}
.history__wrapper__item__content__result {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.25rem;
  font-size: 1.25rem;
}
.history__wrapper__item__content__result button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  padding: 0.5rem 2.125rem;
  background: #000;
  border-radius: 20px;
  font-size: 1rem;
  color: #fff;
}
.history__wrapper__item__content__item {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: auto 1.25rem 1fr;
  grid-template-columns: auto 1fr;
  -ms-grid-rows: auto 0.5rem auto 0.5rem auto 0.5rem auto;
  grid-template-rows: repeat(4, auto);
  column-gap: 1.25rem;
  row-gap: 0.5rem;
}
.history__wrapper__item__content__item > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
.history__wrapper__item__content__item > *:nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
}
.history__wrapper__item__content__item > *:nth-child(3) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}
.history__wrapper__item__content__item > *:nth-child(4) {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
}
.history__wrapper__item__content__item > *:nth-child(5) {
  -ms-grid-row: 5;
  -ms-grid-column: 1;
}
.history__wrapper__item__content__item > *:nth-child(6) {
  -ms-grid-row: 5;
  -ms-grid-column: 3;
}
.history__wrapper__item__content__item > *:nth-child(7) {
  -ms-grid-row: 7;
  -ms-grid-column: 1;
}
.history__wrapper__item__content__item > *:nth-child(8) {
  -ms-grid-row: 7;
  -ms-grid-column: 3;
}
.history__wrapper__item__content__item__img {
  grid-column: 1/2;
  grid-row: 1/-1;
  object-fit: cover;
}
.history__wrapper__item__content__item__img img {
  height: 100%;
}
.history__wrapper__item__content__item__info {
  grid-column: 2/-1;
  grid-row: 1/2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}
.history__wrapper__item__content__item__info p:last-child {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.history__wrapper__item__content__item__category {
  grid-column: 2/-1;
  grid-row: 2/3;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.history__wrapper__item__content__item__price {
  grid-column: 2/-1;
  grid-row: 3/4;
}
.history__wrapper__item__content__item__price p {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  padding: 0.625rem 0.9375rem;
  background: #000;
  border-radius: 20px;
  font-size: 1rem;
  color: #fff;
}
.history__wrapper__item__content__item__ingridients {
  grid-column: 2/-1;
  grid-row: 4/-1;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
}
.history__wrapper__item__content.isOpen {
  display: flex;
}
.history__wrapper__item__details {
  position: absolute;
  bottom: 20px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.history__wrapper__item__details.hide {
  bottom: 0;
}
@media screen and (max-width: 767.98px) {
  .history__wrapper__item {
    gap: 0;
    width: 100%;
    padding: 1rem 0 1.5rem;
  }
  .history__wrapper__item__status {
    font-size: 0.75rem;
  }
  .history__wrapper__item__info {
    font-size: 0.75rem;
  }
  .history__wrapper__item__info p:last-child {
    font-size: 0.75rem;
  }
  .history__wrapper__item__content {
    gap: 1.125rem;
  }
  .history__wrapper__item__content__result {
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
  }
  .history__wrapper__item__content__result button {
    font-size: 0.8125rem;
  }
  .history__wrapper__item__content__item {
    -ms-grid-columns: 1fr 0.375rem 1fr;
    grid-template-columns: 1fr 1fr;
    -ms-grid-rows: 100px auto auto auto;
    grid-template-rows: 100px auto auto auto;
    column-gap: 0.375rem;
  }
  .history__wrapper__item__content__item > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
  }
  .history__wrapper__item__content__item > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
  }
  .history__wrapper__item__content__item > *:nth-child(3) {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
  }
  .history__wrapper__item__content__item > *:nth-child(4) {
    -ms-grid-row: 2;
    -ms-grid-column: 3;
  }
  .history__wrapper__item__content__item > *:nth-child(5) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
  }
  .history__wrapper__item__content__item > *:nth-child(6) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
  }
  .history__wrapper__item__content__item > *:nth-child(7) {
    -ms-grid-row: 4;
    -ms-grid-column: 1;
  }
  .history__wrapper__item__content__item > *:nth-child(8) {
    -ms-grid-row: 4;
    -ms-grid-column: 3;
  }
  .history__wrapper__item__content__item__img {
    grid-column: 1/2;
    grid-row: 1/2;
  }
  .history__wrapper__item__content__item__info {
    grid-column: 1/-1;
    grid-row: 2/3;
    font-size: 1rem;
  }
  .history__wrapper__item__content__item__category {
    grid-column: 1/-1;
    grid-row: 3/4;
    font-size: 0.625rem;
  }
  .history__wrapper__item__content__item__price {
    grid-column: 2/-1;
    grid-row: 1/2;
    align-self: end;
  }
  .history__wrapper__item__content__item__price p {
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
  }
  .history__wrapper__item__content__item__ingridients {
    grid-column: 1/-1;
    grid-row: 4/5;
    font-size: 0.8125rem;
  }
  .history__wrapper__item__details {
    bottom: 5px;
    right: 0;
    gap: 0.25rem;
    font-size: 0.625rem;
  }
  .history__wrapper__item__details.hide {
    transform: translateY(100%);
  }
}
.other_blocks {
  width: 100%;
  max-width: 1056px;
  margin: 0 auto;
  padding-top: 2rem;
}
.history__wrapper__items_new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
}
.history__wrapper__item__product {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.25rem 0;
}
.history__wrapper__item__product > div {
  min-width: 0;
}
.history__wrapper__item__product__image {
  width: 100%;
}
.history__wrapper__item__product__image img {
  display: block;
  width: 100%;
  aspect-ratio: 324 / 215;
  object-fit: cover;
  border-radius: 20px;
}
.history__wrapper__item__product__info {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}
.history__wrapper__item__product__info h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}
.history__wrapper__item__product__info h3 a {
  color: inherit;
}
.history__wrapper__item__product__info > p:first-of-type,
.history__wrapper__item__product__info > p:last-of-type {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 500;
  text-transform: none;
}
.history__wrapper__item__product__info__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0.125rem 0 0;
}
.history__wrapper__item__product__info__price > p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.625rem 0.9375rem;
  background: #000;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}
.history__wrapper__item__product__info__price .ms-count,
.history__wrapper__item__product__info__price .ms-count form {
  width: 9.5rem;
  max-width: 100%;
}
.history__wrapper__item__product__info__price .ms-input-number-wrap,
.history__wrapper__item__product_new .ms-input-number-wrap_two {
  display: inline-grid !important;
  grid-template-columns: 2.75rem 4rem 2.75rem;
  width: 9.5rem;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
}
.history__wrapper__item__product__info__price .ms-input-number-emulator,
.history__wrapper__item__product_new .quantity-input {
  width: 4rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
.history__wrapper__item__product__info__price .ms-input-number-btn,
.history__wrapper__item__product_new .quantity-minus,
.history__wrapper__item__product_new .quantity-plus {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: 1.5rem;
  line-height: 1;
}
.history__wrapper__item__product__info__price .ms-input-number-btn:hover,
.history__wrapper__item__product_new .quantity-minus:hover,
.history__wrapper__item__product_new .quantity-plus:hover {
  background: #000;
  color: #fff;
}
.history__wrapper__item__product__info__price .section__item__count,
.history__wrapper__item__product_new .section__item__count {
  display: block;
  width: auto;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.history__wrapper__item__product_new {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid #d9d9d9;
}
.history__wrapper__item__product_new .history__wrapper__item__product__image {
  width: 100%;
}
.history__wrapper__item__product_new .history__wrapper__item__product__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 324 / 215;
  object-fit: cover;
  border-radius: 18px;
}
.history__wrapper__item__product_new .history__wrapper__item__product__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.history__wrapper__item__product_new .history__wrapper__item__product__info h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}
.history__wrapper__item__product_new .history__wrapper__item__product__info p {
  margin: 0;
  overflow-wrap: anywhere;
}
.history__wrapper__item__product_new .history__wrapper__item__product__info > p:first-of-type {
  font-size: 0.875rem;
  line-height: 1.35;
}
.history__wrapper__item__product_new .history__wrapper__item__product__info__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.125rem;
}
.history__wrapper__item__product_new .history__wrapper__item__product__info__price > p {
  margin: 0;
}
.free-souce {
  display: inline-block;
  color: #00bb4e;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  margin-top: 0.125rem;
}
.history__wrapper__item__product:not(:last-of-type) {
  border-bottom: 1px solid #d9d9d9;
}
@media screen and (max-width: 767.98px) {
  .history__wrapper__items_new {
    grid-template-columns: 1fr;
  }
  .history__wrapper__item__product_new {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
  }
  .history__wrapper__item__product_new .history__wrapper__item__product__image {
    width: 7.5rem;
    max-width: 7.5rem;
  }
  .history__wrapper__item__product_new .history__wrapper__item__product__info > p:first-of-type {
    font-size: 0.875rem;
  }
  .history__wrapper__item__product_new .history__wrapper__item__product__info__price {
    align-items: center;
  }
  .history__wrapper__item__product_new .section__item__count {
    width: auto;
    max-width: 9.5rem;
  }
}
@media screen and (max-width: 395px) {
  .history__wrapper__item__product,
  .history__wrapper__item__product_new {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    padding: 1rem 0;
  }
  .history__wrapper__item__product__image,
  .history__wrapper__item__product_new .history__wrapper__item__product__image {
    width: 100%;
    max-width: 100%;
  }
  .history__wrapper__item__product__image img {
    width: 100%;
  }
  .history__wrapper__item__product__info h3 {
    font-size: 1.125rem;
  }
  .history__wrapper__item__product__info > p:first-of-type,
  .history__wrapper__item__product__info > p:last-of-type,
  .history__wrapper__item__product_new .history__wrapper__item__product__info > p:first-of-type {
    font-size: 0.875rem;
  }
  .history__wrapper__item__product__info__price,
  .history__wrapper__item__product_new .history__wrapper__item__product__info__price {
    align-items: flex-start;
  }
  .history__wrapper__item__product__info__price .ms-count,
  .history__wrapper__item__product__info__price .ms-count form,
  .history__wrapper__item__product_new .section__item__count {
    width: 100%;
    max-width: 11rem;
  }
}
.history__wrapper__item + h2 {
  margin: 1rem 0 0.75rem;
  font-size: 1.25rem;
  text-align: center;
}
.history__wrapper.cart__wrapper {
  gap: 0;
  min-height: 600px;
}
.history__wrapper.cart__wrapper .history__wrapper__items {
  gap: 0;
}
.history__wrapper.cart__wrapper h1 {
  margin-bottom: 1.5625rem;
}
