.js-publisher-dialog {
  padding: 0 !important;
  max-width: 48rem;
  max-height: min(52rem, calc(100dvh - 5rem));
}

.js-publisher-dialog > #modal-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .js-publisher-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0 !important;
  }

  .js-publisher-dialog,
  .js-publisher-dialog[data-placement="auto"],
  .js-publisher-dialog[data-placement="center"],
  .js-publisher-dialog[data-placement="bottom"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

body.publisher-modal-open {
  overflow: hidden;
}
