/* Minimal overrides to support our custom modal + keep embedded form readable. */

.ftcb-modal {
  display: none;
}

.ftcb-modal.is-open {
  display: block;
}

.ftcb-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
}

.ftcb-modal__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  z-index: 2001;
  padding: 30px 20px 20px 20px;
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2),
              0 24px 38px 3px rgba(0, 0, 0, 0.14),
              0 9px 46px 8px rgba(0, 0, 0, 0.12);
}

.ftcb-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

/* Ensure the embedded form doesn't bring a background gap around the panel */
.ftcb-modal__panel #_form_12_ {
  margin-top: 0;
}

@media screen and (max-width: 480px) {
  .ftcb-modal__panel {
    width: 90% !important;
  }
}


