/* YSLeadGen Social Proof notifications */

body.ysleadgen-social-proof-active,
html.ysleadgen-social-proof-active {
  overflow: auto !important;
  height: auto !important;
}

body.ysleadgen-social-proof-active::before,
html.ysleadgen-social-proof-active::before {
  display: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body:has(.ysleadgen-type-social-proof.ysleadgen-popup-active)::before {
  display: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.ysleadgen-type-social-proof {
  pointer-events: none !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  --ys-base-transform: none !important;
}

.ysleadgen-type-social-proof.ysleadgen-popup-active {
  opacity: 1 !important;
}

.yslg-sp-pos-bottom-left {
  bottom: 20px !important;
  left: 20px !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
}

.yslg-sp-pos-bottom-right {
  bottom: 20px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

.yslg-sp-pos-top-left {
  top: 20px !important;
  left: 20px !important;
  bottom: auto !important;
  right: auto !important;
  transform: none !important;
}

.yslg-sp-pos-top-right {
  top: 20px !important;
  right: 20px !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

.yslg-social-proof-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.yslg-social-proof-container {
  pointer-events: auto;
  max-width: 380px;
  width: calc(100vw - 40px);
}

.yslg-sp-toast {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: relative;
}

.yslg-sp-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.yslg-sp-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  z-index: 2;
}

.yslg-sp-close:hover {
  color: #374151;
}

.yslg-sp-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px 14px 14px;
  width: 100%;
}

.yslg-sp-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #f3f4f6;
  border-radius: 10px;
}

.yslg-sp-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.yslg-sp-text {
  flex: 1;
  min-width: 0;
}

.yslg-sp-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #1f2937;
  font-weight: 500;
}

@media (max-width: 480px) {
  .yslg-sp-pos-bottom-left,
  .yslg-sp-pos-bottom-right {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
  }

  .yslg-social-proof-container {
    max-width: 100%;
    width: 100%;
  }
}

/* Editor canvas: pin social proof toast to bottom-left */
.sp-editor-wrap,
.yslg-social-proof-wrapper.yslg-page {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 40px);
}

.yslg-social-proof-container .yslg-sp-toast {
  opacity: 1;
  transform: none;
}
