.toast-message {
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}
.toast-close-button {
  position: relative;
  right: -0.3em;
  top: -0.3em;
  float: right;
  font-size: 20px;
  font-weight: bold;
  color: #FFFFFF;
  -webkit-text-shadow: 0 1px 0 #ffffff;
  text-shadow: 0 1px 0 #ffffff;
  opacity: 0.8;
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  filter: alpha(opacity=80);
  line-height: 1;
}
button.toast-close-button {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
}
.toast-top-center {
  top: 0;
  right: 0;
  width: 100%;
}
.toast-bottom-center {
  bottom: 0;
  right: 0;
  width: 100%;
}
.toast-top-full-width {
  top: 0;
  right: 0;
  width: 100%;
}
.toast-bottom-full-width {
  bottom: 0;
  right: 0;
  width: 100%;
}
.toast-top-left {
  top: 12px;
  left: 12px;
}
/*.toast-top-right {
  top: 12px;
  right: 12px;
}*/
.toast-top-right {
    top: 12px;
    left: calc(50% - 170px);
    z-index: 0 !important;
}
.toast-bottom-right {
  right: 12px;
  bottom: 12px;
}
.toast-bottom-left {
  bottom: 12px;
  left: 12px;
}
#toast-container {
  position: fixed;
  /*z-index: 999999;*/
  z-index: 2147483647;
  pointer-events: none;
  /*overrides*/
}
/*#toast-container * {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}*/
.toast {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  margin: 0 0 4px;
  padding: 12px 24px 12px 60px;
  width: 340px;
  -moz-border-radius: 4px 4px 4px 4px;
  -webkit-border-radius: 4px 4px 4px 4px;
  border-radius: 4px 4px 4px 4px;
  background-position: 15px center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  /*opacity: 0.8;*/
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  filter: alpha(opacity=80);
}
.toast:hover {
  -moz-box-shadow: 0px 0 12px rgba(188,190,202,0.80);
  -webkit-box-shadow: 0px 0 12px rgba(188,190,202,0.80)
  box-shadow: 0px 0 12px rgba(188,190,202,0.80)
  /*opacity: 1;*/
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  filter: alpha(opacity=100);
  cursor: pointer;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}
#toast-container.toast-top-center > div,
#toast-container.toast-bottom-center > div {
  min-width: 340px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
}
#toast-container.toast-top-full-width > div,
#toast-container.toast-bottom-full-width > div {
  width: 96%;
  margin-left: auto;
  margin-right: auto;
}
.toast::before {
  content: "";
  position: absolute;
  left: 24px;
  top: calc(50% - 8px);
  width: 16px;
  height: 16px;
}
.toast .toast-message {
  font-size: 13px;
  font-weight: 400;
  line-height: 24px;
}
.toast-success {
  background-color: #F1FBF6;
  border: 1px solid #94DEBB;
  box-shadow: 0 1px 3px 0 rgba(11,181,99,0.16);
}
.toast-success::before {
  background: url("/static/img/irv5/icons/icon-16-close-green.0af0c6380183.svg");
}
.toast-success .toast-message {
  color: #036B39;
}
.toast-error {
  background-color: #FDF2F3;
  border: 1px solid #EB9BA4;
  box-shadow: 0 1px 3px 0 rgba(167,20,37,0.16);
}
.toast-error::before {
  background: url("/static/img/irv5/icons/icon-16-close-red.3c889ce1cc0b.svg");
}
.toast-error .toast-message {
  color: #A71425;
}
.toast-info {
  background-color: #FFFFFF;
  border: 1px solid #DFE2E5;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.16);
}
.toast-info::before {
  background: url("/static/img/irv5/icons/icon-16-close-blue.e721c72f7406.svg");
}
.toast-info .toast-message {
  color: #000000;
}
.toast-warning {
  background-color: #FDFBF0;
  border: 1px solid #EFDD90;
  box-shadow: 0 1px 3px 0 rgba(219,177,0,0.16);
}
.toast-warning::before {
  background: url("/static/img/irv5/icons/icon-16-close-yellow.d2aed59e049c.svg");
}
.toast-warning .toast-message {
  color: #7C6400;
}
.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background-color: #000000;
  opacity: 0.4;
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
  filter: alpha(opacity=40);
}

