:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: #e74c3c;
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-min-height: 64px;
  --toastify-toast-bd-radius: 6px;
  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;
  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  --toastify-color-progress-dark: #bb86fc;
}

/* CONTAINER */
.toast-container {
  position: fixed;
  z-index: var(--toastify-z-index);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* POSITIONS */
.toast-container-top-left {
  top: var(--toastify-toast-offset);
  left: var(--toastify-toast-offset);
  bottom: auto;
  right: auto;
}
.toast-container-top-right {
  top: var(--toastify-toast-offset);
  right: var(--toastify-toast-offset);
  bottom: auto;
  left: auto;
}
.toast-container-top-center {
  top: var(--toastify-toast-offset);
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  right: auto;
}
.toast-container-bottom-left {
  bottom: var(--toastify-toast-offset);
  left: var(--toastify-toast-offset);
  top: auto;
  right: auto;
}
.toast-container-bottom-right {
  bottom: var(--toastify-toast-offset);
  right: var(--toastify-toast-offset);
  top: auto;
  left: auto;
}
.toast-container-bottom-center {
  bottom: var(--toastify-toast-offset);
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  right: auto;
}

/* TOAST */
.toast {
  width: var(--toastify-toast-width);
  min-height: var(--toastify-toast-min-height);
  padding: 8px;
  border-radius: var(--toastify-toast-bd-radius);
  box-shadow: var(--toastify-toast-shadow);
  font-family: var(--toastify-font-family);
  background-color: var(--toastify-color-light);
  color: var(--toastify-text-color-light);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  cursor: default;
}

.toast.show {
  opacity: 1;
}

/* TOAST BODY */
.toast-body {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  padding: 6px;
  gap: 10px;
}

/* TYPE ICON */
.toast-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-icon svg {
  fill: currentColor;
  width: 100%;
  height: 100%;
}

/* CLOSE BUTTON */
.close-icon {
  align-self: flex-start;
  color: #000;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  padding: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.close-icon:hover,
.close-icon:focus {
  opacity: 0.6;
}

.close-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.toast-dark .close-icon,
.toast-colored .close-icon {
  color: #fff;
  opacity: 0.7;
}

.toast-dark .close-icon:hover,
.toast-dark .close-icon:focus,
.toast-colored .close-icon:hover,
.toast-colored .close-icon:focus {
  opacity: 1;
}

/* PROGRESS BAR */
.progress-bar {
  height: 5px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.1s linear;
}

/* THEMES */
.toast-light {
  background-color: var(--toastify-color-light);
  color: var(--toastify-text-color-light);
}

.toast-dark {
  background-color: var(--toastify-color-dark);
  color: var(--toastify-text-color-dark);
}

.toast-colored.toast-type-info {
  background-color: var(--toastify-color-info);
  color: #fff;
}

.toast-colored.toast-type-success {
  background-color: var(--toastify-color-success);
  color: #fff;
}

.toast-colored.toast-type-warning {
  background-color: var(--toastify-color-warning);
  color: #fff;
}

.toast-colored.toast-type-error {
  background-color: var(--toastify-color-error);
  color: #fff;
}

/* TYPE ICON COLORS */
.toast-icon-info {
  color: var(--toastify-color-info);
}

.toast-icon-success {
  color: var(--toastify-color-success);
}

.toast-icon-warning {
  color: var(--toastify-color-warning);
}

.toast-icon-error {
  color: var(--toastify-color-error);
}

.toast-colored .toast-icon {
  color: #fff;
}

/* PROGRESS BAR TYPES */
.progress-bar-default {
  background: var(--toastify-color-progress-light);
}

.progress-bar-success {
  background-color: var(--toastify-color-success);
}

.progress-bar-info {
  background-color: var(--toastify-color-info);
}

.progress-bar-error {
  background-color: var(--toastify-color-error);
}

.progress-bar-warning {
  background-color: var(--toastify-color-warning);
}

.toast-dark .progress-bar-default {
  background: var(--toastify-color-progress-dark);
}

.toast-colored .progress-bar {
  background: rgba(255, 255, 255, 0.7);
}

/* ENTRY ANIMATIONS */

/* BOUNCE */
@keyframes bounce-all {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}

.toast.bounce {
  animation: bounce-all 0.7s both;
}

/* SLIDE */
@keyframes slide-in {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.toast.slide {
  animation: slide-in 0.3s ease-out both;
}

/* ZOOM */
@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

.toast.zoom {
  animation: zoom-in 0.3s both;
}

/* FLIP */
@keyframes flip-in {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}

.toast.flip {
  animation: flip-in 0.5s ease-in-out both;
}

/* EXIT ANIMATIONS */

@keyframes bounce-out-right {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  20% {
    opacity: 1;
    transform: translate3d(-20px, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, 0, 0);
  }
}

@keyframes slide-out-right {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(110%, 0, 0);
  }
}

@keyframes zoom-out {
  from {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
  50% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}

@keyframes flip-out {
  from {
    opacity: 1;
    transform: perspective(400px);
  }
  30% {
    opacity: 1;
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
  }
  to {
    opacity: 0;
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
  }
}

.toast.bounce-exit {
  animation: bounce-out-right 0.7s both;
}

.toast.slide-exit {
  animation: slide-out-right 0.3s ease-in both;
}

.toast.zoom-exit {
  animation: zoom-out 0.3s both;
}

.toast.flip-exit {
  animation: flip-out 0.5s ease-in-out both;
}

/* MOBILE RESPONSIVE */
@media only screen and (max-width: 480px) {
  .toast-container {
    width: 100vw;
    padding: 0;
    margin: 0;
  }
  .toast-container-top-left,
  .toast-container-top-right,
  .toast-container-top-center {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    transform: none;
  }
  .toast-container-bottom-left,
  .toast-container-bottom-right,
  .toast-container-bottom-center {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
  }
  .toast {
    width: 100%;
    border-radius: 0;
  }
}
