#pmxspp-toast {
  --pmxspp-bg: #ffffff;
  --pmxspp-text: #102033;
  --pmxspp-accent: #0e4c92;
  --pmxspp-secondary: #c92332;
  --pmxspp-width: 390px;
  --pmxspp-radius: 18px;
  position: fixed;
  z-index: 999999;
  width: min(var(--pmxspp-width), calc(100vw - 28px));
  color: var(--pmxspp-text);
  font-family: inherit;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 280ms ease, transform 280ms ease;
}

#pmxspp-toast.pmxspp-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#pmxspp-toast.pmxspp-pos-bottom_left { left: 22px; bottom: 22px; }
#pmxspp-toast.pmxspp-pos-bottom_right { right: 22px; bottom: 22px; }
#pmxspp-toast.pmxspp-pos-top_left { left: 22px; top: 22px; transform: translateY(-18px) scale(0.98); }
#pmxspp-toast.pmxspp-pos-top_right { right: 22px; top: 22px; transform: translateY(-18px) scale(0.98); }
#pmxspp-toast.pmxspp-visible.pmxspp-pos-top_left,
#pmxspp-toast.pmxspp-visible.pmxspp-pos-top_right { transform: translateY(0) scale(1); }

#pmxspp-toast .pmxspp-inner {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 14px 44px 14px 14px;
  border-radius: var(--pmxspp-radius);
  overflow: hidden;
  background: var(--pmxspp-bg);
  box-shadow: 0 18px 45px rgba(8, 22, 42, 0.22);
}

#pmxspp-toast .pmxspp-inner:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

#pmxspp-toast .pmxspp-inner.pmxspp-no-image {
  grid-template-columns: 1fr;
  min-height: 92px;
}

#pmxspp-toast .pmxspp-image-wrap {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  background: rgba(14, 76, 146, 0.08);
  border: 1px solid rgba(14, 76, 146, 0.16);
  overflow: hidden;
  text-decoration: none;
}

#pmxspp-toast.pmxspp-img-rounded .pmxspp-image-wrap { border-radius: 14px; }
#pmxspp-toast.pmxspp-img-square .pmxspp-image-wrap { border-radius: 4px; }
#pmxspp-toast.pmxspp-img-circle .pmxspp-image-wrap { border-radius: 50%; }

#pmxspp-toast .pmxspp-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#pmxspp-toast .pmxspp-image-placeholder {
  color: var(--pmxspp-accent);
  font-weight: 900;
  letter-spacing: 0.06em;
}

#pmxspp-toast .pmxspp-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

#pmxspp-toast .pmxspp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

#pmxspp-toast .pmxspp-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--pmxspp-accent);
  color: #fff;
  font-weight: 800;
}

#pmxspp-toast .pmxspp-date {
  opacity: 0.76;
  font-weight: 700;
}

#pmxspp-toast .pmxspp-name-line,
#pmxspp-toast .pmxspp-product-line {
  font-size: 14px;
  line-height: 1.32;
}

#pmxspp-toast .pmxspp-name-line strong {
  color: inherit;
  font-weight: 850;
}

#pmxspp-toast .pmxspp-product-line {
  margin-top: 2px;
}

#pmxspp-toast .pmxspp-product-link,
#pmxspp-toast .pmxspp-product-name {
  color: var(--pmxspp-accent);
  font-weight: 850;
  text-decoration: none;
}

#pmxspp-toast .pmxspp-product-link:hover {
  text-decoration: underline;
}

#pmxspp-toast .pmxspp-amount {
  margin-top: 6px;
  color: var(--pmxspp-secondary);
  font-size: 13px;
  font-weight: 900;
}

#pmxspp-toast .pmxspp-close {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 20, 35, 0.08);
  color: currentColor;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#pmxspp-toast .pmxspp-close:hover {
  background: rgba(10, 20, 35, 0.16);
}

/* Style 1: Patriot Lab */
#pmxspp-toast.pmxspp-style-patriot_lab .pmxspp-inner {
  border: 1px solid rgba(14, 76, 146, 0.18);
  background: linear-gradient(135deg, var(--pmxspp-bg) 0%, #f7fbff 58%, #fff 100%);
}
#pmxspp-toast.pmxspp-style-patriot_lab .pmxspp-inner:before {
  background:
    radial-gradient(circle at 85% 10%, rgba(201,35,50,.18), transparent 26%),
    radial-gradient(circle at 12% 80%, rgba(14,76,146,.13), transparent 32%);
}
#pmxspp-toast.pmxspp-style-patriot_lab .pmxspp-inner:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--pmxspp-accent), var(--pmxspp-secondary));
}

