.ui-dialog.external-link-popup.external-link-popup-id-default~.ui-widget-overlay.ui-front {
  background: rgba(63, 42, 86, 0.75);
  opacity: 1;
  backdrop-filter: blur(15px);
}

.ui-dialog.external-link-popup.external-link-popup-id-default {
  max-width: 1030px;
  border-radius: 16px;
  background-image: linear-gradient(to right top, #c0cdc3, #c8d7d3, #d3e0e1, #e1e9ec, #eff2f5, #f3f5f8, #f7f7fb, #fbfafd, #f8f6fb, #f5f2f9, #f3edf7, #f1e9f4);

  .external-link-popup-body p {
    font-size: 19px;
    font-weight: 700;
    color: rgba(83, 84, 89, 1);
    text-align: center;
    margin-bottom: 0;
  }

  .ui-dialog-content {
    background: none;
  }

  .ui-widget-button {
    padding: 7.6px 19px
  }

  .external-link-popup-body span {
    font-size: 19px;
    font-weight: 700;
  }

  .ui-dialog-titlebar,
  .ui-dialog-titlebar-close {
    background: none;
    border: none;
  }

  .ui-dialog-titlebar {
    position: static;
    padding: 0;
    height: 0;
  }

  .ui-dialog-titlebar-close {
    top: 44px;
    right: 40px;
    padding: 0;
    margin: 0;
    z-index: 10;

    span.ui-icon.ui-icon-closethick {
      width: 18px;
      height: 18px;
      margin: 0;
      background: url("/sites/haepatient/files/Cross.svg") no-repeat center;
      top: 0;
      left: 0;
    }
  }

  .external-link-popup-content {
    overflow: unset;
    padding: 136px 60px 32px 60px;
  }

  .ui-dialog-buttonpane {
    border: none;
    padding: 0;
    background: none;

    .ui-dialog-buttonset {
      float: none;
      display: flex;
      justify-content: center;
      gap: 64px;
      padding-bottom: 80px;
      flex-direction: row-reverse;

      button {
        font-weight: 700;
        font-size: 19px;
        color: rgba(162, 0, 103, 1);
        border: 3px solid rgba(162, 0, 103, 1);
        border-radius: 999px;
        background: none;
        display: flex;
        align-items: center;
        margin: 0;
      }

      button:last-child::before {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-right: 8px;
        background: url('/sites/haepatient/files/chevronLeft.svg') no-repeat center;
      }

      button:first-child::after {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 8px;
        rotate: 180deg;
        background: url('/sites/haepatient/files/chevronLeft.svg') no-repeat center;
      }
    }
  }

  @media (max-width: 1023px) {
    .external-link-popup-body {
      font-size: 18px;
    }

    .ui-dialog-titlebar-close {
      display: none;
    }

    .external-link-popup-content {
      padding: 48px 10px 40px 10px;
    }

    .ui-dialog-buttonpane {
      .ui-dialog-buttonset {
        gap: 24px;
      }
    }
  }

  @media (max-width: 375px) {
    .ui-dialog-buttonpane {
      .ui-dialog-buttonset {
        flex-direction: column-reverse;
        align-items: center;
      }
    }
  }
}

.webform-confirmation-modal--content {
  width: auto !important;
  min-height: 95.6px !important;
  max-height: 520.6px !important;
  position: absolute !important;
  top: -224px !important;
  min-width: 102% !important;
  padding: 0px !important;
  border-radius: 20px;
  height: auto;
}

.webform-confirmation-modal .ui-dialog-titlebar {
  position: absolute;
  width: 100%;
  top: 0;
  padding: 0 !important;
}

.webform-confirmation-modal .ui-dialog-title {
  display: none !important;
}

.thankyou-content {
  background: linear-gradient(225.5deg, #f3ecf4 0.86%, #FFFFFF 50.91%, #dde4dd 100%);

  .thankyou-message {
    padding: 88px 20px 72px 20px;
  }
}

.thankyou-content .thankyou-message p:nth-child(1),
.thankyou-content .thankyou-message p:nth-child(2) {
  text-align: center !important;
}

.thankyou-content .thankyou-message p:nth-child(1) {
  color: #A20067 !important;
  font-size: 48px;
  line-height: 52px;

  @media (max-width: 768px) {
    font-size: 28px;
    line-height: 34px;
  }
}

.thankyou-content .thankyou-message p:nth-child(2) a {
  color: white !important;
  text-decoration: none !important;
  margin-top: 18px;
}

.ui-dialog:has(.webform-confirmation-modal--content)~.ui-widget-overlay.ui-front {
  background: rgba(46, 46, 46, 0.90);
  opacity: 1;
}

:root {
  --jui-dialog-z-index: 1260;
  --gin-bg-layer: white;
}

.webform-confirmation-modal--content {
  background-color: white;
  height: auto;
  position: relative !important;
  top: 0px !important;
  min-width: unset !important;
}

.ui-dialog:has(.webform-confirmation-modal--content) {
  background: linear-gradient(225.5deg, rgb(243, 236, 244) 0.86%, rgb(255, 255, 255) 50.91%, rgb(221, 228, 221) 100%) !important;
  border-radius: 20px !important;
  height: auto;
  width: 600px;
  top: 406.106px;
  left: 32.064px;
  z-index: 101;
  position: fixed;
  max-width: 90vw !important;
  padding: 0 !important;

  /* .ui-dialog {
    height: auto;
    width: 600px;
    top: 406.106px;
    left: 32.064px;
    z-index: 101;
    position: fixed;
    max-width: 90vw !important;

  } */
  .ui-dialog-titlebar-close {
    width: 40px !important;
    height: 33px !important;
    z-index: 1260 !important;
    background: none !important;
    border: none !important;
    top: 24px !important;
    right: 20px !important;
    background: none;
    border: none;

    span.ui-icon.ui-icon-closethick {
      background: url("/modules/custom/hae_helpers/images/Cross.svg") no-repeat center !important;
      top: 24px !important;
      right: 20px;
      transform: none;
    }
  }

  .ui-dialog-titlebar{
   background: none;
   border: none;
  }

  .ui-dialog-titlebar-close:hover {
    border-color: transparent !important;
  }

  @media (min-width: 1440px) and (max-width: 1920px) {
    width: 870px !important;
  }
}
