/* Give PayTR's hosted checkout the full viewport instead of the browser's
   default 300x150 iframe/dialog size. */
dialog.payment-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #21181b;
}

dialog.payment-dialog::backdrop {
  background: rgba(28, 20, 23, .58);
}

dialog.payment-dialog > form {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

dialog.payment-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  border: 0;
  background: #fff;
}

dialog.payment-dialog .dialog-close {
  position: fixed;
  z-index: 2147483647;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #eadde2;
  border-radius: 50%;
  background: #fff;
  color: #7f183c;
  box-shadow: 0 4px 16px rgba(34, 18, 24, .18);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

dialog.payment-dialog .dialog-close:focus-visible {
  outline: 3px solid rgba(150, 28, 67, .35);
  outline-offset: 2px;
}
