@font-face {
  font-family: 'Wati Progressive Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url('https://cdn.clare.ai/material-icons/fonts/inter/Inter-VariableFont_slnt,wght.ttf')
    format('truetype-variations');
}

.wati-progressive-signup-loading {
  --wati-progressive-signup-font-family:
    'Wati Progressive Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  min-width: 320px;
  min-height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  overflow: hidden;
  color: #1f1f1f;
  background: #f5f6fa;
  font-family: var(--wati-progressive-signup-font-family);
}

.wati-progressive-signup-loading--standalone,
.wati-progressive-signup-loading--react,
.wati-show-progressive-signup-loading .wati-progressive-signup-loading--shell {
  display: flex;
}

.wati-progressive-signup-loading__header {
  display: flex;
  width: 100%;
  height: 55px;
  flex: 0 0 55px;
  align-items: center;
  justify-content: center;
  background: #f5f6fa;
}

.wati-progressive-signup-loading__logo {
  display: block;
  width: 100px;
  height: auto;
}

.wati-progressive-signup-loading__surface {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 4px;
  border: 1px solid #e7e9e8;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.wati-progressive-signup-loading__content {
  display: flex;
  width: min(560px, calc(100vw - 32px));
  min-height: 274px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding: 48px;
  text-align: center;
}

.wati-progressive-signup-loading__pulse {
  position: relative;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  backface-visibility: hidden;
  contain: layout paint;
  transform-origin: center;
  will-change: transform;
}

.wati-progressive-signup-loading__ellipse {
  position: absolute;
  inset: 0;
  display: block;
  width: 100px;
  height: 100px;
  animation: wati-progressive-signup-loader-outer 2.5s infinite;
  animation-delay: var(--wati-progressive-signup-loading-delay, 0ms);
  transform-origin: center;
  will-change: opacity, transform;
}

.wati-progressive-signup-loading__ellipse--inner {
  inset: 10px;
  width: 80px;
  height: 80px;
  animation-name: wati-progressive-signup-loader-inner;
}

.wati-progressive-signup-loading__icon {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: #23a455;
  place-items: center;
}

.wati-progressive-signup-loading__icon img {
  display: block;
  width: 16px;
  height: 20px;
  animation: wati-progressive-signup-loader-hourglass 2.5s linear infinite;
  animation-delay: var(--wati-progressive-signup-loading-delay, 0ms);
  transform-origin: center;
  will-change: transform;
}

.wati-progressive-signup-loading__message {
  margin: 24px 0 0;
  color: #1b1d1c;
  font-family: var(--wati-progressive-signup-font-family);
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 26px;
  text-align: center;
  white-space: nowrap;
}

.wati-progressive-signup-loading[data-progressive-signup-loading-variant='post-icp']
  .wati-progressive-signup-loading__message,
.wati-progressive-signup-loading[data-progressive-signup-loading-variant='default']
  .wati-progressive-signup-loading__message {
  line-height: 28px;
}

.wati-progressive-signup-loading__description {
  margin: 8px 0 0;
  color: #848a86;
  font-family: var(--wati-progressive-signup-font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20px;
  text-align: center;
}

@keyframes wati-progressive-signup-loader-outer {
  0% {
    animation-timing-function: ease-out;
    opacity: 1;
    transform: scale(1);
  }

  40% {
    animation-timing-function: ease-in-out;
    opacity: 0.5;
    transform: scale(1.15);
  }

  80%,
  100% {
    animation-timing-function: linear;
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wati-progressive-signup-loader-inner {
  0%,
  16% {
    animation-timing-function: linear;
    opacity: 1;
    transform: scale(1);
  }

  48% {
    animation-timing-function: ease-out;
    opacity: 0.6;
    transform: scale(1.12);
  }

  80%,
  100% {
    animation-timing-function: ease-in-out;
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wati-progressive-signup-loader-hourglass {
  0% {
    transform: rotate(0deg);
  }

  80%,
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .wati-progressive-signup-loading__content {
    margin-top: 32px;
    padding: 40px 24px;
  }
  .wati-progressive-signup-loading__message {
    font-size: 20px;
    line-height: 28px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wati-progressive-signup-loading__ellipse,
  .wati-progressive-signup-loading__icon img {
    animation: none;
  }
}
