.mmd-vm-native-popup[hidden] { display: none !important; }
.mmd-vm-native-popup:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  overflow: auto;
  background: transparent !important;
  opacity: 1 !important;
  filter: none !important;
}
.mmd-vm-native-dialog {
  z-index: 1;
  opacity: 1 !important;
  filter: none !important;
  position: relative;
  box-sizing: border-box;
  width: min(100%, 680px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 18px;
  background: #fff !important;
  color: #24283a !important;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .28);
}
.mmd-vm-native-dialog h2 { margin: 0 42px 18px 0; }
.mmd-vm-popup-text { line-height: 1.6; }
.mmd-vm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
body.mmd-vm-popup-active { overflow: hidden; }
@media (max-width: 600px) {
  .mmd-vm-native-popup:not([hidden]) { padding: 14px; }
  .mmd-vm-native-dialog { max-height: calc(100vh - 28px); padding: 28px 22px; border-radius: 14px; }
}
