/* Modal styles */
/* 2019 Internet Factory ApS */
.modal_bg {
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    position: fixed;
    display: none;
    z-index: 1000;    
}

.modal_window {
    overflow:hidden;
    top:50%;
    left:50%;
    /* width:100%; */
    position: absolute;
    background: #fff;
    color:#000;
    padding: 24px;
    min-width: 200px;
    min-height: 32px;
    z-index: 1001;
    box-shadow: 0px 0px 200px 0px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    transform: translatez(0);
    display:none;
}

.modal_window.fixed {
    border-radius:0;
}

.modal_window .modal_closeX {

    position: absolute;
    right: 20px;
    top: 20px;
    display: block;
    width: 32px;
    height: 32px;
    cursor: pointer;    
    border-radius: 5px;
    transition: all .3s ease-in-out;
    z-index: 1;
    font-size: 24px;
}

.modal_window .modal_closeX:hover {
    background: #ffffff11;
}

.modal_window .modal_closeX:after {
    content: "\00d7";
    color: #fff;
    font-size: 24px;
    line-height: 32px;    
    font-weight: 700;
    position: absolute;
    width: 100%;
    text-align: center;
}

.modal_window_open_animation {
    animation-duration: .2s;
    animation-fill-mode: both;
    animation-name: modalOpen;
}

.modal_window_open_animation_left {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalOpenLeft;
}

.modal_window_open_animation_right {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalOpenRight;
}

.modal_window_open_animation_bottom {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalOpenBottom;
}

.modal_window_close_animation {
    animation-duration: .2s;
    animation-fill-mode: both;
    animation-name: modalClose;
}

.modal_window_close_animation_left {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalCloseLeft;
}

.modal_window_close_animation_right {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalCloseRight;
}

.modal_window_close_animation_bottom {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalCloseBottom;
}


.modal_noscroll {
    position: fixed;
    width: 100%;
    overflow-y: hidden;
}

.modal_noscroll.modal_scrollbars {
    overflow-y: scroll;
}


.modal_buttons { text-align: center; margin: 0 -10px; }
.modal_button_wrapper { margin:20px 10px 0 10px; }
.modal_buttons button { display:inline-block; }
.modal_window img { max-width:100%; height:auto; }



