.jotform-integration {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.jotform-integration-iframe {
  min-width: 100%;
  max-width: 100%;
  height: 1300px; /** Set minimum height */
  border: none;
  overflow: hidden;
}

.jotform-integration-content {
  width: 100%;
  min-height: 100%;
  line-height: 0;
  position: relative;
}

.jotform-integration-content .iframe-loader-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  z-index: 5;
  padding-top: 20%;
}

.jotform-integration-content .iframe-loader-container .loader {
  position: relative;
  height: auto;
  line-height: 50px;
  text-align: center;
  transform: skewX(20deg);
  padding: 10px 16px;
  outline: none;
  border: none;
  box-shadow: none;
  background-image: linear-gradient(#ed0000, #ed0000),
    linear-gradient(#ed0000, #ed0000), linear-gradient(#ed0000, #ed0000),
    linear-gradient(#ed0000, #ed0000);
  background-position: 0 0, 0 0, 0 100%, 0 100%, 0 0, 0 0, 0 100%, 100% 0;
  background-size: 4px 0%, 0% 4px, 0% 4px, 4px 0%;
  background-color: transparent;
  background-repeat: no-repeat;
  transition: 0.2s linear;
  animation: animate-loader 1.9s linear infinite 0.2s;
  width: 70%;
  max-width: 300px;
}

.iframe-loader-container .loader .loaderText {
  display: inline-block;
  transform: skewX(-20deg);
  color: #ed0000;
  font-size: 24px;
}

/** Drawer related styles */
.jw-drawer .jotform-integration {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.jw-drawer .jotform-integration-iframe {
  height: 100% !important;
  overflow: auto !important;
}

@keyframes animate-loader {
  0% {
    background-position: 0 100%, 0 0, 0 100%, 100% 0, 0 0, 0 0, 0 100%, 100% 0;
    background-size: 4px 0%, 100% 4px, 0% 4px, 4px 0%;
  }
  40% {
    background-position: 0 100%, 100% 0, 100% 100%, 100% 0, 0 0, 0 0, 0 100%,
      100% 0;
    background-size: 4px 0%, 100% 4px, 0% 4px, 4px 100%;
  }
  60% {
    background-position: 0 100%, 100% 0, 100% 100%, 100% 100%, 0 0, 0 0, 0 100%,
      100% 0;
    background-size: 4px 0%, 0% 4px, 100% 4px, 4px 100%;
  }
  70% {
    background-position: 0 100%, 100% 0, 0% 100%, 100% 100%, 0 0, 0 0, 0 100%,
      100% 0;
    background-size: 4px 100%, 0% 4px, 100% 4px, 4px 0%;
  }
  80% {
    background-position: 0% 0%, 0% 0, 0% 100%, 100% 100%, 0 0, 0 0, 0 100%,
      100% 0;
    background-size: 4px 100%, 0% 4px, 0% 4px, 4px 0%;
  }
  100% {
    background-position: 0% 0%, 0 0, 0 100%, 100% 100%, 0 0, 0 0, 0 100%, 100% 0;
    background-size: 4px 0%, 100% 4px, 0% 4px, 4px 0%;
  }
}
