/* === 开通收款：全屏左滑 Drawer（patch mch dist，非 mch 源码） === */
.open-payh5-btn {
  display: block;          /* 独占一行，跟"编辑商户号"上下排列，不挤在一行 */
  width: fit-content;      /* 宽度按内容自适应，不撑满整列 */
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #409eff;
  border: 1px solid #409eff;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 3px;
  margin: 0 0 6px 0;       /* 下方留 6px 间距 */
  vertical-align: middle;
}
.open-payh5-btn:hover { background: #66b1ff; border-color: #66b1ff; }

.open-payh5-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 2147483647;     /* 最大值 +1 拖到三层最顶，不被 mch 任何元素抢 */
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.open-payh5-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.open-payh5-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;                /* 抽屉宽 40% */
  max-width: 560px;          /* 大屏上限 560px，避免过宽 */
  min-width: 320px;          /* 小屏下限 320px，保证 H5 可用 */
  background: #fff;
  z-index: 2147483647;
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  will-change: transform;
  box-shadow: 4px 0 12px rgba(0, 0, 0, .15);  /* 右侧加阴影更清楚边界 */
}
.open-payh5-drawer.show {
  transform: translateX(0);
  pointer-events: auto;
}

.open-payh5-header {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #ebeef5;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  background: #fff;
}
.open-payh5-close {
  margin-left: auto;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #909399;
  user-select: none;
}
.open-payh5-close:hover { color: #409eff; }
.open-payh5-iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #f5f7fa;
}

/* 操作列容器：让两个按钮并排显示且不换行 */
.open-payh5-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
}
