.orders-list {
  padding: 141px 174px 95px 173px;
}

.review-form-title-step1 {
  margin-bottom: 43px;
}

.review-step {
  transition: all 0.3s ease;
}

.review-step.fade-enter {
  opacity: 0;
  transform: translateX(20px);
}

.review-step.fade-enter-active {
  opacity: 1;
  transform: translateX(0);
}

.review-step.fade-exit {
  opacity: 1;
  transform: translateX(0);
}

.review-step.fade-exit-active {
  opacity: 0;
  transform: translateX(-20px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 13px;
  margin: 20px 0;
}

.product-select-card {
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.product-select-card.product-hidden {
  display: none;
}

.product-select-image {
  width: 100%;
  position: relative;
  padding-bottom: 102%;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 5px solid transparent;
  transition: border-color 0.3s ease;
}

.product-select-card:hover .product-select-image {
  border-color: #FFCC8F;
}

.product-select-card.selected .product-select-image {
  border-color: #FFCC8F;
}

.product-select-card:active .product-select-image {
  border-color: #FFCC8F;
  opacity: 0.8;
}

.product-select-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.orders-list .review-form-actions {
  display: flex;
  justify-content: end;
  margin-top: 43px;
}

.orders-list .next-step-btn {
  background: linear-gradient(263.56deg, #FFE9C8 -4.53%, #FFD9AD 18.44%, #FFDDB5 51.46%, #FFDDB5 76.6%, #FFCC8F 111.92%), radial-gradient(55.13% 55.13% at 50% 2.23%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0px 8.8px 0px 0px #D8A86E;
  width: 381px;
  height: 95px;
  border-radius: 24px;
  font-family: Montserrat;
  font-weight: 800;
  font-size: 18px;
  color: #584D3E;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.1s ease-in, box-shadow 0.25s ease-in;
  border: none;
  cursor: pointer;
}

.orders-list .next-step-btn:before {
  content: '';
  background: radial-gradient(55.13% 55.13% at 50% 2.23%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: 24px;
}

.orders-list .next-step-btn:hover {
  box-shadow: 0px 5px 0px 0px #D8A86E;
}

.orders-list .next-step-btn:active {
  box-shadow: 0px 4px 0px 0px #D8A86E;
}


.product-select-name {
  font-family: Buyan;
  font-weight: 700;
  font-size: 30px;
  line-height: 105%;
  text-transform: uppercase;
  color: #FFFFFF;
  min-height: calc(30px * 1.05 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-section{
  width: 100%;
  margin-bottom: 43px;
}

.order-title {
  font-family: Buyan;
  font-weight: 700;
  font-size: 35px;
  line-height: 128%;
  text-transform: uppercase;
  color: #FFFFFF;
}

@media screen and (max-width: 1280px) {
  .orders-list .review-form-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .orders-list .next-step-btn {
    width: auto;
    grid-column: 3;
    height: 75px;
  }
}

@media screen and (max-width: 900px) {
  .orders-list {
    padding: 138px 45px 76px 45px;
  }

  .review-form-title-step1 {
    margin-bottom: 32px;
  }

  .order-section{
    margin-bottom: 32px;
  }

  .order-title {
    font-size: 30px;
  }

  .products-grid {
    gap: 21px 12px;
    margin: 19px 0;
  }

  .product-select-image {
    border-radius: 12px;
    padding-bottom: 99%;
    margin-bottom: 16px;
  }

  .product-select-name {
    font-size: 25px;
    min-height: calc(25px * 1.05 * 2);
  }

  .orders-list .review-form-actions {
    margin-top: 32px;
  }

  .orders-list .next-step-btn {
    width: auto;
    font-size: 18px;
    border-radius: 18px;
  }
}

@media screen and (max-width: 600px) {
  .orders-list {
    padding: 103px 16px 60px 13px;
  }

  .review-form-title-step1 {
    margin-bottom: 30px;
  }

  .order-section{
    margin-bottom: 25px;
  }
  
  .order-title {
    font-size: 25px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px 8px;
    margin: 15px 0;
  }

  .product-select-image {
    border-radius: 14px;
    padding-bottom: 92%;
    margin-bottom: 11px;
  }

  .product-select-name {
    font-size: 18px;
    min-height: calc(18px * 1.05 * 2);
  }

  .orders-list .review-form-actions {
    margin-top: 30px;
  }

  .orders-list .next-step-btn {
    width: 100%;
    max-width: 366px;
    height: 68px;
    font-size: 14px;
  }
}

@media screen and (max-width: 550px) {
  .orders-list .review-form-actions {
    display: flex;
    justify-content: center;
  }
}
