#toast-root {
  position: fixed;
  display: flex;
  z-index: 9999;
  user-select: none;
  -webkit-user-drag: none;
}

#toast-root[data-position="bottom-center"] {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

#toast-root[data-position="bottom-right"] {
  bottom: 30px;
  right: 30px;
}

#toast-root[data-position="top-center"] {
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
}

#toast-root .toast-text {
  min-width: 160px;
  max-width: 400px;
  width: fit-content;
  background: #FFFFFF;
  color: #303031;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

#toast-root .toast-text:not([data-type])::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/assets/images/common/toast/default.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Success style */
#toast-root .toast-text[data-type="success"] {
  min-width: 160px;
  max-width: 400px;
  width: fit-content;
  background: #FFFFFF;
  color: #303031;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

#toast-root .toast-text[data-type="success"]::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/assets/images/common/toast/success.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Error style */
#toast-root .toast-text[data-type="error"] {
  min-width: 160px;
  max-width: 400px;
  width: fit-content;
  background: #FFFFFF;
  color: #303031;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

#toast-root .toast-text[data-type="error"]::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/assets/images/common/toast/error.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Info style */
#toast-root .toast-text[data-type="info"] {
  min-width: 160px;
  max-width: 400px;
  width: fit-content;
  background: #FFFFFF;
  color: #303031;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

#toast-root .toast-text[data-type="info"]::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/assets/images/common/toast/info.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

#toast-root .toast-text[data-animation-type="appear-from-right"][data-animation-state="start"] {
  transform: translateX(100%);
  opacity: 0;
}

#toast-root .toast-text[data-animation-type="appear-from-right"][data-animation-state="end"] {
  transform: translateX(0%);
  opacity: 1;
}

#toast-root .toast-text[data-animation-type="appear-from-top"][data-animation-state="start"] {
  transform: translateY(-100%);
  opacity: 0;
}

#toast-root .toast-text[data-animation-type="appear-from-top"][data-animation-state="end"] {
  transform: translateY(0%);
  opacity: 1;
}