.tms-toast-stack {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 372px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

.tms-toast {
  --tt-color: var(--Primary-600, #234DE3);
  --tt-color-2: #1A6FC0;
  --tt-tint: rgba(39, 85, 249, .09);
  --tt-tint-2: rgba(34, 184, 240, .08);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 12px 16px 13px;
  overflow: hidden;
  border-radius: 18px;
  color: var(--text-color, #313339);
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: radial-gradient(90% 130% at 108% -20%, var(--tt-tint) 0%, transparent 62%), radial-gradient(80% 120% at -12% 125%, var(--tt-tint-2) 0%, transparent 58%), linear-gradient(160deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.6) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(20, 40, 120, 0.07), 0 4px 10px rgba(20, 40, 120, 0.07), 0 18px 40px -12px rgba(20, 40, 120, 0.3);
}
.tms-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}
.tms-toast::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.tms-toast {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(36px, 10px, 0) scale(0.94);
  transition: opacity 0.35s ease, filter 0.45s ease, transform 0.6s cubic-bezier(0.16, 1.24, 0.3, 1), box-shadow 0.2s ease;
}
.tms-toast.is-show {
  opacity: 1;
  filter: none;
  transform: none;
}
.tms-toast.is-show::after {
  animation: tms-toast-sweep 0.9s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tms-toast.is-hide {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(48px, 0, 0) scale(0.94);
  transition: opacity 0.24s ease, filter 0.26s ease, transform 0.3s cubic-bezier(0.5, 0, 0.75, 0);
  pointer-events: none;
}
.tms-toast.is-collapse {
  transition: height 0.26s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.26s cubic-bezier(0.22, 1, 0.36, 1), padding 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.tms-toast.is-bump {
  animation: tms-toast-bump 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.tms-toast:hover {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgb(255, 255, 255), inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(20, 40, 120, 0.09), 0 4px 12px rgba(20, 40, 120, 0.09), 0 22px 46px -12px rgba(20, 40, 120, 0.36);
}
.tms-toast--success {
  --tt-color: #0B7A3B;
  --tt-color-2: #0E8A43;
  --tt-tint: rgba(18, 161, 80, .10);
  --tt-tint-2: rgba(61, 214, 140, .08);
}
.tms-toast--warning {
  --tt-color: var(--Orange-700, #B45929);
  --tt-color-2: #C2620F;
  --tt-tint: rgba(254, 126, 58, .11);
  --tt-tint-2: rgba(255, 181, 71, .09);
}
.tms-toast--error {
  --tt-color: #C62A2D;
  --tt-color-2: #DC3539;
  --tt-tint: rgba(229, 56, 59, .10);
  --tt-tint-2: rgba(255, 122, 124, .07);
}
.tms-toast > :first-child {
  padding-right: 84px;
}

.tms-toast__title {
  position: relative;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--tt-color);
  background: linear-gradient(90deg, var(--tt-color), var(--tt-color-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tms-toast__msg {
  position: relative;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--Achromatic-800, #424652);
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tms-toast.is-held {
  display: none;
}

.tms-toast-more {
  display: none;
  align-self: flex-end;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  box-shadow: 0 0 0 1px rgba(20, 40, 120, 0.07), 0 6px 16px -6px rgba(20, 40, 120, 0.25);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--Achromatic-700, #5D616D);
  pointer-events: none;
}
.tms-toast-more.is-show {
  display: block;
  animation: tms-toast-more-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tms-toast-more-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.tms-toast__hint {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 16px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--Achromatic-600, #717682);
  transition: color 0.15s ease;
}
.tms-toast:hover .tms-toast__hint {
  color: var(--Achromatic-800, #424652);
}

@keyframes tms-toast-sweep {
  0% {
    left: -60%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}
@keyframes tms-toast-bump {
  0% {
    transform: none;
  }
  25% {
    transform: translateX(-7px);
  }
  55% {
    transform: translateX(4px);
  }
  80% {
    transform: translateX(-2px);
  }
  100% {
    transform: none;
  }
}
@media (max-width: 640px) {
  .tms-toast-stack {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    align-items: stretch;
  }
  .tms-toast {
    transform: translate3d(0, 24px, 0) scale(0.96);
  }
  .tms-toast.is-hide {
    transform: translate3d(0, 16px, 0) scale(0.96);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tms-toast,
  .tms-toast.is-hide {
    filter: none;
    transform: none;
    transition: opacity 0.15s ease;
    animation: none;
  }
  .tms-toast.is-show::after,
  .tms-toast.is-bump {
    animation: none;
  }
}
