html.rdo-ios12,
html.rdo-ios12 body {
  min-height: 100%;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

html.rdo-ios12 button,
html.rdo-ios12 input,
html.rdo-ios12 select,
html.rdo-ios12 textarea {
  font-family: inherit;
}

html.rdo-ios12 dialog,
html.rdo-ios12 .dialog,
html.rdo-ios12 .modal,
html.rdo-ios12 .rdo-confirma {
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

html.rdo-ios12 .bottom-nav,
html.rdo-ios12 .mobile-bottom-nav,
html.rdo-ios12 .rdo-mobile-nav {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-around;
  justify-content: space-around;
}

/* <dialog> não existe nativamente no Safari/iOS 12.
   Regra explícita para impedir que pop-ups fechados apareçam como blocos. */
html.rdo-ios12 dialog:not([open]) {
  display: none !important;
}

html.rdo-ios12 dialog[open] {
  display: block;
  position: fixed;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2147483000;
}

html.rdo-ios12 dialog[open][data-rdo-dialog-polyfill="modal"] {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
