/* components/hh-modal/hh-modal.wxss */
.modal-wrap {
  background: rgba(0, 0, 0, .5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 496rpx;
  background: #fff;
  border-radius: 20rpx;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.modal-title {
  font-size: 30rpx;
  color: rgba(50, 50, 50, 1);
  height: 130rpx;
  line-height: 130rpx;
  font-weight: 500;
}

.modal-text {
  font-size: 30rpx;
  line-height: 46rpx;
  color: #323232;
  width: 100%;
  box-sizing: border-box;
  padding: 66rpx 30rpx 47rpx 30rpx;
}

.modal-button {
  height: 90rpx;
  min-height: 90rpx;
  border-top: 1px solid #E6E6E6;
  display: flex;
  align-items: center;
  font-size: 32rpx;
  box-sizing: border-box;
}

/* 取消 / 确定固定等分：flex-basis 取 0，避免宿主 app.wxss 的 button 标签选择器
   （如 width:100%）把按钮撑宽，导致「取消」被压窄、弹窗布局异常 */
.modal-cancel {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 90rpx;
  line-height: 90rpx;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: rgba(100, 100, 100, 1);
  font-size: 32rpx;
  font-weight: 400;
  text-align: center;
  border-right: 1px solid #E6E6E6;
}

.modal-confirm {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 90rpx;
  line-height: 90rpx;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  overflow: visible;
  color: rgba(0, 166, 255, 1);
  background-color: #fff;
  font-size: 32rpx;
  font-weight: 400;
  text-align: center;
}

/* 类选择器优先级高于宿主 app.wxss 的 button::after 等标签选择器，确保去掉原生按钮边框 */
button::after {
  border: none;
}

button.modal-confirm::after {
  border: none;
}