dialog.fluent-form-popup:not([open]) {
  display: none;
}

dialog.fluent-form-popup {
  box-sizing: border-box;
  width: min(36rem, 90vw);
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto;
  padding: clamp(1rem, 4vw, 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0.75rem;
  background: var(--wp--preset--color--base, #fff);
  color: var(--wp--preset--color--contrast, #222);
}

dialog.fluent-form-popup::backdrop {
  background: rgb(0 0 0 / 55%);
}

.fluent-form-popup__controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.5rem;
}

.fluent-form-popup__close {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0.375rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}
