/** Shopify CDN: Minification failed

Line 12:41 Expected ":"

**/
/* 推荐组合购买组件 */
.buy-together-upsell-wrapper {
  width: 100%;
  margin: var(--bt-spacing-top) 0 var(--bt-spacing-bottom);
  padding: 12px;
  border-radius: 8px;
  box-sizing: border-box;bt-submit-button
  font-family: Poppins, sans-serif;
}

.bt-heading {
  margin: 0 0 10px;
  color: #222;
  font-size: var(--bt-heading-size);
  font-weight: 600;
  line-height: 1.3;
}

.bt-product-list {
  display: grid;
  grid-auto-columns: calc((100% - (var(--bt-columns) - 1) * 10px) / var(--bt-columns));
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.bt-product-card {
  position: relative;
  display: grid;
  /* 为三行商品标题预留完整行高，避免 g、y、p 等下行字母被裁切。 */
  grid-template-rows: auto 3.9em auto auto;
  align-content: start;
  min-width: 0;
  /* 选择状态仅由复选框显示，商品图片和文字始终保持正常亮度。 */
  scroll-snap-align: start;
}

.bt-product-select {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.bt-product-checkbox {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #805586;
  cursor: pointer;
}

.bt-product-image-link {
  display: block;
  overflow: hidden;
  margin-bottom: 7px;
  aspect-ratio: 1;
  background: #f6f4f2;
}

.bt-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bt-product-title {
  display: -webkit-box;
  min-width: 0;
  /* 固定为三行高度，避免主题全局链接样式使标题撑到第四行。 */
  height: 3.9em;
  max-height: 3.9em;
  overflow: hidden;
  color: #222;
  font-size: var(--bt-product-text-size);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.bt-product-title:hover {
  text-decoration: underline;
}

.bt-product-price {
  /* 使用负间距跨过独立网格行的边界，让价格位置产生清晰可见的上移。 */
  margin: -4px 0 7px;
  color: #7d4f83;
  font-size: var(--bt-product-text-size);
  font-weight: 600;
  line-height: 1.3;
}

.bt-variant-label {
  position: relative;
  display: block;
  min-width: 0;
  /* 消除行内下拉框的基线空隙，确保箭头按实际框高垂直居中。 */
  line-height: 0;
}

.bt-variant-label::after {
  position: absolute;
  /* 边框旋转形成的箭头视觉重心偏下，上移 5px 后与选项文字水平对齐。 */
  top: calc(50% - 5px);
  right: 10px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #222;
  border-bottom: 1.5px solid #222;
  content: '';
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
}

.bt-variant-select {
  display: block;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 4px 24px 4px 7px;
  overflow: hidden;
  border: 1px solid #d4d0cc;
  border-radius: 2px;
  background-color: #fff;
  color: #222;
  cursor: pointer;
  font: inherit;
  font-size: var(--bt-product-text-size);
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.bt-submit-button {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 9px 16px;
  border: 1px solid var(--bt-button-background);
  border-radius: 8px;
  background: var(--bt-button-background);
  color: var(--bt-button-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.bt-submit-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--bt-button-background), #000 18%);
}

.bt-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.bt-form-status {
  min-height: 0;
  margin: 0;
  color: #b42318;
  font-size: 11px;
}

.bt-form-status:not(:empty) {
  margin-top: 7px;
}

/* 批量加购成功提示 */
.bt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

.bt-modal.active {
  display: flex;
}

.bt-modal-content {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.bt-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  font-size: 24px;
}

.bt-modal-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 20px;
}

.bt-modal-product-image {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border: 1px solid #eee;
  object-fit: contain;
}

.bt-modal-product-title,
.bt-modal-message {
  margin: 0;
  color: #333;
  line-height: 1.4;
}

.bt-modal-product-title {
  font-size: 15px;
  font-weight: 600;
}

.bt-modal-message {
  color: #666;
  font-size: 13px;
}

.bt-modal-continue {
  width: 100%;
  margin-top: 20px;
  padding: 11px 16px;
  border: 1px solid #222;
  background: #fff;
  color: #222;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .buy-together-upsell-wrapper {
    padding: 10px;
  }

  .bt-product-list {
    grid-auto-columns: calc((100% - (var(--bt-mobile-columns) - 1) * 8px) / var(--bt-mobile-columns));
    gap: 8px;
    /* 移动端缩小商品列表与提交按钮之间的空隙。 */
    padding-bottom: 4px;
  }

  .bt-submit-button {
    margin-top: 0;
  }
}
