@import '../common/index.wxss';

.van-dialog {
  top: 45%!important;
  overflow: hidden;
  width: 640rpx;
  width: var(--dialog-width,640rpx);
  font-size: 32rpx;
  font-size: var(--dialog-font-size,32rpx);
  border-radius: 32rpx;
  border-radius: var(--dialog-border-radius,32rpx);
  background-color: #fff;
  background-color: var(--dialog-background-color,#fff);
}

@media (max-width:321px) {
  .van-dialog {
    width: 90%;
    width: var(--dialog-small-screen-width,90%);
  }
}

.van-dialog__header {
  text-align: center;
  padding-top: 48rpx;
  padding-top: var(--dialog-header-padding-top,48rpx);
  font-weight: 500;
  font-weight: var(--dialog-header-font-weight,500);
  line-height: 48rpx;
  line-height: var(--dialog-header-line-height,48rpx);
}

.van-dialog__header--isolated {
  padding: 48rpx 0;
  padding: var(--dialog-header-isolated-padding,48rpx 0);
}

.van-dialog__message {
  overflow-y: auto;
  text-align: center;
  -webkit-overflow-scrolling: touch;
  font-size: 28rpx;
  font-size: var(--dialog-message-font-size,28rpx);
  line-height: 40rpx;
  line-height: var(--dialog-message-line-height,40rpx);
  max-height: 60vh;
  max-height: var(--dialog-message-max-height,60vh);
  padding: 48rpx;
  padding: var(--dialog-message-padding,48rpx);
}

.van-dialog__message-text {
  word-wrap: break-word;
}

.van-dialog__message--hasTitle {
  padding-top: 16rpx;
  padding-top: var(--dialog-has-title-message-padding-top,16rpx);
  color: #646566;
  color: var(--dialog-has-title-message-text-color,#646566);
}

.van-dialog__message--round-button {
  padding-bottom: 32rpx;
  color: #323233;
}

.van-dialog__message--left {
  text-align: left;
}

.van-dialog__message--right {
  text-align: right;
}

.van-dialog__footer {
  display: -webkit-flex;
  display: flex;
}

.van-dialog__footer--round-button {
  position: relative!important;
  padding: 16rpx 48rpx 32rpx!important;
}

.van-dialog__button {
  -webkit-flex: 1;
  flex: 1;
}

.van-dialog__cancel,
.van-dialog__confirm {
  border: 0!important;
}

.van-dialog-bounce-enter {
  -webkit-transform: translate3d(-50%,-50%,0) scale(.7);
  transform: translate3d(-50%,-50%,0) scale(.7);
  opacity: 0;
}

.van-dialog-bounce-leave-active {
  -webkit-transform: translate3d(-50%,-50%,0) scale(.9);
  transform: translate3d(-50%,-50%,0) scale(.9);
  opacity: 0;
}