:root {
  --update-toast-height-from-bottom: 2.5em;
}

#app-reload-toast {
  visibility: hidden;
  min-width: 100%;
  background-color: hsl(180, 100%, 25%);
  color: #fff;
  text-align: center;
  border-radius: 0em;
  padding: 0.5em;
  position: fixed;
  z-index: 1;
  bottom: 0px;
  display: flex;
  justify-content: center;
}

#app-reload-prompt {
  display: flex;
  align-items: center;
}

#app-reload-toast-button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#app-reload-toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s;
  animation: fadein 0.5s;
}

button#app-reload-button {
  background-color: hsl(180, 100%, 10%);
  cursor: pointer;
  color: white;
  appearance: none;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family:
    -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  height: 3em;
  width: 9em;
}

button#app-reload-postpone-button {
  background-color: hsl(180, 50%, 25%);
  cursor: pointer;
  margin-top: 0.5em;
  appearance: none;
  border: 1px solid rgba(45, 47, 49, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.1) 0 1px 0;
  box-sizing: border-box;
  color: hsl(0, 0%, 75%);
  cursor: pointer;
  display: inline-block;
  font-family:
    -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  height: 3em;
  width: 9em;
}

button#app-reload-button::before {
  content: "UPDATE NOW";
}

button#app-reload-button.reloading {
  cursor: wait;
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(1);
}

button#app-reload-button.reloading::before {
  content: "UPDATING...";
}

@keyframes fadein {
  from {
    bottom: -5em;
    opacity: 0;
  }
  to {
    bottom: 0em;
    opacity: 1;
  }
}

@media (min-width: 480px) {
  #app-reload-toast {
    visibility: hidden;
    margin: 0 var(--update-toast-height-from-bottom) 0 var(--update-toast-height-from-bottom);
    min-width: auto;
    width: 80%;
    max-width: 45em;
    background-color: #008080;
    color: #fff;
    text-align: center;
    border-radius: 0.5em;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--update-toast-height-from-bottom);
  }

  #app-reload-toast-button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  button#app-reload-button {
    margin-left: 1em;
  }

  button#app-reload-postpone-button {
    margin-top: 0em;
    margin-left: 1em;
  }

  @keyframes fadein {
    from {
      bottom: 0;
      opacity: 0;
    }
    to {
      bottom: var(--update-toast-height-from-bottom);
      opacity: 1;
    }
  }
}
