.pisell-scan-order-cart-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 24, 40, 0.45);
}

.pisell-scan-order-cart-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  max-height: 95vh;
  max-height: 95dvh;
  min-height: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(16, 24, 40, 0.12);
}

/* 顶栏仅保留居中拖动手柄横线 */
.pisell-scan-order-cart-header {
  flex-shrink: 0;
  padding: 0;
}

.pisell-scan-order-cart-sheet-handle-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 8px;
}

.pisell-scan-order-cart-sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 100px;
  background: #d0d5dd;
}

.pisell-scan-order-cart-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 12px;
}

.pisell-scan-order-cart-bottom-panel {
  flex-shrink: 0;
  border-top: 1px solid #eaecf0;
  background: #fff;
  padding: 12px 16px 0;
}

.pisell-scan-order-cart-body {
  overflow-y: auto;
  padding: 12px 16px;
}

.pisell-scan-order-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.pisell-scan-order-cart-empty {
  color: #667085;
  text-align: center;
  padding: 24px 0;
}

.pisell-scan-order-cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eaecf0;
}

/* 与 pisell-scan-order-footer 左侧合计样式一致 */
.pisell-scan-order-cart-footer-total-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.pisell-scan-order-cart-footer-total-label {
  color: #101828;
  font-size: 14px;
  line-height: 20px;
}

.pisell-scan-order-cart-footer-total-amount {
  color: #e77d75;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.pisell-scan-order-cart-embedded-footer {
  padding: 12px 16px 20px;
  border-top: 1px solid #eaecf0;
  background: #fff;
}

.pisell-scan-order-cart-embedded-confirm-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 移动端：结算内嵌卡 — 与 pisell-scan-order-content-mobile-wrap 的底部留白配合；
 * 不再在 cart-body 上重复 96px，否则与外层叠加会出现大块空白，sticky 在整页滚动时也会与内容同步位移 */
.pisell-scan-order-content-mobile-wrap {
  .pisell-scan-order-cart-body-embedded {
    padding-bottom: 16px;
  }

  .pisell-scan-order-cart-embedded-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 28;
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eaecf0;
    background: #fff;
    box-shadow: 0 -4px 10px rgba(16, 24, 40, 0.06);
  }
}
