.ostro-dialog {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: calc(100% - 52px);
  margin: 52px 0 0;
  border: none;
  border-radius: 16px 16px 0 0;
  padding: 0;
  overflow: visible;
  display: none;
}

.ostro-iframe {
  width: 100%;
  height: 100%;
  border-radius: 16px 16px 0 0;
  border: none;
}

@media screen and (max-width: 767px) {
  .ostro-dialog {
    border-radius: 25px 25px 0 0;
  }
  .ostro-iframe {
    border-radius: 25px 25px 0 0;
  }
}

.ostro-close-button {
  position: absolute;
  top: -40px;
  right: 15px;
  width: 70px;
  height: 30px;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.ostro-close-button:focus {
  outline: none;
}

.ostro-dialog[open] {
  animation: ostro-show-dialog .5s ease normal;
  display: block;
}

.ostro-dialog.ostro-hide {
  animation: ostro-hide-dialog .5s ease normal;
}

@keyframes ostro-show-dialog {
  from {
    opacity: 0;
    scale: 0.9;
    /* transform: translateY(-100%); */
  }

  to {
    /* transform: translateY(0%); */
    scale: 1;
    opacity: 1;
  }
}

@keyframes ostro-hide-dialog {
  to {
    opacity: 0;
    scale: 0.9;
    /* transform: translateY(-100%); */
  }
}

.ostro-dialog::backdrop {
  background-color: rgba(0, 0, 0, .6);
}

.ostro-dialog[open]::backdrop {
  animation: ostro-show-backdrop 0.5s ease normal;
}

.ostro-dialog.ostro-hide::backdrop {
  animation: ostro-hide-backdrop 0.5s ease normal;
}

@keyframes ostro-show-backdrop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ostro-hide-backdrop {
  to {
    opacity: 0;
  }
}