.ssb-toast-wrap {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  width: min(92vw, 420px);
}

.ssb-bottom_left {
  left: 18px;
  bottom: 18px;
}

.ssb-bottom_right {
  right: 18px;
  bottom: 18px;
}

.ssb-top_left {
  left: 18px;
  top: 18px;
}

.ssb-top_right {
  right: 18px;
  top: 18px;
}

.ssb-toast {
  --ssb-accent: #ff5a2b;
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  width: min(100%, 420px);
  padding: 10px 18px 10px 10px;
  color: #1f2433;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.25;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ssb-top_left .ssb-toast,
.ssb-top_right .ssb-toast {
  transform: translateY(-12px) scale(0.98);
}

.ssb-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ssb-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  color: var(--ssb-accent);
  background: #efeff2;
  border-radius: 50%;
  flex: 0 0 auto;
}

.ssb-avatar-head {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
}

.ssb-avatar-body {
  position: absolute;
  left: 10px;
  bottom: -12px;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50% 50% 38% 38%;
}

.ssb-content {
  min-width: 0;
}

.ssb-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: #111827;
}

.ssb-message {
  margin: 0 0 7px;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 500;
  color: #202438;
}

.ssb-meta {
  min-height: 16px;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  color: var(--ssb-accent);
}

.ssb-meta:empty,
.ssb-message:empty {
  display: none;
}

.ssb-close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #a8afbf;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ssb-close:hover,
.ssb-close:focus-visible {
  color: #475569;
  background: #f1f5f9;
  outline: none;
}

.ssb-theme-compact {
  grid-template-columns: 50px 1fr;
  min-height: 70px;
  max-width: 390px;
  padding: 9px 16px 9px 9px;
}

.ssb-theme-compact .ssb-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f8fafc, #dbeafe);
}

.ssb-theme-compact .ssb-avatar::before {
  content: "";
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.26), rgba(255, 255, 255, 0.72));
  border-radius: 50%;
}

.ssb-theme-compact .ssb-avatar-head,
.ssb-theme-compact .ssb-avatar-body {
  display: none;
}

.ssb-theme-compact .ssb-title {
  margin-bottom: 2px;
  font-size: 13px;
  color: #3b465b;
}

.ssb-theme-compact .ssb-message {
  margin-bottom: 5px;
  font-size: 12px;
  color: #8994aa;
}

.ssb-theme-compact .ssb-meta {
  font-size: 12px;
  color: #6f88b8;
}

.ssb-theme-hot {
  grid-template-columns: 58px 1fr;
  min-height: 78px;
  max-width: 420px;
  border: 2px solid #e6e6e6;
}

.ssb-theme-hot .ssb-avatar {
  width: 56px;
  height: 56px;
  color: var(--ssb-accent);
  background: color-mix(in srgb, var(--ssb-accent) 18%, #ffffff);
}

.ssb-theme-hot .ssb-avatar-head,
.ssb-theme-hot .ssb-avatar-body {
  display: none;
}

.ssb-fire {
  display: block;
  width: 30px;
  height: 40px;
}

.ssb-theme-hot .ssb-title {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.22;
  color: #262843;
}

.ssb-count {
  color: var(--ssb-accent);
}

.ssb-theme-hot .ssb-meta {
  margin-top: 4px;
  color: #96a3c0;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
  .ssb-theme-hot .ssb-avatar {
    background: #ffe3da;
  }
}

@media (max-width: 560px) {
  .ssb-toast-wrap {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .ssb-bottom_left,
  .ssb-bottom_right {
    bottom: 10px;
  }

  .ssb-top_left,
  .ssb-top_right {
    top: 10px;
  }

  .ssb-toast,
  .ssb-theme-hot {
    grid-template-columns: 48px 1fr;
    gap: 10px;
    min-height: 66px;
    padding: 8px 16px 8px 8px;
  }

  .ssb-avatar,
  .ssb-theme-hot .ssb-avatar {
    width: 48px;
    height: 48px;
  }

  .ssb-avatar-head {
    top: 14px;
    left: 16px;
    width: 16px;
    height: 16px;
  }

  .ssb-avatar-body {
    left: 9px;
    bottom: -11px;
    width: 32px;
    height: 32px;
  }

  .ssb-title,
  .ssb-message,
  .ssb-theme-hot .ssb-title {
    font-size: 13px;
  }

  .ssb-meta {
    font-size: 11px;
  }

  .ssb-fire {
    border-left-width: 17px;
    border-right-width: 17px;
    border-bottom-width: 42px;
  }
}
