/**
 *  Product Link Loader
 *  Based on ndk_advanced_custom_fields loader animation
*/

/* Product navigation loader container */
.pace.product-nav-loader {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  background-color: rgba(255, 255, 255, 0.95);
  pointer-events: auto;
  cursor: wait;
}

.pace.product-nav-loader .pace-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pace.product-nav-loader .pace-spinner {
  height: 80px;
  width: 80px;
  border: 15px solid #e7e7e7;
  border-radius: 50%;
  border-top: 15px solid #00a46a;
  animation: spinner-rotate 1s linear infinite;
}

.pace.product-nav-loader .pace-text {
  text-align: center;
  font-size: 1.6rem;
  color: #333;
}

@keyframes spinner-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
  text-align: center;
  width: 100%;
}

#ndkloader {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100vh;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.reveal-text,
.reveal-text::after {
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-duration: 2500ms;
  animation-duration: 2500ms;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.reveal-text {
  position: relative;
  font-size: 2vw;
  display: block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-animation-name: reveal-text;
  animation-name: reveal-text;
  color: var(--ndkacf-ui-main-text-color);
  white-space: nowrap;
  cursor: default;
  line-height: initial;
}

.reveal-text::after {
  content: "";
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 0 50%;
  transform-origin: 0 50%;
  pointer-events: none;
  -webkit-animation-name: revealer-text;
  animation-name: revealer-text;
}

@-webkit-keyframes reveal-text {
  from {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes reveal-text {
  from {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@-webkit-keyframes revealer-text {
  0%,
  50% {
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
  }

  60%,
  100% {
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
  }

  60% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }

  100% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
}

@keyframes revealer-text {
  0%,
  50% {
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
  }

  60%,
  100% {
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
  }

  60% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }

  100% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
}

/*
The loaders use CSS custom properties (variables) to control the attributes of the loaders
*/

.loader,
.loader:before,
.loader:after {
  box-sizing: border-box;
  flex-grow: 0;
  flex-shrink: 0;
}
/*
In order to get optimal results, please only change the 
variables above and don't change anything in the actual loader code
*/

/*
    Blasting Ripple Styles
*/
@keyframes blast-ripple {
  0% {
    top: calc(var(--ndkacf-loader-height, 100px) / 2 - var(--ndkacf-line-width, 4px));
    left: calc(var(--ndkacf-loader-width, 100px) / 2 - var(--ndkacf-line-width, 4px));
    width: 0px;
    height: 0px;
    opacity: 1;
  }
  100% {
    top: -1px;
    left: -1px;
    width: calc(var(--ndkacf-loader-width, 100px) - var(--ndkacf-line-width, 4px));
    height: calc(var(--ndkacf-loader-height, 100px) - var(--ndkacf-line-width, 4px));
    opacity: 0;
  }
}

.loader.blasting-ripple {
  position: relative;
  width: var(--ndkacf-loader-width, 100px);
  height: var(--ndkacf-loader-height, 100px);
}

.loader.blasting-ripple::after {
  opacity: 0;
  content: "";
  position: absolute;
  border: var(--ndkacf-line-width, 4px) solid var(--ndkacf-loader-color-primary, #00f);
  opacity: 1;
  border-radius: 50%;
  animation: blast-ripple var(--ndkacf-animation-duration, 1s)
    cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.loader.blasting-ripple::before {
  opacity: 0;
  top: calc(var(--ndkacf-loader-height, 100px) / 2 - var(--ndkacf-line-width, 4px));
  left: calc(var(--ndkacf-loader-width, 100px) / 2 - var(--ndkacf-line-width, 4px));
  content: "";
  position: absolute;
  border: var(--ndkacf-line-width, 4px) solid var(--loader-color-secondary, #00f);
  opacity: 1;
  border-radius: 50%;
  animation: blast-ripple var(--ndkacf-animation-duration, 1s)
    cubic-bezier(0, 0.2, 0.8, 1) infinite;
  animation-delay: calc(var(--ndkacf-animation-duration, 1s) / 2);
}

.small_loader_container #ndkloader {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--ndkacf-ui-main-bg);
  opacity: 0.8;
}

@-webkit-keyframes shockwaveJump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  50% {
    transform: scale(0.98);
  }
  55% {
    transform: scale(1.02);
  }
  60% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shockwaveJump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  50% {
    transform: scale(0.98);
  }
  55% {
    transform: scale(1.02);
  }
  60% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}
@-webkit-keyframes shockwave {
  0% {
    transform: scale(1);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15), inset 0 0 1px rgba(0, 0, 0, 0.15);
  }
  95% {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0), inset 0 0 30px rgba(0, 0, 0, 0);
  }
  100% {
    transform: scale(2.25);
  }
}
@keyframes shockwave {
  0% {
    transform: scale(1);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15), inset 0 0 1px rgba(0, 0, 0, 0.15);
  }
  95% {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0), inset 0 0 30px rgba(0, 0, 0, 0);
  }
  100% {
    transform: scale(2.25);
  }
}
