/* Recently Purchased Popup */

.bsp-rpp {
  position: fixed;
  z-index: 100040;
  width: min(100% - 24px, 360px);
  pointer-events: none;
}

.bsp-rpp--bottom-left {
  left: 16px;
  bottom: 16px;
}

.bsp-rpp--bottom-right {
  right: 16px;
  bottom: 16px;
}

.bsp-rpp[hidden] {
  display: none !important;
}

.bsp-rpp.is-visible {
  pointer-events: auto;
}

.bsp-rpp__toast {
  position: relative;
  display: block;
  background: var(--bsp-rpp-bg, #ffffff);
  border: 1px solid var(--bsp-rpp-border, #e5e2dd);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.bsp-rpp.is-visible .bsp-rpp__toast {
  opacity: 1;
  transform: translateY(0);
}

.bsp-rpp__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bsp-rpp-accent, #111111);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bsp-rpp__close:hover {
  opacity: 0.7;
}

.bsp-rpp__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 40px 14px 14px;
  color: inherit;
  text-decoration: none;
}

.bsp-rpp__thumb-wrap {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.bsp-rpp__thumb-wrap[hidden] {
  display: none !important;
}

.bsp-rpp__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsp-rpp__content {
  min-width: 0;
}

.bsp-rpp__message {
  display: block;
  color: var(--bsp-rpp-text, #111111);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.bsp-rpp__meta {
  display: block;
  margin-top: 4px;
  color: var(--bsp-rpp-muted, #6b6b6b);
  font-size: 12px;
  line-height: 1.4;
}

.bsp-rpp__verified::before {
  content: " · ";
}

@media (max-width: 480px) {
  .bsp-rpp {
    width: min(100% - 20px, 340px);
  }

  .bsp-rpp--bottom-left,
  .bsp-rpp--bottom-right {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}
