.cartproducts-suggestions {
  width: 100%;
  max-width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(7, 121, 139, 0.16);
  overflow: hidden;
}

#blockcart-modal .modal-body + .cartproducts-suggestions,
#blockcart-modal .modal-footer + .cartproducts-suggestions {
  padding-inline: 1rem;
}

.cartproducts-suggestions__title {
  margin: 0 0 0.65rem;
  color: #162033;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.cartproducts-suggestions__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  max-height: 16rem;
  padding-right: 0.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.cartproducts-suggestions__card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid #d9edf3;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.25rem 0.9rem rgba(15, 47, 64, 0.05);
}

.cartproducts-suggestions__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid #e0eef3;
  border-radius: 0.65rem;
  background: #f8fbfc;
  overflow: hidden;
}

.cartproducts-suggestions__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cartproducts-suggestions__content {
  min-width: 0;
}

.cartproducts-suggestions__name {
  display: -webkit-box;
  color: #162033;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cartproducts-suggestions__name:hover {
  color: #08798b;
}

.cartproducts-suggestions__price {
  margin-top: 0.25rem;
  color: #08798b;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

@media (min-width: 576px) {
  #blockcart-modal .modal-body + .cartproducts-suggestions .cartproducts-suggestions__grid,
  #blockcart-modal .modal-footer + .cartproducts-suggestions .cartproducts-suggestions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  #blockcart-modal .modal-body + .cartproducts-suggestions .cartproducts-suggestions__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  #blockcart-modal.cartproducts-has-suggestions .modal-dialog {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
  }

  #blockcart-modal.cartproducts-has-suggestions .modal-content {
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #blockcart-modal.cartproducts-has-suggestions .modal-body {
    max-height: none !important;
    overflow-y: visible !important;
  }

  #blockcart-modal.cartproducts-has-suggestions .cartproducts-suggestions {
    max-height: none !important;
    overflow: visible !important;
  }

  #blockcart-modal.cartproducts-has-suggestions .cartproducts-suggestions__grid {
    max-height: none;
    overflow: visible;
  }

  #blockcart-modal.cartproducts-has-suggestions .modal-footer,
  #blockcart-modal.cartproducts-has-suggestions .cart-content-btn {
    position: relative;
    z-index: 50;
    background: #fff;
  }

  #blockcart-modal.cartproducts-has-suggestions .modal-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  #blockcart-modal.cartproducts-has-suggestions.cartproducts-modal-scrolls .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 60;
  }

  #blockcart-modal.cartproducts-has-suggestions .cart-content-btn {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  #blockcart-modal.cartproducts-has-suggestions .cart-content-btn .btn {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .cartproducts-suggestions__card {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .cartproducts-suggestions__image {
    width: 4rem;
    height: 4rem;
  }
}
