.ui-dialog-share-email.ui-widget-content {
  z-index: 1030;
  border: none;
  box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.4);
}

@media only screen and (max-width: 1024px) {
  .ui-dialog-share-email.ui-widget-content {
    position: absolute;
    top: 6% !important;
  }
}

.ui-dialog-share-email .ui-widget-content {
  border: none;
}

@media only screen and (min-width: 766px) {
  .ui-dialog-share-email .ui-widget-content {
    overflow: visible !important;
  }
}

.ui-dialog-share-email .ui-widget-header {
  border: none;
  background: none;
  margin-top: 17px;
  padding: 0;
}

.ui-dialog-share-email .webform-submission-form {
  min-height: auto;
  padding: 0;
}

.ui-dialog-share-email .ui-widget-content .btn-outline-danger {
  color: #e00034;
}

.ui-dialog-share-email .ui-widget-content .btn-outline-danger:hover {
  color: #fff;
}

.email-share-wrap-image {
  background: url("../images/logo-email-share.svg") no-repeat center;
  min-height: 80px;
  background-size: contain;
}

.ui-dialog .ui-dialog-titlebar .share-email-close {
  border: none !important;
  background-color: transparent !important;
  background-image: url("../images/close.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  z-index: 500 !important;
}

.share-email-close > *{
  all: initial;
}

@media only screen and (max-width: 991px) {
  .ui-dialog-share-email .email-share-image {
    max-width: 40%;
    margin: 0 auto !important;
  }

  .ui-dialog-share-email h2 {
    font-size: 2.2rem;
    line-height: normal;
  }
}

.ui-dialog-share-email .input-wrapper > .webform-button--submit {
  display: block !important;
  width: auto !important;
  height: auto !important;
  padding: 0.8rem 2.8rem !important;
  border: 0 !important;
  overflow: visible !important;
}

.ui-dialog-share-email.ui-dialog .ui-dialog-buttonpane {
  display: none;
}

@media only screen and (max-width: 767px) {
  .ui-dialog-share-email {
    max-width: 320px !important;
    height: auto !important;
  }
}

@media only screen and (min-width: 768px) {
  .ui-dialog-share-email {
    width: 100% !important;
    height: 100% !important;
    max-width: 677px;
    max-height: 620px;
  }

  .email-share-wrap-image {
    background: url("../images/logo-email-share.svg") no-repeat center;
    min-height: 160px;
  }
}

@media only screen and (min-width: 992px) {
  .ui-dialog-share-email {
    max-height: 423px;
  }

  .email-share-wrap-image {
    background-size: 122%;
  }
}

.ui-dialog-share-email .webform-confirmation {
  display: flex;
  justify-content: center;
  justify-items: center;
}

.share-email-btn-close {
  font-family: "Open Sans", sans-serif !important;
  font-weight: 700 !important;
  border-radius: 25px !important;
  border: 2px solid !important;
}
