.ksp-popup-host {
  position: fixed;
  z-index: 99996;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.ksp-popup-host--bottom-left {
  left: 20px;
  bottom: 92px;
}

.ksp-popup-host--bottom-right {
  right: 20px;
  bottom: 92px;
}

.ksp-popup-host--top-left {
  left: 20px;
  top: 20px;
}

.ksp-popup-host--top-right {
  right: 20px;
  top: 20px;
}

.ksp-popup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(122, 20, 122, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(24, 16, 24, 0.16);
  color: #171117;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(14px) scale(0.98);
  transition: opacity 260ms ease, transform 260ms ease;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ksp-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ksp-popup::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #7a147a, #bf3cae);
}

.ksp-popup__link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.ksp-popup__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 7px;
  background: #f5edf5;
  color: #7a147a;
}

.ksp-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ksp-popup__media--icon {
  font-size: 24px;
}

.ksp-popup__content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ksp-popup__eyebrow {
  color: #7a147a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ksp-popup__content strong {
  display: -webkit-box;
  overflow: hidden;
  color: #171117;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ksp-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #756675;
  cursor: pointer;
  pointer-events: auto;
}

.ksp-popup__close:hover,
.ksp-popup__close:focus-visible {
  background: #f5edf5;
  color: #7a147a;
  outline: none;
}

@media (max-width: 767px) {
  .ksp-popup-host {
    right: 14px;
    bottom: 88px;
    left: 14px;
    top: auto;
    width: auto;
  }
}

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