/* Keyframes */
@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translate3d(0, 25%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalOpenLeft {
  from {
    opacity: 0;
    transform: translate3d(-25%, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalOpenRight {
  from {
    opacity: 0;
    transform: translate3d(25%, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalOpenBottom {
  from {
    opacity: 0;
    transform: translate3d(0, 25%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalClose {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translate3d(0, 25%, 0);
  }
}

@keyframes modalCloseLeft {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translate3d(-25%, 0, 0);
  }
}

@keyframes modalCloseRight {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translate3d(25%, 0, 0);
  }
}

@keyframes modalCloseBottom {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translate3d(0, 25%, 0);
  }
}

/* icon animations */
.modal_icon_wrapper {
    position:relative; min-width:150px; min-height:100px; overflow:hidden;
    text-align: center;    
    margin-bottom: 15px;
}

.modal_icon_wrapper i { font-size:100px; }

.modal_icon {
  width: 80px;
  height: 80px;
  border: 4px solid gray;
  -webkit-border-radius: 40px;
  border-radius: 40px;
  border-radius: 50%;
  margin: 20px auto;
  padding: 0;
  position: relative;
  box-sizing: content-box; }

.modal_icon.modal_error {
  border-color: #F27474; }
  .modal_icon.modal_error .modal_x-mark {
    position: relative;
    display: block; }
  .modal_icon.modal_error .modal_line {
    position: absolute;
    height: 5px;
    width: 47px;
    background-color: #F27474;
    display: block;
    top: 37px;
    border-radius: 2px; }
    .modal_icon.modal_error .modal_line.modal_left {
      -webkit-transform: rotate(45deg);
      transform: rotate(45deg);
      left: 17px; }
    .modal_icon.modal_error .modal_line.modal_right {
      -webkit-transform: rotate(-45deg);
      transform: rotate(-45deg);
      right: 16px; }
.modal_icon.modal_warning {
  border-color: #F8BB86; }
  .modal_icon.modal_warning .modal_body {
    position: absolute;
    width: 5px;
    height: 47px;
    left: 50%;
    top: 10px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    margin-left: -2px;
    background-color: #F8BB86; }
  .modal_icon.modal_warning .modal_dot {
    position: absolute;
    width: 7px;
    height: 7px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    margin-left: -3px;
    left: 50%;
    bottom: 10px;
    background-color: #F8BB86; }
.modal_icon.modal_info {
  border-color: #C9DAE1; }
  .modal_icon.modal_info::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 29px;
    left: 50%;
    bottom: 17px;
    border-radius: 2px;
    margin-left: -2px;
    background-color: #C9DAE1; }
  .modal_icon.modal_info::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: -3px;
    top: 19px;
    background-color: #C9DAE1;
    left: 50%; }
.modal_icon.modal_success {
  border-color: rgba(19,170,57,1); }
  .modal_icon.modal_success::before, .modal_icon.modal_success::after {
    content: '';
    -webkit-border-radius: 40px;
    border-radius: 40px;
    border-radius: 50%;
    position: absolute;
    width: 60px;
    height: 120px;
    background: white;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg); }
  .modal_icon.modal_success::before {
    -webkit-border-radius: 120px 0 0 120px;
    border-radius: 120px 0 0 120px;
    top: -7px;
    left: -33px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transform-origin: 60px 60px;
    transform-origin: 60px 60px; }
  .modal_icon.modal_success::after {
    -webkit-border-radius: 0 120px 120px 0;
    border-radius: 0 120px 120px 0;
    top: -11px;
    left: 30px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transform-origin: 0px 60px;
    transform-origin: 0px 60px; }
  .modal_icon.modal_success .modal_placeholder {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(19,170,57,.2);
    -webkit-border-radius: 40px;
    border-radius: 40px;
    border-radius: 50%;
    box-sizing: content-box;
    position: absolute;
    left: -4px;
    top: -4px;
    z-index: 2; }
  .modal_icon.modal_success .modal_fix {
    width: 5px;
    height: 90px;
    background-color: white;
    position: absolute;
    left: 28px;
    top: 8px;
    z-index: 1;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg); }
  .modal_icon.modal_success .modal_line {
    height: 5px;
    background-color: rgba(19,170,57,1);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 2; }
    .modal_icon.modal_success .modal_line.modal_tip {
      width: 25px;
      left: 14px;
      top: 46px;
      -webkit-transform: rotate(45deg);
      transform: rotate(45deg); }
    .modal_icon.modal_success .modal_line.modal_long {
      width: 47px;
      right: 8px;
      top: 38px;
      -webkit-transform: rotate(-45deg);
      transform: rotate(-45deg); }
.modal_icon.modal_custom {
  background-size: contain;
  border-radius: 0;
  border: none;
  background-position: center center;
  background-repeat: no-repeat; }


  @-webkit-keyframes animateSuccessTip {
    0% {
      width: 0;
      left: 1px;
      top: 19px; }
    54% {
      width: 0;
      left: 1px;
      top: 19px; }
    70% {
      width: 50px;
      left: -8px;
      top: 37px; }
    84% {
      width: 17px;
      left: 21px;
      top: 48px; }
    100% {
      width: 25px;
      left: 14px;
      top: 45px; } }

  @keyframes animateSuccessTip {
    0% {
      width: 0;
      left: 1px;
      top: 19px; }
    54% {
      width: 0;
      left: 1px;
      top: 19px; }
    70% {
      width: 50px;
      left: -8px;
      top: 37px; }
    84% {
      width: 17px;
      left: 21px;
      top: 48px; }
    100% {
      width: 25px;
      left: 14px;
      top: 45px; } }

  @-webkit-keyframes animateSuccessLong {
    0% {
      width: 0;
      right: 46px;
      top: 54px; }
    65% {
      width: 0;
      right: 46px;
      top: 54px; }
    84% {
      width: 55px;
      right: 0px;
      top: 35px; }
    100% {
      width: 47px;
      right: 8px;
      top: 38px; } }

  @keyframes animateSuccessLong {
    0% {
      width: 0;
      right: 46px;
      top: 54px; }
    65% {
      width: 0;
      right: 46px;
      top: 54px; }
    84% {
      width: 55px;
      right: 0px;
      top: 35px; }
    100% {
      width: 47px;
      right: 8px;
      top: 38px; } }

  @-webkit-keyframes rotatePlaceholder {
    0% {
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg); }
    5% {
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg); }
    12% {
      transform: rotate(-405deg);
      -webkit-transform: rotate(-405deg); }
    100% {
      transform: rotate(-405deg);
      -webkit-transform: rotate(-405deg); } }

  @keyframes rotatePlaceholder {
    0% {
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg); }
    5% {
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg); }
    12% {
      transform: rotate(-405deg);
      -webkit-transform: rotate(-405deg); }
    100% {
      transform: rotate(-405deg);
      -webkit-transform: rotate(-405deg); } }

  .animateSuccessTip {
    -webkit-animation: animateSuccessTip 0.75s;
    animation: animateSuccessTip 0.75s; }

  .animateSuccessLong {
    -webkit-animation: animateSuccessLong 0.75s;
    animation: animateSuccessLong 0.75s; }

  .modal_icon.modal_success.animate::after {
    -webkit-animation: rotatePlaceholder 4.25s ease-in;
    animation: rotatePlaceholder 4.25s ease-in; }

  @-webkit-keyframes animateErrorIcon {
    0% {
      transform: rotateX(100deg);
      -webkit-transform: rotateX(100deg);
      opacity: 0; }
    100% {
      transform: rotateX(0deg);
      -webkit-transform: rotateX(0deg);
      opacity: 1; } }

  @keyframes animateErrorIcon {
    0% {
      transform: rotateX(100deg);
      -webkit-transform: rotateX(100deg);
      opacity: 0; }
    100% {
      transform: rotateX(0deg);
      -webkit-transform: rotateX(0deg);
      opacity: 1; } }

  .animateErrorIcon {
    -webkit-animation: animateErrorIcon 0.5s;
    animation: animateErrorIcon 0.5s; }

  @-webkit-keyframes animateXMark {
    0% {
      transform: scale(0.4);
      -webkit-transform: scale(0.4);
      margin-top: 26px;
      opacity: 0; }
    50% {
      transform: scale(0.4);
      -webkit-transform: scale(0.4);
      margin-top: 26px;
      opacity: 0; }
    80% {
      transform: scale(1.15);
      -webkit-transform: scale(1.15);
      margin-top: -6px; }
    100% {
      transform: scale(1);
      -webkit-transform: scale(1);
      margin-top: 0;
      opacity: 1; } }

  @keyframes animateXMark {
    0% {
      transform: scale(0.4);
      -webkit-transform: scale(0.4);
      margin-top: 26px;
      opacity: 0; }
    50% {
      transform: scale(0.4);
      -webkit-transform: scale(0.4);
      margin-top: 26px;
      opacity: 0; }
    80% {
      transform: scale(1.15);
      -webkit-transform: scale(1.15);
      margin-top: -6px; }
    100% {
      transform: scale(1);
      -webkit-transform: scale(1);
      margin-top: 0;
      opacity: 1; } }

  .animateXMark {
    -webkit-animation: animateXMark 0.5s;
    animation: animateXMark 0.5s; }

  @-webkit-keyframes pulseWarning {
    0% {
      border-color: #F8D486; }
    100% {
      border-color: #F8BB86; } }

  @keyframes pulseWarning {
    0% {
      border-color: #F8D486; }
    100% {
      border-color: #F8BB86; } }

  .pulseWarning {
    -webkit-animation: pulseWarning 0.75s infinite alternate;
    animation: pulseWarning 0.75s infinite alternate; }

  @-webkit-keyframes pulseWarningIns {
    0% {
      background-color: #F8D486; }
    100% {
      background-color: #F8BB86; } }

  @keyframes pulseWarningIns {
    0% {
      background-color: #F8D486; }
    100% {
      background-color: #F8BB86; } }

  .pulseWarningIns {
    -webkit-animation: pulseWarningIns 0.75s infinite alternate;
    animation: pulseWarningIns 0.75s infinite alternate; }

  @-webkit-keyframes rotate-loading {
    0% {
      transform: rotate(0deg); }
    100% {
      transform: rotate(360deg); } }

  @keyframes rotate-loading {
    0% {
      transform: rotate(0deg); }
    100% {
      transform: rotate(360deg); } }

  /* Internet Explorer 9 has some special quirks that are fixed here */
  /* Icons are not animated. */

      /* Error icon */
      .modal_icon.modal_error .modal_line.modal_left {
        transform: rotate(45deg) \9; }

      .modal_icon.modal_error .modal_line.modal_right {
        transform: rotate(-45deg) \9; }

      /* Success icon */
      .modal_icon.modal_success {
        border-color: transparent\9; }

      .modal_icon.modal_success .modal_line.modal_tip {
        transform: rotate(45deg) \9; }

      .modal_icon.modal_success .modal_line.modal_long {
        transform: rotate(-45deg) \9; }

/* Toast styles */
.toast_window {
	position:absolute;
  /* width:100%; */
	background: #000000aa;
	color:#fff;
	font-size:14px;
	font-weight:600;
	padding:16px 12px;
	text-align:center;
	z-index:99999;
	top:0;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);

  width:auto;
  max-width:calc(100% - 32px);
  min-width:100px;  
  border-bottom-left-radius: .75em;
  border-bottom-right-radius: .75em;  
  padding-left:1.5em;
  padding-right:1.5em;
  display:flex;
  align-items: center;
  gap: 5px;
}
.toast_window i { font-size:24px; }
.toast_window.green { background:#6dc774; }
.toast_window a { color:#333; font-weight: 400; }
