.wsn-popup {
  position: fixed;
  left: var(--wsn-offx, 24px);
  bottom: var(--wsn-offy, 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(360px, calc(100vw - 28px));
  max-width: min(360px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: var(--wsn-radius, 18px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.96)),
    var(--wsn-bg, #ffffff);
  color: var(--wsn-text, #1f2937);
  box-shadow: var(--wsn-shadow, 0 18px 45px rgba(15, 23, 42, 0.18));
  font-family: var(--wsn-font, Poppins, Arial, sans-serif);
  font-weight: 400;
  line-height: 1.3;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s step-end;
  z-index: 999999;
}

.wsn-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.wsn-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wsn-popup.wsn-right {
  left: auto;
  right: var(--wsn-offx, 24px);
}

.wsn-img {
  width: var(--wsn-img, 48px);
  height: var(--wsn-img, 48px);
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 var(--wsn-img, 48px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.wsn-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wsn-line1 {
  margin: 0;
  font-size: var(--wsn-line1, 13px);
  color: var(--wsn-text, #1f2937);
  opacity: 0.85;
}

.wsn-product {
  margin: 1px 0;
  font-size: var(--wsn-product-size, 15px);
  color: var(--wsn-product, #166534);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wsn-time {
  font-size: var(--wsn-time-size, 11px);
  color: var(--wsn-time, #6b7280);
}

.wsn-close {
  appearance: none;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #64748b;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.wsn-close:hover,
.wsn-close:focus-visible {
  background: rgba(15, 23, 42, 0.16);
  color: #1e293b;
}

@media (max-width: 680px) {
  .wsn-popup,
  .wsn-popup.wsn-right {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wsn-popup {
    transition: none;
    transform: none;
  }
}
