/* Container positions */
.stfn-container{
  position: fixed;
  bottom: 18px;
  max-width: 360px;
  width: calc(100% - 24px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.stfn-right{ right: 12px; }
.stfn-left{ left: 12px; }

/* Mobile center override */
@media (max-width: 480px){
  .stfn-container.stfn-mobile-center{
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    max-width: 92vw;
    width: 92vw;
    align-items: stretch;
  }
}

/* Item layout with avatar */
.stfn-item{
  pointer-events: auto;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  padding: 10px 40px 10px 10px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  position: relative;
  line-height: 1.45;
  font-size: 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
}
.stfn-item.stfn-in{ transform: translateY(0); opacity: 1; }
.stfn-item.stfn-out{ opacity: 0; transform: translateY(10px); }

/* Avatar */
.stfn-avatar{
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #374151;
  flex-shrink: 0;
}
.stfn-avatar img{
  width: 100%; height: 100%; object-fit: cover;
}
.stfn-initials{
  font-weight: 700;
  font-size: 14px;
  opacity: .95;
}

/* Close button */
.stfn-close{
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: .8;
}
.stfn-close:hover{ opacity: 1; }

/* Content */
.stfn-content{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: normal;
}

/* Responsive tweak */
@media (max-width: 480px){
  .stfn-item{ font-size: 13px; grid-template-columns: 32px 1fr; }
  .stfn-avatar{ width:32px; height:32px; }
}
