.snackbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 0px;
  border-radius: 4px; /* Set the border-radius to 50px for a rounded shape */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a box shadow */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.open {
  opacity: 1;
  pointer-events: auto;
}

.snackbar .message {
  display: inline-block;
  margin-right: 20px;
}

.snackbar .close {
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin-left: 10px;
}

.snackbarContent {
  display: flex;
  justify-content: space-between;
}

.loader {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 30px;
  background-color: rgba(0,0,0,0.2);
  position: relative;
}

.loader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-radius: 30px;
  background-color: #fff;
  animation: moving 4s ease-in-out 2;
}

@keyframes moving {
  50% {
    width: 100%;
  }

  100% {
    width: 0;
    right: 0;
    left: unset;
  }
}
