.ofb-popup-lock {
  overflow: hidden;
}

.ofb-contact-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding: clamp(18px, 4vw, 40px);
  overflow-y: auto;
  background: rgba(3, 13, 26, 0.72);
}

.ofb-contact-popup.is-open {
  display: flex;
}

.ofb-contact-popup__dialog {
  position: relative;
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  margin: auto !important;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 8px;
  background: #1b222d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  color: #ffffff;
}

.ofb-contact-popup__dialog > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ofb-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  margin: 0 !important;
}

.ofb-popup-close .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0;
  font-weight: 400;
  line-height: 1;
}

.ofb-popup-close .wp-block-button__link::before {
  content: "\00d7";
  font-size: 2rem;
  line-height: 1;
}

.ofb-popup-close .wp-block-button__link:hover,
.ofb-popup-close .wp-block-button__link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ofb-popup-close .wp-block-button__link:focus-visible {
  outline: 2px solid #25d0c3;
  outline-offset: 2px;
}

.ofb-contact-popup .wp-block-kadence-advanced-form {
  box-sizing: border-box;
  margin: 0;
  padding: clamp(54px, 7vw, 64px) clamp(22px, 5vw, 44px) clamp(26px, 5vw, 44px);
  background: #1b222d;
}

@media (max-width: 600px) {
  .ofb-contact-popup {
    align-items: flex-start;
    padding: 14px;
  }

  .ofb-contact-popup__dialog {
    max-height: calc(100vh - 28px);
  }
}
