/**
 * Recently Added to Cart Notification Styles
 */

/* --- Inside the shared toast card ----------------------------------------
 * Rendered through the toast manager, the content lives inside a `.yayboost-toast`
 * card that provides the background, border, radius, shadow and padding. The
 * child styles below still apply; we only give the first text line room so it
 * doesn't run under the absolutely-positioned close button. */
.yayboost-toast .yayboost-recently-added-to-cart__text {
  padding-right: 20px;
}

/* Close button */
.yayboost-recently-added-to-cart__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-recently-added-to-cart__close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Link wrapper */
.yayboost-recently-added-to-cart__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.yayboost-recently-added-to-cart__link:hover {
  text-decoration: none;
}

/* Content */
.yayboost-recently-added-to-cart__content {
  margin-bottom: 12px;
}

.yayboost-recently-added-to-cart__text {
  font-size: 13px;
  font-weight: 600;
}

/* Action verb line (e.g. "added this to their cart") */
.yayboost-recently-added-to-cart__action {
  font-size: 13px;
  font-weight: 600;
}

/* Product info */
.yayboost-recently-added-to-cart__product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

.yayboost-recently-added-to-cart__image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.yayboost-recently-added-to-cart__product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.yayboost-recently-added-to-cart__product-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yayboost-recently-added-to-cart__product-rating {
  display: flex;
  margin: 2px 0;
}

.yayboost-recently-added-to-cart__product-rating .star-rating {
  font-size: 0.875em;
}

.yayboost-recently-added-to-cart__product-price {
  font-size: 13px;
  font-weight: 600;
}

/* Hover effect */
.yayboost-recently-added-to-cart__link:hover .yayboost-recently-added-to-cart__product-name {
  color: #2563eb;
}

/* Mobile responsive and reduced-motion behavior for the toast card itself
 * (position, sizing, transitions) live in toast-manager.css, scoped to
 * .yayboost-toast-stack / .yayboost-toast — this feature only supplies the
 * card's inner content, not the shell. */
