.toast-container ::-webkit-scrollbar,
.toast-msg-stack ::-webkit-scrollbar {
  width: 5px;
}
.toast-container ::-webkit-scrollbar-track,
.toast-msg-stack ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 1px rgba(100, 100, 100, 0.2);
}
.toast-container ::-webkit-scrollbar-track:window-inactive,
.toast-msg-stack ::-webkit-scrollbar-track:window-inactive {
  box-shadow: none;
}
.toast-container ::-webkit-scrollbar-thumb,
.toast-msg-stack ::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 1px rgba(100, 100, 100, 0.2);
  border-radius: 10px;
  background: rgba(100, 100, 100, 0.15);
}
.toast-container ::-webkit-scrollbar-thumb:window-inactive,
.toast-msg-stack ::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(200, 200, 200, 0.1);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
}
.toast-container,
.toast-msg-stack {
  font-size: 14px;
  line-height: 20px;
}
/* 定义动画 */
.a-slide-in-right {
  -webkit-animation: fadeInRight 0.5s;
          animation: fadeInRight 0.5s;
}
.a-slide-out-right {
  -webkit-animation: fadeOutRight 0.5s;
          animation: fadeOutRight 0.5s;
}
.a-slide-top {
  -webkit-animation: slideTop2 0.4s;
          animation: slideTop2 0.4s;
}
/* end 定义动画 */
/* animations */
@-webkit-keyframes pop {
  0% {
    -ms-transform: -ms-scale(0.8);
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    opacity: 0;
  }
  40% {
    -ms-transform: -ms-scale(1.1);
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    opacity: 1;
  }
  100% {
    -ms-transform: -ms-scale(1);
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@keyframes pop {
  0% {
    -ms-transform: -ms-scale(0.8);
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    opacity: 0;
  }
  40% {
    -ms-transform: -ms-scale(1.1);
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    opacity: 1;
  }
  100% {
    -ms-transform: -ms-scale(1);
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
/*
  从右向左滑入，带回弹
 */
@-webkit-keyframes fadeInRight {
  0% {
    -ms-transform: -ms-translateX(100%);
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    opacity: 0;
  }
  100% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeInRight {
  0% {
    -ms-transform: -ms-translateX(100%);
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    opacity: 0;
  }
  100% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}
@-webkit-keyframes fadeOutRight {
  0% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
  100% {
    -ms-transform: -ms-translateX(100%);
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes fadeOutRight {
  0% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
  100% {
    -ms-transform: -ms-translateX(100%);
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    opacity: 0;
  }
}
@-webkit-keyframes slideTop {
  0% {
    -ms-transform: -ms-translateX(-20%);
    -webkit-transform: translateY(-20%);
            transform: translateY(-20%);
  }
  100% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes slideTop {
  0% {
    -ms-transform: -ms-translateX(-20%);
    -webkit-transform: translateY(-20%);
            transform: translateY(-20%);
  }
  100% {
    -ms-transform: -ms-translateX(0);
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes slideTop2 {
  0% {
    margin-top: -12px;
    opacity: 0.5;
    -ms-transform: -ms-scale(0.9);
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    margin-top: 0;
    opacity: 1;
    -ms-transform: -ms-scale(1);
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes slideTop2 {
  0% {
    margin-top: -12px;
    opacity: 0.5;
    -ms-transform: -ms-scale(0.9);
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    margin-top: 0;
    opacity: 1;
    -ms-transform: -ms-scale(1);
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
/* end animations */
.toast-container,
.toast-container * {
  box-sizing: border-box;
  word-break: break-all;
}
.toast-container .toast-mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}
.toast-container .toast-content {
  display: block;
  position: fixed;
  top: 52%;
  left: 50%;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(30, 30, 30, 0.85);
  text-align: center;
  -webkit-animation: pop 0.4s;
          animation: pop 0.4s;
  z-index: 2000;
}
.toast-container .toast-content.toast2 {
  background-color: rgba(0, 0, 0, 0.82);
  padding: 0;
  color: #fff;
  width: 240px;
  margin-top: -100px;
  margin-left: -120px;
}
.toast-container .toast-content.toast-msg {
  background-color: #fff;
  color: #333;
  width: 360px;
  margin-top: -100px;
  margin-left: -180px;
  overflow: hidden;
}
.toast-container .toast-content.toast-success,
.toast-container .toast-content.toast-loading {
  background-color: rgba(0, 0, 0, 0.75);
  width: 120px;
  height: 120px;
  margin-left: -60px;
}
.toast-container .toast-content.toast-success .success-icon,
.toast-container .toast-content.toast-loading .success-icon {
  padding: 5px 0 0 0;
  height: auto;
}
.toast-container .toast-content.toast-success .success-icon i,
.toast-container .toast-content.toast-loading .success-icon i {
  font-size: 70px;
  color: #fff;
  border: none;
  background-color: transparent;
}
.toast-container .toast-content.toast-success .body,
.toast-container .toast-content.toast-loading .body {
  color: #fff;
}
.toast-container .toast-content.toast-loading .success-icon {
  padding-top: 25px;
}
.toast-container .toast-content.toast-loading .success-icon i {
  font-size: 40px;
}
.toast-content .toast-header {
  font-weight: bold;
  padding: 15px 10px 7px 10px;
}
.toast-content .toast-body,
.toast-content .body {
  text-align: center;
  max-height: 130px;
  overflow: auto;
}
.toast-content .body {
  padding: 5px 15px 18px;
}
.toast-content .toast-body {
  padding: 10px 18px;
}
.toast-content .footer {
  position: relative;
  line-height: 42px;
}
.toast-content .footer:after {
  content: ' ';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  border-top: 1px solid #D5D5D6;
  -webkit-transform-origin: 0 0;
      -ms-transform-origin: 0 0;
          transform-origin: 0 0;
  -webkit-transform: scaleY(0.5);
      -ms-transform: scaleY(0.5);
          transform: scaleY(0.5);
}
.toast-content .footer a {
  color: #DD403B;
  display: block;
  border: none;
  text-decoration: none;
  text-align: center;
}
.toast-content .footer a:hover {
  color: #AC3429;
}
.toast-content .footer a:active {
  background-color: #eee;
}
.toast-content .footer a[data-role="cancel"] {
  position: relative;
  display: inline-block;
  width: 50%;
  color: #555;
}
.toast-content .footer a[data-role="cancel"]:hover {
  color: #333;
}
.toast-content .footer a[data-role="confirm"] {
  display: inline-block;
  width: 50%;
}
.toast-content .footer a[data-role="cancel"]:after {
  content: ' ';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 1px;
  border-right: 1px solid #ccc;
  -webkit-transform: scaleX(0.5);
      -ms-transform: scaleX(0.5);
          transform: scaleX(0.5);
  -webkit-transform-origin: 0 0;
      -ms-transform-origin: 0 0;
          transform-origin: 0 0;
}
/* success styles */
.toast-msg .success-icon {
  text-align: center;
  padding: 25px 0;
  height: 110px;
}
.toast-msg .success-icon i {
  background-color: #3fe666;
  color: #fff;
}
.toast-msg.error .success-icon i {
  background-color: #f46e65;
}
.toast-msg .ticon-check-circle,
.toast-msg .ticon-cross-circle,
.toast-msg .ticon-frown-circle {
  font-size: 80px;
}
/* end success styles */
/* icons */
[class^="ticon-"] {
  display: inline-block;
  position: relative;
}
[class*=ticon][class*=circle] {
  border-radius: 50%;
  width: 1em;
  height: 1em;
  border: 2px solid;
}
[class*=ticon][class*=check],
[class*=ticon][class*=cross] {
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
[class*=ticon][class*=check]:before,
[class*=ticon][class*=check]:after {
  content: ' ';
  position: absolute;
  bottom: 0.35em;
  left: 0.25em;
  background-color: #fff;
}
[class*=ticon][class*=check]:before {
  width: 0.5em;
  height: 3px;
}
[class*=ticon][class*=check]:after {
  width: 3px;
  height: 0.25em;
}
[class*=ticon][class*=cross]:before,
[class*=ticon][class*=cross]:after {
  content: ' ';
  position: absolute;
  background-color: #fff;
}
[class*=ticon][class*=cross]:before {
  bottom: 50%;
  height: 2px;
  left: 0.2em;
  right: 0.2em;
  margin-bottom: -1px;
}
[class*=ticon][class*=cross]:after {
  top: 0.2em;
  bottom: 0.2em;
  left: 50%;
  width: 2px;
  margin-left: -1px;
}
[class*=ticon][class*=frown]:before,
[class*=ticon][class*=frown]:after {
  content: ' ';
  position: absolute;
}
[class*=ticon][class*=frown]:before {
  border-radius: 50%;
  height: 0.15em;
  width: 0.15em;
  box-shadow: 0.4em 0 0 0,0 0 0 0.3em inset;
  left: 0.2em;
  top: 0.3em;
}
[class*=ticon][class*=frown]:after {
  border: 2px solid;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  left: 25%;
  top: 70%;
  height: 0.5em;
  width: 0.5em;
  border-radius: 50%;
}
/* loading icon */
@-webkit-keyframes loading {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(-360deg);
            transform: rotate(-360deg);
  }
}
@keyframes loading {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(-360deg);
            transform: rotate(-360deg);
  }
}
[class*=ticon][class*=loading] {
  height: 1em;
  width: 1em;
  background-repeat: no-repeat;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAA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jU3U/gepCjKsUf9gzpWj4jcAu4LUpyGjSKnYXHBeCC32qb6yeDDCd6vSG9gPtS+hlg8D9TYA1oNpocxd/dZv07mg0kTGOEi3U9f07X5xQX9jSfPg6EaJSciZJlbePDPlfscDyuUu38hK2wwvpg4xUfZFQYO2uazfN56STpIb6JEfEoacWcw1FcxrIV/L1Zo62l8+SOXJENKkzjF3hqTRxG1wpp/VomZFwmYbzK90p0h4pvuJsrwniQrj7IyHLe0on6arAwz8Gh7TP3lA/6ml1cmQJvQ8IMOs99zI+5juuz6yOtcr+38cTUW7x/wgEIvW+azkhzu/cSzOWIVzLUfyRhn1UTjzjDn6cdw2fI9onG3CqWsEyVQb8SF9W2+48AAwCEmSvliW8SKQAAAABJRU5ErkJggg==);
  -webkit-animation: loading 1.4s linear;
          animation: loading 1.4s linear;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  background-position: center;
  background-size: contain;
}
/* end of icons */
/* message box */
.toast-msg-stack {
  position: fixed;
  top: 80px;
  right: 15px;
  z-index: 100;
}
.toast-msg-stack,
.toast-msg-stack * {
  box-sizing: border-box;
  word-break: break-all;
}
.toast-msg-stack .msg-box {
  position: relative;
  left: 0;
  top: 0;
  opacity: 1;
  width: 320px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fefeb9;
  color: #969631;
  font-weight: normal;
  margin-bottom: 10px;
  box-shadow: 0px 0px 4px rgba(90, 90, 90, 0.25);
  -webkit-transition: left 0.35s, opacity 0.35s, margin-top 0.35s;
  transition: left 0.35s, opacity 0.35s, margin-top 0.35s;
}
.toast-msg-stack .msg-box .close {
  float: right;
  width: 60px;
  height: 60px;
  line-height: 60px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-shadow: none;
  color: #969631;
  opacity: 1;
}
.toast-msg-stack .msg-box .close:focus,
.toast-msg-stack .msg-box .close:hover {
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
  background-color: #f7f79c;
}
.toast-msg-stack .msg-box .close:active {
  text-shadow: none;
  background-color: #f5f584;
}
.toast-msg-stack .msg-box .body {
  width: 260px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 10px;
  text-align: left;
  overflow-y: auto;
  overflow-x: hidden;
}
.toast-msg-stack .msg-box .body.fully-scaled {
  width: 100%;
}
.toast-msg-stack .msg-box.theme-danger,
.toast-msg-stack .msg-box.theme-danger .close {
  background-color: #fbb0b9;
  color: #a72a36;
}
.toast-msg-stack .msg-box.theme-danger .close:hover {
  background-color: #faa1ac;
}
.toast-msg-stack .msg-box.theme-danger .close:active {
  background-color: #fa98a3;
}
.toast-msg-stack .msg-box.theme-info,
.toast-msg-stack .msg-box.theme-info .close {
  background-color: #8ed5ea;
  color: #276da9;
}
.toast-msg-stack .msg-box.theme-info .close:hover {
  background-color: #81d0e8;
}
.toast-msg-stack .msg-box.theme-info .close:active {
  background-color: #78cde6;
}
.toast-msg-stack .msg-box.theme-success,
.toast-msg-stack .msg-box.theme-success .close {
  background-color: #56EF7A;
  color: #333;
}
.toast-msg-stack .msg-box.theme-success .close:hover {
  background-color: #3fed68;
}
.toast-msg-stack .msg-box.theme-success .close:active {
  background-color: #31eb5d;
}
/* end message box */
/* media queries */
/**
 * 414: iphone 7 plus 的屏幕宽度像素数
 */
@media screen and (max-width: 415px) {
  .toast-container .toast-content {
    margin-top: -90px;
  }
  .toast-container .toast-content.toast-msg {
    width: 80%;
    margin-left: -40%;
  }
  .toast-container .toast-content.toast-success,
  .toast-container .toast-content.toast-loading {
    width: 120px;
    margin-left: -60px;
  }
  .toast-msg-stack {
    top: 0;
    right: 0;
  }
  .toast-msg-stack .msg-box {
    margin-bottom: 2px;
    border-radius: 0;
  }
}
/* end media queries */
