/*! Alpine 初始化前隐藏交互弹层，避免页面闪烁。 */
[x-cloak] {
  display: none !important;
}
/*! 第24批：购物车文字对齐结账页面；图片缩略图不拉伸原图。 */
.bt-cart-line-body p,
.bt-cart-aside dl,
.bt-cart-quantity,
.bt-cart-sku {
  font-size: 15px;
}
.bt-cart-line-body .bt-order-delivery {
  font-size: 14px !important;
}
.bt-cart-aside .bt-order-eta {
  font-size: 15px;
}
.bt-customer-upload {
  margin-top: 16px;
  border-top: 1px solid #dce6f3;
  padding-top: 14px;
}
.bt-customer-upload h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.bt-customer-upload .bt-photo-hint {
  color: #53687e;
  font-size: 13px;
  line-height: 1.6;
}
.bt-customer-upload .bt-photo-warning {
  color: #b42318;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}
.bt-customer-upload form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.bt-customer-upload input[type=file] {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
.bt-customer-upload button {
  color: #196bde;
  padding: 8px 12px;
  border: 1px solid #c4d6ed;
  border-radius: 6px;
  background: white;
  font-size: 13px;
  min-height: 40px;
}
.bt-customer-upload label {
  font-size: 13px;
}
.bt-customer-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.bt-customer-photos img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: white;
}
.bt-customer-photos figure {
  margin: 0;
}
.bt-customer-photos figure form {
  margin-top: 4px;
}
/*! 非模态提示不抢键盘焦点，也不遮罩页面；右下角留给客服入口。 */
.bt-toast {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  flex-wrap: wrap;
}
.bt-genuine {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #117a43;
  font-size: 18px;
}
.bt-genuine svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

/* 汇总行自身曾设置较小字号，需明确覆盖，不能仅依赖 dl 继承。 */
.bt-cart-aside dl > div { font-size: 15px; }
.bt-cart-aside dl > .bt-cart-grand { font-size: 18px; }
/* 桌面端选择文件与上传按钮同行，手机端自然换行。 */
.bt-customer-upload form > label { flex-basis: 100%; }
.bt-customer-upload input[type=file] { flex: 1 1 200px; width: auto; padding: 6px 0; margin: 0; min-height: 34px; height: auto; border: 0; }
.bt-customer-photos:empty { display: none; }
