
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999; 
}

.overlay-content {
  background-color: rgba(13, 13, 13, 0.8);
  padding: 48px;
  border: solid 2px var(--grey-30);
  border-radius: 16px;
  max-width: 820px;
  width: 100%;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 24px;

  margin: 0px 72px
}

.spinner {
  width: 72px;
  height: 72px;
  border: 4px solid var(--grey-30);
  border-top: 4px solid var(--primary-1);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

/* Keyframes for rotation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 24px;
  line-height: 32px;
  font-weight: var(--semiBold);
  letter-spacing: 0.5px;
  color: var(--white);
  text-align: center;
}

.success-message {
  font-size: 32px;
  line-height: 32px;
  font-weight: var(--semiBold);
  letter-spacing: 0.5px;
  color: var(--white);
  text-align: center;

}
.error-message {
  font-size: 32px;
  line-height: 32px;
  font-weight: var(--semiBold);
  letter-spacing: 0.5px;
  color: red;
  text-align: center;

}

@media (width < 860px) {
  .overlay-content {
    min-height: 280px;
    margin: 0px 20px
  }
  

  .spinner {
    width: 64px;
    height: 64px;

  }
  


.success-message {
  font-size: 24px;
  line-height: 32px;


}
.error-message {
  font-size: 24px;
  line-height: 32px;
  

}


}
