.b3-snackbar {
  position: fixed;
  top: 0;
  z-index: 502;
  transform: translate3d(0, -100px, 0);
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;
  width: 100%;
  align-items: center;
  justify-content: center;
  height: 0;
  display: flex;

  &--show {
    transform: translate3d(0, 0, 0);
    opacity: 1;

    .b3-snackbar__content {
      transform: none;
    }
  }

  &--error .b3-snackbar__content {
    background-color: var(--b3-theme-error);
    color: var(--b3-theme-on-error);
  }

  &__content {
    line-height: 20px;
    border-radius: 4px;
    padding: 8px 16px;
    color: var(--b3-theme-on-primary);
    font-size: inherit;
    background-color: var(--b3-theme-primary);
    box-sizing: border-box;
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;
    transform: scale(0.8);
    top: 16px;
    position: absolute;
    word-break: break-word;
    max-width: 80vw;

    a {
      color: var(--b3-theme-on-primary);
      text-decoration: underline;
    }

    ul {
      margin-left: 16px;
    }
  }

  &__close {
    position: absolute;
    cursor: pointer;
    top: 8px;
    right: -30px;
    height: 14px;
    width: 14px;
  }
}
