/* Minimalist modern popup with CSS variables */
.wsn-popup {
  --wsn-slide-x: 0;
  --wsn-slide-y: 10px;
  --wsn-slide-distance: calc(100vw + var(--wsn-offx, 20px) + 40px);
  position: fixed;
  bottom: var(--wsn-offy, 20px);
  left: var(--wsn-offx, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  padding: 10px 14px;
  background: var(--wsn-bg, #fff);
  color: var(--wsn-text, #222);
  border-radius: var(--wsn-radius, 32px);
  box-shadow: var(--wsn-shadow, 0 6px 20px rgba(0, 0, 0, 0.12));
  font-family: var(--wsn-font, Poppins, Arial, sans-serif);
  font-weight: 400;
  z-index: 999999;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translate(var(--wsn-slide-x), var(--wsn-slide-y));
  transition: transform 0.2s ease, visibility 0s linear 0.2s;
}

.wsn-popup.wsn-visible {
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0);
  transition-delay: 0s;
}

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

.wsn-popup.wsn-top {
  top: var(--wsn-offy, 20px);
  bottom: auto;
  --wsn-slide-y: -10px;
}

.wsn-popup.wsn-slide-left {
  --wsn-slide-x: calc(-1 * var(--wsn-slide-distance));
}

.wsn-popup.wsn-slide-right {
  --wsn-slide-x: var(--wsn-slide-distance);
}

.wsn-img {
  width: var(--wsn-img, 46px);
  height: var(--wsn-img, 46px);
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 var(--wsn-img, 46px);
}

.wsn-text {
  line-height: 1.35;
}

.wsn-line1 {
  margin: 0;
  font-size: var(--wsn-line1, 13px);
  font-weight: 400;
  color: var(--wsn-text, #555);
}

.wsn-product {
  margin: 2px 0 2px;
  font-size: var(--wsn-product-size, 14px);
  font-weight: 600;
  color: var(--wsn-product, #1a7c2e);
}

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

.wsn-close {
  background: transparent;
  border: none;
  padding: 2px 4px;
  font-size: 18px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
}
