/* ================================================================
   PrintingProxies — cart "last chance to add these" upsell row
   Compact 5-across product strip shown above the cart table.
   Matches the page scale (Inter, px sizing) and the --ppw-* palette
   from pp-lovable-woo.css. Admin-only for now (gated in PHP).
   ================================================================ */

.pp-upsell {
  --pp-up-gold: var(--ppw-gold, oklch(0.72 0.16 70));
  --pp-up-warm: var(--ppw-warm, #e07b30);
  --pp-up-card: var(--ppw-card, #fff);
  --pp-up-text: var(--ppw-text, #1a1a1a);
  --pp-up-muted: var(--ppw-muted, #5a5a5a);
  --pp-up-border: var(--ppw-border, rgba(20, 24, 40, 0.10));

  font-family: var(--ppw-font, 'Inter', system-ui, sans-serif);
  margin: 0 0 22px;
  padding: 0;
}

/* ---- heading (no dead space above) ---- */
.pp-upsell__head {
  margin: 0 0 14px;
  text-align: center;
}
.pp-upsell__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--pp-up-text);
  letter-spacing: -0.01em;
}
.pp-upsell__title .pp-upsell__spark {
  background: linear-gradient(90deg, var(--pp-up-gold), var(--pp-up-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pp-upsell__sub {
  margin: 5px 0 0;
  font-size: 14.5px;
  color: var(--pp-up-muted);
}

/* ---- the 5-across grid ---- */
.pp-upsell__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* ---- a card ---- */
.pp-upsell__card {
  display: flex;
  flex-direction: column;
  background: var(--pp-up-card);
  border: 1px solid var(--pp-up-border);
  border-radius: var(--ppw-radius-sm, 12px);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pp-upsell__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  border-color: color-mix(in srgb, var(--pp-up-gold) 45%, var(--pp-up-border));
}

/* ---- image: full-bleed, cropped to a fixed box so all 5 are even ---- */
.pp-upsell__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4f5f8;
  line-height: 0;
  overflow: hidden;
}
.pp-upsell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---- body (tight, consistent height) ---- */
.pp-upsell__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px 13px 13px;
  gap: 7px;
}
.pp-upsell__name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--pp-up-text);
  /* fixed 2-line block so every card lines up */
  min-height: 2.56em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pp-upsell__name a {
  color: inherit;
  text-decoration: none;
}
.pp-upsell__name a:hover { text-decoration: underline; }

.pp-upsell__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--pp-up-muted);
  /* fixed 3-line block so every card lines up */
  min-height: 4.2em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- footer: small price + add, sits right under the text ---- */
.pp-upsell__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.pp-upsell__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--pp-up-text);
  line-height: 1;
}
.pp-upsell__btn,
.pp-upsell__btn:link,
.pp-upsell__btn:visited {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  /* white text on a deep-orange button: readable in BOTH states.
     !important so the site-wide link-hover color can't bleed in. */
  color: #fff !important;
  background: linear-gradient(135deg, #e07b30, #c25e12);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--pp-up-warm) 40%, transparent);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.pp-upsell__btn:hover,
.pp-upsell__btn:focus {
  color: #fff !important;
  background: linear-gradient(135deg, #c25e12, #a54c08);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pp-up-warm) 50%, transparent);
}
.pp-upsell__btn:active { transform: translateY(1px); }

/* ================================================================
   Retire the OLD Elementor add-ons row on the cart page (page 556).
   This compact strip replaces it. We hide the 5 product sections and
   the "To review your order, click here" widget, leaving the cart
   section (7e609a6) and its [woocommerce_cart] intact.
   INSTANT REVERT: delete this block.
   ================================================================ */
body.page-id-556 .elementor-element-491c2c2,   /* 100 TCG Sleeves */
body.page-id-556 .elementor-element-552206e,   /* MTG Proxy Booster */
body.page-id-556 .elementor-element-f668915,   /* Oval stickers */
body.page-id-556 .elementor-element-7e55513,   /* Dry erase tokens */
body.page-id-556 .elementor-element-d4c6bf8,   /* Triangle stickers */
body.page-id-556 .elementor-element-a0913bf {  /* "To review your order" line */
  display: none !important;
}

/* ---- responsive: wrap gracefully on smaller screens ---- */
@media (max-width: 1024px) {
  .pp-upsell__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .pp-upsell__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 380px) {
  .pp-upsell__grid { grid-template-columns: 1fr 1fr; }
  .pp-upsell__name { font-size: 14px; }
}
