:root {
  --st-translateX-right: 100%;
  --st-translateX-left: -100%;
  --st-translateY-up: 100%;
  --st-translateY-down: -100%;
  --st-colour-status: #3fa21c;
  --st-colour-status-shade: #0b1c05;
  --st-colour-status-saturate: #5cdb2f;
  --st-colour-status-tint: #e1f8d8;
  --st-colour-warning: #fdca40;
  --st-colour-warning-shade: #4b3d00;
  --st-colour-warning-saturate: #ffbf00;
  --st-colour-warning-tint: #fef9e5;
  --st-colour-error: #e33f1e;
  --st-colour-error-saturate: #f6320b;
  --st-colour-error-shade: #250a05;
  --st-colour-error-tint: #fdf2ef;
}

.simple-toasts-theme-active .messages-list {
  display: none;
}

.st-toast-container {
  position: fixed;
  z-index: 1055;
  padding: 1rem;
}

.st-toast-container.top-right {
  top: 0;
  right: 0;
}

.st-toast-container.top-left {
  top: 0;
  left: 0;
}

.st-toast-container.top-center {
  transform: translateX(-50%);
  top: 0;
  left: 50%;
}

.st-toast-container.bottom-right {
  right: 0;
  bottom: 0;
}

.st-toast-container.bottom-left {
  left: 0;
  bottom: 0;
}

.st-toast-container.bottom-center {
  transform: translateX(-50%);
  bottom: 0;
  left: 50%;
}

.st-toast-container .st-toast:not(:last-child) {
  margin-bottom: 0.75rem !important;
}

.st-toast {
  width: 50vw;
  background: transparent;
  border: none;
}

.st-toast-header {
  border: none;
  padding: 0.1rem 0.5rem;
}

.st-toast-header strong {
  padding-right: 20px;
}

.st-toast-body {
  display: flex;
  align-items: center;
  padding: 1.3rem;
  background: white;
  color: #333;
  box-shadow: rgba(0, 0, 0, 0.15) 0 8px 16px 0;
  border-bottom-right-radius: .25rem;
  border-bottom-left-radius: .25rem;
}

.st-toast-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-right: 1rem !important;
}

.st-toast-message {
  flex: 1 1 auto;
  overflow: hidden;
  padding-right: .4rem;
}

.st-toast-close {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
  border: 2px solid transparent;
  padding: 0.25rem;
  border-radius: 0.25rem;
  background: transparent;
}
.st-toast-close.st-theme-generated {
  float: right;
}
.st-toast-close:hover {
  border-color: #ddd;
}
.st-toast-close svg {
  fill: #ddd;
}

/* Colours */

.st-status .st-toast-header {
  background-color: var(--st-colour-status);
}
.st-warning .st-toast-header {
  background-color: var(--st-colour-warning);
}
.st-error .st-toast-header {
  background-color: var(--st-colour-error);
}
.st-status .st-toast-icon svg {
  fill: var(--st-colour-status);
}
.st-warning .st-toast-icon svg {
  fill: var(--st-colour-warning);
}
.st-error .st-toast-icon svg {
  fill: var(--st-colour-error);
}
.st-theme-default .st-toast-close:hover {
  border-color: #666;
}
.st-theme-default .st-toast-close svg {
  fill: #666;
}


/* Dark theme */
.st-theme-dark .st-status .st-toast-header {
  background: var(--st-colour-status-saturate);
}
.st-theme-dark .st-status .st-toast-icon svg {
  fill: var(--st-colour-status-saturate);
}
.st-theme-dark .st-error .st-toast-header {
  background: var(--st-colour-error-saturate);
}
.st-theme-dark .st-error .st-toast-icon svg {
  fill: var(--st-colour-error-saturate);
}
.st-theme-dark .st-warning .st-toast-header {
  background: var(--st-colour-warning-saturate);
}
.st-theme-dark .st-warning .st-toast-icon svg {
  fill: var(--st-colour-warning-saturate);
}
.st-theme-dark .st-toast-body {
  background: #343a40;
  color: #ddd;
}
.st-theme-dark .st-toast-body a {
  color: #ddd;
}
.st-theme-dark .st-toast-body .st-toast-close svg {
  fill: #ddd;
  color: #ddd;
}

/* Vivid theme */
.st-theme-vivid .st-toast-header {
  display: none;
}
.st-theme-vivid .st-status .st-toast-body {
  background: var(--st-colour-status);
  color: var(--st-colour-status-tint);
}
.st-theme-vivid .st-status .st-toast-body a {
  color: var(--st-colour-status-tint);
}
.st-theme-vivid .st-status .st-toast-icon svg,
.st-theme-vivid .st-status .st-toast-body .st-toast-close svg {
  fill: var(--st-colour-status-tint);
}
.st-theme-vivid .st-error .st-toast-body {
  background: var(--st-colour-error);
  color: var(--st-colour-error-tint);
}
.st-theme-vivid .st-error .st-toast-body a {
  color: var(--st-colour-error-tint);
}
.st-theme-vivid .st-error .st-toast-icon svg,
.st-theme-vivid .st-error .st-toast-body .st-toast-close svg {
  fill: var(--st-colour-error-tint);
}
.st-theme-vivid .st-warning .st-toast-body {
  background: var(--st-colour-warning);
  color: var(--st-colour-warning-shade);
}
.st-theme-vivid .st-warning .st-toast-body a {
  color: var(--st-colour-warning-shade);
}
.st-theme-vivid .st-warning .st-toast-icon svg,
.st-theme-vivid .st-warning .st-toast-body .st-toast-close svg {
  fill: var(--st-colour-warning-shade);
}