/* Style 2: Clinical Clean */
#pmxspp-toast.pmxspp-style-clinical_clean .pmxspp-inner {
  border: 1px solid rgba(14, 76, 146, 0.12);
  background: linear-gradient(180deg, #ffffff, #f4f8fc);
  box-shadow: 0 14px 34px rgba(15, 37, 62, 0.16);
}
#pmxspp-toast.pmxspp-style-clinical_clean .pmxspp-badge {
  background: rgba(14, 76, 146, 0.10);
  color: var(--pmxspp-accent);
}

/* Style 3: Midnight DNA */
#pmxspp-toast.pmxspp-style-midnight_dna {
  color: #f6fbff;
}
#pmxspp-toast.pmxspp-style-midnight_dna .pmxspp-inner {
  background: linear-gradient(135deg, #071528, #0b2f5d 62%, #071528);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 55px rgba(0, 8, 20, 0.38);
}
#pmxspp-toast.pmxspp-style-midnight_dna .pmxspp-inner:before {
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.06) 28% 30%, transparent 30% 55%, rgba(255,255,255,.05) 55% 57%, transparent 57%),
    radial-gradient(circle at 85% 20%, rgba(201,35,50,.25), transparent 30%);
}
#pmxspp-toast.pmxspp-style-midnight_dna .pmxspp-product-link,
#pmxspp-toast.pmxspp-style-midnight_dna .pmxspp-product-name { color: #9dccff; }
#pmxspp-toast.pmxspp-style-midnight_dna .pmxspp-amount { color: #ffb9c0; }
#pmxspp-toast.pmxspp-style-midnight_dna .pmxspp-image-wrap { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
#pmxspp-toast.pmxspp-style-midnight_dna .pmxspp-close { background: rgba(255,255,255,.14); color: #fff; }

/* Style 4: Glass Research */
#pmxspp-toast.pmxspp-style-glass_research .pmxspp-inner {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 18px 42px rgba(12, 38, 75, 0.22);
}
#pmxspp-toast.pmxspp-style-glass_research .pmxspp-inner:before {
  background: linear-gradient(135deg, rgba(14,76,146,.12), transparent 44%, rgba(201,35,50,.10));
}

/* Style 5: USA Badge */
#pmxspp-toast.pmxspp-style-usa_badge .pmxspp-inner {
  background: #fff;
  border: 2px solid rgba(14,76,146,.22);
  box-shadow: 0 15px 36px rgba(13, 44, 88, .19);
}
#pmxspp-toast.pmxspp-style-usa_badge .pmxspp-inner:before {
  opacity: .9;
  background:
    linear-gradient(90deg, rgba(201,35,50,.10) 0 10px, transparent 10px 20px) top right/80px 100% no-repeat,
    radial-gradient(circle at 95% 95%, rgba(14,76,146,.12), transparent 35%);
}
#pmxspp-toast.pmxspp-style-usa_badge .pmxspp-badge {
  background: linear-gradient(90deg, var(--pmxspp-accent), var(--pmxspp-secondary));
}

@media (max-width: 600px) {
  #pmxspp-toast,
  #pmxspp-toast.pmxspp-pos-bottom_left,
  #pmxspp-toast.pmxspp-pos-bottom_right {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
  #pmxspp-toast.pmxspp-pos-top_left,
  #pmxspp-toast.pmxspp-pos-top_right {
    left: 14px;
    right: 14px;
    top: 14px;
    width: auto;
  }
  #pmxspp-toast .pmxspp-inner {
    grid-template-columns: 62px 1fr;
    gap: 11px;
    min-height: 92px;
    padding: 12px 40px 12px 12px;
  }
  #pmxspp-toast .pmxspp-image-wrap {
    width: 62px;
    height: 62px;
  }
  #pmxspp-toast .pmxspp-name-line,
  #pmxspp-toast .pmxspp-product-line {
    font-size: 13px;
  }
}
