
/* The snackbar - position it at the bottom and in the middle of the screen */
.snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 255px; /* Set a default minimum width */
  max-width: 555px; /* Set a default max width */
  min-height:48px;
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 10px 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 11050; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;




  .action{
      background: inherit;
      display: inline-block;
      border: none;
      font-size: inherit;
      text-transform: uppercase;
      margin: 0px 0px 0px 24px;
      padding: 0px;
      min-width: min-content;
      float: right;
  }
}

// Fixing weight for mobile screens
@media only screen and (max-width: 767px) {
  .snackbar {
    max-width: 355px; /* Set a default minimum width */
  }
}

@media only screen and (min-width: 768px)  and (max-width: 1024px) {
  .snackbar {
    max-width: 455px; /* Set a default minimum width */
  }
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
.snackbar__show {
  visibility: visible !important; /* Show the snackbar */

  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: snackbar__fadein 0.5s, snackbar__fadeout 0.5s 2.5s;
  animation: snackbar__fadein 0.5s, snackbar__fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes snackbar__fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes snackbar__fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes snackbar__fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes snackbar__fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