/* Form file upload style indicators */
.st-form-managed-file--error {
  --indicator-color: var(--st-colour-error-tint);
  background-color: var(--indicator-color);
  animation: fadeOutBg 3s ease-out forwards;
}


/* Animations */

.st-toast.animate.st-hide, .st-toast.animate:not(.st-show) {
  display: block;
}
.st-toast.animate-in, .st-toast.animate-out {
  -webkit-animation-duration: 500ms;
  animation-duration: 500ms;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-timing-function: ease;
  transition-timing-function: ease;

}
.st-toast.animate-in--1 {
  -webkit-animation-delay: 0.1s;
  animation-delay: 0.1s;
}
.st-toast.animate-in--2 {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
.st-toast.animate-in--3 {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
.st-toast.animate-in--4 {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}
.st-toast.animate-in--5 {
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}
.st-toast.animate-in--6 {
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
}
.st-toast.animate-in--7 {
  -webkit-animation-delay: 0.7s;
  animation-delay: 0.7s;
}
.st-toast.animate-in--8 {
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
}
.st-toast.animate-in--9 {
  -webkit-animation-delay: 0.9s;
  animation-delay: 0.9s;
}
.st-toast.animate-in--10 {
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}
.st-toast.animate-in.no-delay {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

/* Slide in and out */
.top-left .st-toast.slide-in, .bottom-left .st-toast.slide-in {
  -webkit-animation-name: slideInLeft;
  animation-name: slideInLeft;
}
.top-right .st-toast.slide-in, .bottom-right .st-toast.slide-in {
  -webkit-animation-name: slideInRight;
  animation-name: slideInRight;
}
.top-center .st-toast.slide-in {
  -webkit-animation-name: slideInDown;
  animation-name: slideInDown;
}
.bottom-center .st-toast.slide-in {
  -webkit-animation-name: slideInUp;
  animation-name: slideInUp;
}
.top-left .st-toast.slide-out.st-hide,
.bottom-left .st-toast.slide-out.st-hide,
.top-left .st-toast.slide-out:not(.st-show),
.bottom-left .st-toast.slide-out:not(.st-show) {
  -webkit-animation-name: slideOutLeft;
  animation-name: slideOutLeft;
}
.top-right .st-toast.slide-out.st-hide,
.bottom-right .st-toast.slide-out.st-hide,
.top-right .st-toast.slide-out:not(.st-show),
.bottom-right .st-toast.slide-out:not(.st-show) {
  -webkit-animation-name: slideOutRight;
  animation-name: slideOutRight;
}
.top-center .st-toast.slide-out.st-hide,
.top-center .st-toast.slide-out:not(.st-show) {
  -webkit-animation-name: slideOutDown;
  animation-name: slideOutDown;
}
.bottom-center .st-toast.slide-out.st-hide,
.bottom-center .st-toast.slide-out:not(.st-show) {
  -webkit-animation-name: slideOutUp;
  animation-name: slideOutUp;
}

/* Fade in and out */
.st-toast.fade-in {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}
.st-toast.fade-out.st-hide,
.st-toast.fade-out:not(.st-show) {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}


@-webkit-keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(var(--st-translateX-right));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(var(--st-translateX-right));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@-webkit-keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--st-translateX-right));
  }
}
@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--st-translateX-right));
  }
}

@-webkit-keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(var(--st-translateX-left));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(var(--st-translateX-left));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@-webkit-keyframes slideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--st-translateX-left));
  }
}
@keyframes slideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--st-translateX-left));
  }
}

@-webkit-keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(var(--st-translateY-down));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(var(--st-translateY-down));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@-webkit-keyframes slideOutDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(var(--st-translateY-down));
  }
}
@keyframes slideOutDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(var(--st-translateY-down));
  }
}

@-webkit-keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(var(--st-translateY-up));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(var(--st-translateY-up));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@-webkit-keyframes slideOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(var(--st-translateY-up));
  }
}
@keyframes slideOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(var(--st-translateY-up));
  }
}
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fadeOutBg {
  from {
    background-color: var(--indicator-color);
  }
  to {
    background-color: transparent;
  }
}
@-webkit-keyframes fadeOutBg {
  from {
    background-color: var(--indicator-color);
  }
  to {
    background-color: transparent;
  }
}

/* Media queries based on Bootstrap 5 breakpoints */
/* sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px */
@media (max-width: 576px) {
  .st-toast {width: 92vw}
}
@media (min-width: 768px) {}
@media (min-width: 992px) {
  .st-toast {width: 33vw}
}
@media (min-width: 1200px) {
}
@media (min-width: 1400px) {
  .st-toast {width: 25vw}
}
