aside.bootic-modal.products-list-modal.active > div > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
}

aside.bootic-modal.products-list-modal.active > div > div hr {
    display: none;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: rgb(17 24 39);
  letter-spacing: -0.025em;
  margin: 0;
}

.modal-all-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-desc {
  font-size: 0.875rem;
  color: rgb(75 85 99);
  font-weight: 500;
  margin: 0;
}

.modal-group-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(17 24 39);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(209 213 219);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.modal-group-link:hover {
  color: rgb(55 65 81);
  text-decoration-color: rgb(75 85 99);
}

.vol-discount-tier-goal {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: rgb(239 246 255);
  border: 1px solid rgb(191 219 254);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: rgb(30 58 138);
}

.products-list-modal {
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  overflow: hidden;
}

.products.matching-products {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.product-in-modal {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(229 231 235);
  background-color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-in-modal:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border-color: rgb(209 213 219);
  transform: translateY(-2px);
}

.product-in-modal-image {
  flex-shrink: 0;
  width: 33%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: rgb(249 250 251);
}

.product-in-modal-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-in-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-in-modal-image:hover img {
  transform: scale(1.05);
}

.product-in-modal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  margin-left: 0 !important;
}

.product-in-modal-main-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.product-in-modal-name-and-price {
  flex: 1;
  min-width: 0;
}

.product-in-modal-name-and-price > p {
  margin-bottom: 0.5rem;
}

.product-in-modal-vendor-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(75 85 99);
  transition: color 0.2s;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.product-in-modal-vendor-link:hover {
  color: rgb(17 24 39);
}

.product-in-modal-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: rgb(17 24 39);
  line-height: 1.25;
}

.product-in-modal-link {
  color: rgb(17 24 39);
  text-decoration: none;
  transition: color 0.2s;
}

.product-in-modal-link:hover {
  color: rgb(55 65 81);
}

.product-in-modal-status {
  display: none;
}

.product-in-modal-main-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-in-modal-add-to-cart {
  width: 100%;
}

.product-in-modal-actions {
  display: flex;
  gap: 0.5rem;
}

.product-in-modal-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(75 85 99);
  border: 1px solid rgb(229 231 235);
  border-radius: 0.5rem;
  background-color: white;
  transition: all 0.2s;
  text-decoration: none;
}

.product-in-modal-actions a:hover {
  color: rgb(17 24 39);
  border-color: rgb(209 213 219);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

@media screen and (max-width: 640px) {
  .modal-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .product-in-modal {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .product-in-modal-image {
    width: 45%;
  }

  .product-in-modal-name {
    font-size: 12px;
  }

  .product-in-modal-main-top {
    gap: 0.5rem;
  }

  .product-in-modal-actions a {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
  }
}

.product-in-modal:has(.out-of-stock) {
  opacity: 0.6;
}

.product-in-modal.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.product-in-modal.loading .product-in-modal-image {
  background-color: rgb(229 231 235);
}

.product-in-modal.loading .product-in-modal-name,
.product-in-modal.loading .bootic-price {
  background-color: rgb(229 231 235);
  border-radius: 0.25rem;
  color: transparent;
}

.product-in-modal .volume-discount-notice.below {
  font-size: 10px;
  margin: auto;
}

@media screen and (max-width: 640px) {
  .products-list-modal .product-add-cart,
  .products-list-modal .view_single {
    font-size: 10px;
  }

  .product-in-modal .bootic-price {
    font-size: 14px;
  }
}
