.froggy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-m, 1.5rem);
  background: rgba(0, 0, 0, .5);
}

.froggy-modal.is-open {
  display: flex;
}

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

.froggy-modal__panel {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 1rem;
  padding: var(--spacing-l, 3rem);
}

.froggy-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.froggy-modal__content {
  font-family: var(--font-default);
}

.froggy-modal__content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.froggy-modal__content .gform_wrapper .gform_footer {
  padding-bottom: 0 !important;
}

/**
 * The modal is hidden by default on the frontend (see above) - but always
 * shown inline in the block editor so its InnerBlocks content is editable.
 */
.editor-styles-wrapper .froggy-modal {
  display: block;
  position: static;
  z-index: auto;
  padding: 0;
  background: none;
}

.editor-styles-wrapper .froggy-modal__panel {
  max-width: none;
  max-height: none;
  overflow: visible;
  box-shadow: 0 0 0 1px var(--color-border, #ddd);
}
