/**
 * UI Dialog content.
 */
.ui-dialog .ui-dialog-content {
  padding: 1em;
}

/**
 * Layout select ajax loader indicator.
 */
.layout-select .ajax-progress-throbber:before,
.layout-select .ajax-progress-fullscreen:before {
  height: 50px;
  width: 50px;
  border-width: 5px;
}

/**
 * General layout styles.
 */
.lpb-layout {
  padding: 25px 0;
}
.js-lpb-region {
  min-height: 40px !important;
}
.layout-icon__region--empty-right,
.layout-icon__region--empty-left {
  stroke: none;
  fill: none;
}

/**
 * Layout Paragraphs component selector
 */
.lpb-component-list {
  padding: 10px 20px
}
.lpb-component-list__group--content {
  margin: -7px;
  width: auto
}
.lpb-component-list__item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px transparent;
  flex-basis: calc(25% - 14px);
  margin: .35rem;
  padding: .5rem;
  position: relative;
  transition: box-shadow 0.3s
}
.lpb-component-list__item a {
  -ms-flex-direction: column;
  flex-direction: column;
  font-size: .7rem;
  font-weight: 500 !important;
  height: 100%;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin: 0;
  text-align: center
}
.lpb-component-list__item a:before {
  bottom: 0;
  content: '';
  left: 0;
  position: absolute;
  right: 0;
  top: 0
}
.lpb-component-list__item a .icon {
  align-self: flex-start;
  margin: 5px 0 10px;
  opacity: 1;
  text-align: center;
  transition: opacity 0.3s;
  width: 100%
}
.lpb-component-list__item a .icon img {
  margin: 0 0 10px;
  max-height: 70px;
  max-width: 120px;
  -ms-transform: scale(1);
  transform: scale(1);
  transition: transform 0.3s
}
.lpb-component-list__item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08)
}
.lpb-component-list__item:hover .icon {
  opacity: 0.7
}
.lpb-component-list__item:hover .icon img {
  -ms-transform: scale(1.03);
  transform: scale(1.03)
}

/**
 * Empty vertical Section/Row
 */
.lpb-layout.mt-none,
.lpb-layout.pt-none {
  padding-top: 30px !important;
}
.lpb-layout.mb-none,
.lpb-layout.pb-none {
  padding-bottom: 30px !important;
}

/**
 * Ajax progress indicator
 */
.lpb-component-list [class^='ajax-progress'],
.node-form [class^='ajax-progress'],
.layout-paragraphs-component-form [class^='ajax-progress'] {
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 0 !important;
  height: 100vh !important;
  left: 50% !important;
  margin: 0 !important;
  opacity: 1;
  overflow: hidden;
  padding: 0;
  position: fixed !important;
  text-indent: -99999em;
  top: 50% !important;
  transform: translate(-50%, -50%);
  width: 100vw !important;
  z-index: 999999 !important;
}

.lpb-component-list [class^='ajax-progress']:before,
.node-form [class^='ajax-progress']:before,
.layout-paragraphs-component-form [class^='ajax-progress']:before {
  -webkit-animation: flip 1s infinite linear;
  animation: flip 1s infinite;
  background: url('../images/ajax-loader-twel-icon.svg') no-repeat center;
  background-size: contain;
  bottom: 0;
  content: '';
  display: block;
  height: 35px;
  left: 0;
  margin: auto;
  overflow: hidden;
  position: absolute;
  right: 0;
  text-indent: -99999em;
  top: 0;
  width: 35px;
  z-index: 9999999;
}

/**
 * AJAX FLIP ANIMATION.
 */
@-webkit-keyframes flip {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(-360deg);
  }
}
@keyframes flip {
  from {
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  to {
    -ms-transform: rotateY(-360deg);
    transform: rotateY(-360deg);
  }
}
