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

.xs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,45,45,.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.xs-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.xs-modal-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xs-modal-shell > .wrap-modal {
  display: block !important;
  position: relative;
  z-index: 9999;
  margin: 0;
}

.xs-modal-shell > .wrap-modal .modal,
.xs-modal-shell > .wrap-modal .modal-content,
.xs-modal-shell > .wrap-modal .form,
.xs-modal-shell > .wrap-modal .form__item,
.xs-modal-shell > .wrap-modal .wpcf7,
.xs-modal-shell > .wrap-modal form {
  position: relative;
  z-index: 2;
}

.xs-modal-shell > .wrap-modal * {
  pointer-events: auto;
}

.xs-modal-close.f-button,
.wrap-modal .f-button[data-fancybox-close] {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
}

.xs-modal-close svg,
.wrap-modal .f-button[data-fancybox-close] svg {
  width: 20px;
  height: 20px;
}