/***************************************** TOAST WIDGET ******************************************/
.toast-container {
    clear: both;
    display: inline-block;
    float: right;
    overflow: hidden;
    right: 12px;
    top: 12px;
    left: 12px;
    position: absolute;
    z-index: 999;
    padding-bottom: 12px;
}
.toast.video-widget {
    padding: 12px 60px 12px 60px;
    max-height: 64px;
    -webkit-transition: width .3s ease-in-out, all .3s ease-in-out;
    -moz-transition: width .3s ease-in-out, all .3s ease-in-out;
    -o-transition: width .3s ease-in-out, all .3s ease-in-out;
    transition: width .3s ease-in-out, all .3s ease-in-out;
    margin: 0 auto;
}
.toast.video-widget .toast-message {
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
    transform: scale(1);
    transition: all 0.5s ease-in-out;
}
.toast.video-widget .am-icon-video-player {
    z-index: 10000;
    position: absolute;
}
.toast.video-widget::before {
    background: none;
}
.toast.video-widget.only-icon {
    width: 64px;
    /*float: right;*/
    min-height: 64px;
    padding: 12px;
}
.toast.video-widget.only-icon .toast-message,
.toast.video-widget.only-icon .am-icon-close-darkblue {
    /*display: none;
    -webkit-transition: width .3s ease-in-out, all .3s ease-in-out;
    -moz-transition: width .3s ease-in-out, all .3s ease-in-out;
    -o-transition: width .3s ease-in-out, all .3s ease-in-out;
    transition: width .3s ease-in-out, all .3s ease-in-out;*/
    transition: all 0.08s ease-in-out;
    transform: scale(0);
}
/*************************************** FIN TOAST WIDGET ****************************************/

/************************ TOAST HELPER - A TOAST WITH A BUTTON HELPER ****************************/
.helper-toast {
    width: 820px;
    display: flex !important;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
}
.helper-toast[style*="display: none;"] {
    display: none !important;
}
.helper-toast .toast-close-button.toast-helper-button {
    right: auto;
    left: auto;
    top: auto;
    bottom: auto;
    height: 32px;
    text-shadow: none;
    border-radius: 3px;
    opacity: 1;
    overflow: hidden;
    display: inline-block;
    float: none;
    min-width: 128px;
    margin-left: 24px;
    width: 100%;
    max-width: 180px;
}
.helper-toast .toast-close-button.toast-helper-button a {
    font-family: 'National 2 Narrow';
    padding-left: 20px;
    padding-right: 20px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 400;
}

/* Error state */

.helper-toast.toast-error .toast-close-button.toast-helper-button a {
    background-color: #E11539;
    color: #FFFFFF;
}
.helper-toast.toast-error .toast-close-button.toast-helper-button a:hover,
.helper-toast.toast-error .toast-close-button.toast-helper-button a:focus {
    background-color: #e63f5d;
}
/********************** FIN TOAST HELPER - A TOAST WITH A BUTTON HELPER **************************/

/***************************************** STATIC TOAST ******************************************/
.toast.static-toast {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: unset;
    justify-content: space-between;
    padding: 16px;
    cursor: default;
    margin: 0px;
}
.toast.static-toast .toast-message {
    float: left;
}
.toast.static-toast::before {
    background: none;
}
.toast.static-toast.toast-info {
    box-shadow: none;
}
/*************************************** FIN STATIC TOAST ****************************************/

/***************************************** TOAST BUTTONS *****************************************/
.toast .am-button {
    font-size: 13px;
    font-weight: 400;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    text-align: center;
}
.toast.toast-warning .am-button {
    background: #DBB100;
    color: #FFF;
}
.toast.toast-warning .am-button:hover {
    background-color: #CBA110;
}

.toast.toast-info .am-button:not(.bg-color-lightblue-2) {
    background: #412CE1;
    color: #FFF;
}
.toast.toast-info .am-button:not(.bg-color-lightblue-2):hover,
.toast.toast-info .am-button:not(.bg-color-lightblue-2):focus {
    background-color: #3021A3;
}
/*************************************** FIN TOAST BUTTONS ***************************************/
