html[data-ui-contain="1"] .van-popup.van-toast {
  left: calc((100vw - var(--app-max-width)) / 2 + var(--app-max-width) / 2) !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  width: fit-content !important;
  height: auto !important;
  max-width: min(calc(var(--app-max-width) - 24px), 70%) !important;
  min-height: var(--van-toast-default-min-height) !important;
  margin-left: 0 !important;
  transform: translate3d(-50%, -50%, 0) !important;
}

html[data-ui-contain="1"] .van-popup.van-toast.van-toast--top {
  top: var(--van-toast-position-top-distance) !important;
  transform: translateX(-50%) !important;
}

html[data-ui-contain="1"] .van-popup.van-toast.van-toast--bottom {
  top: auto !important;
  bottom: var(--van-toast-position-bottom-distance) !important;
  transform: translateX(-50%) !important;
}

html[data-ui-contain="1"] .van-popup.van-dialog,
html[data-ui-contain="1"] .van-popup.van-dialog.van-popup--center {
  left: calc((100vw - var(--app-max-width)) / 2 + var(--app-max-width) / 2) !important;
  right: auto !important;
  margin-left: 0 !important;
  max-width: calc(var(--app-max-width) - 24px) !important;
  transform: translate3d(-50%, -50%, 0) !important;
}

.van-popup.van-toast,
.van-popup.van-toast.van-popup--center {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate3d(-50%, -50%, 0) !important;
}

.van-popup.van-toast.van-toast--top {
  top: var(--van-toast-position-top-distance) !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
}

.van-popup.van-toast.van-toast--bottom {
  top: auto !important;
  bottom: var(--van-toast-position-bottom-distance) !important;
  transform: translateX(-50%) !important;
}

.van-popup.van-dialog,
.van-popup.van-dialog.van-popup--center,
.van-popup.van-popup--center:not(.van-action-sheet):not(.van-share-sheet):not(.van-calendar):not(.van-picker):not(.van-cascader) {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate3d(-50%, -50%, 0) !important;
}

.van-overlay {
  position: fixed !important;
  inset: 0 !important;
}