/**
 * Recent Purchase Notification Styles
 */

.yayboost-recent-purchase-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  max-width: 340px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
}

/* Visible state */
.yayboost-recent-purchase-notification--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Close button */
.yayboost-recent-purchase__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  line-height: 1;
}

.yayboost-recent-purchase__close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Link wrapper */
.yayboost-recent-purchase__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.yayboost-recent-purchase__link:hover {
  text-decoration: none;
}

/* Content */
.yayboost-recent-purchase__content {
  margin-bottom: 12px;
}

.yayboost-recent-purchase__text {
  font-size: 13px;
  font-weight: 600;
}

/* Product info */
.yayboost-recent-purchase__product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

.yayboost-recent-purchase__image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.yayboost-recent-purchase__product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.yayboost-recent-purchase__product-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yayboost-recent-purchase__time {
  font-size: 11px;
  font-weight: normal;
  color: #888;
}

.yayboost-recent-purchase__product-rating {
  display: flex;
  margin: 2px 0;
}

.yayboost-recent-purchase__product-rating .star-rating {
  font-size: 0.875em;
}

.yayboost-recent-purchase__product-price {
  font-size: 13px;
  font-weight: 600;
}

/* Hover effect */
.yayboost-recent-purchase__link:hover .yayboost-recent-purchase__product-name {
  color: #2563eb;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .yayboost-recent-purchase-notification {
    max-width: none;
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    width: auto;
  }

  .yayrev-social-proof__text {
    font-size: 13px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .yayboost-recent-purchase-notification {
    transition:
      opacity 0.1s ease,
      visibility 0.1s ease;
    transform: none;
  }
}
