.product-card-for-ins {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card-for-ins-wrap {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.33);
}

.product-card__image-wrapper {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.product-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card__content {
  padding: 16px 16px 0;
}

.product-card__content .new-sku-wrap {
  gap: 5px;
}
  
.product__title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.price {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

.add-to-cart {
  width: 100%;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: var(--color-button-background);
  color: var(--color-button-text);
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.add-to-cart:hover {
  opacity: 0.9;
}

.add-to-cart.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.add-to-cart.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.ins-dialog-checkout{
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.dialog-ins-wrap-left-product-add-to-cart{
  appearance: none; /* 移除默认的按钮样式 */
  background-image: linear-gradient(to right, #FFAB7B, #FF3ADA,#7632F8); /* 从左到右的渐变 */
  border: none; /* 移除边框 */
  border-radius: 32px; /* 圆角 */
  color: white; /* 文字颜色 */
  padding: 10px 20px; /* 内边距 */
  text-align: center; /* 文本居中 */
  text-decoration: none; /* 移除下划线 */
  display: inline-block; /* 行内块级元素 */
  font-size: 16px; /* 字体大小 */
  margin: 4px 2px; /* 外边距 */
  cursor: pointer; /* 鼠标悬停时的手指图标 */
  transition: background-image 0.3s ease; /* 平滑过渡 */
  width: 100%;
}

.dialog-ins-wrap-left-product-add-to-cart:disabled{
  cursor: not-allowed;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}