.d8f-spp-root {
  position: fixed;
  z-index: 99998;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.d8f-spp-bottom-left {
  left: 18px;
  bottom: 18px;
}

.d8f-spp-bottom-right {
  right: 18px;
  bottom: 18px;
}

.d8f-spp-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
  color: #111827;
  font-family: inherit;
  pointer-events: auto;
  transform: translateY(10px);
  opacity: 0;
  animation: d8f-spp-enter 260ms ease-out forwards;
}

.d8f-spp-card.d8f-spp-hide {
  animation: d8f-spp-exit 180ms ease-in forwards;
}

.d8f-spp-media {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f7f2;
}

.d8f-spp-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d8f-spp-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #116149;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.d8f-spp-body {
  min-width: 0;
}

.d8f-spp-eyebrow {
  margin-bottom: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.d8f-spp-title {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
}

.d8f-spp-copy {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.d8f-spp-copy a {
  color: #116149;
  font-weight: 800;
  text-decoration: none;
}

.d8f-spp-copy a:hover {
  text-decoration: underline;
}

.d8f-spp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.d8f-spp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(17, 97, 73, 0.14);
  border-radius: 999px;
  background: #eef7f3;
  color: #116149;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.d8f-spp-close {
  display: grid;
  place-items: center;
  align-self: start;
  width: 34px;
  height: 34px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.d8f-spp-close:hover,
.d8f-spp-close:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
}

@keyframes d8f-spp-enter {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes d8f-spp-exit {
  to {
    transform: translateY(8px);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .d8f-spp-root {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .d8f-spp-card {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 10px;
    min-height: 76px;
  }

  .d8f-spp-media {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d8f-spp-card,
  .d8f-spp-card.d8f-spp-hide {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
