/* Rocket Grunt TCG – upsells (2026-10-20, snippet "Upsell: matching acrylic case + free-shipping add-ons").
   1. .rg-up-case: matching acrylic case under Add to basket on product pages (same look as the #82 wishlist panel).
   2. .rg-up-nudge: add-ons under the free-shipping bar in the mini basket and on the basket page.
   ":is(#rg-up-x, body)" gives rules an id-level weight so OceanWP, #63 and rg-dark.css don't win. */

/* ---------- 1. product page: matching case ---------- */
:is(#rg-up-x, body) ul.rg-up-wrap { list-style: none; margin: 0 0 18px; padding: 0; }
:is(#rg-up-x, body) ul.rg-up-wrap li.rg-up-case {
  --up-bg: #f7f7f8; --up-card: #fff; --up-ink: #111; --up-ink-2: #555; --up-muted: #777; --up-line: var(--rg-line, #dadee4);
  --up-tile: #fff; --up-red: #e63329; --up-red-ink: #c62a22; --up-ok: #17924a;
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  float: none; width: auto; margin: 0; padding: 14px 16px; list-style: none; text-align: left;
  border: var(--rg-bw, 2px) solid var(--up-line); border-radius: 14px; background: var(--up-bg); box-shadow: none;
  color: var(--up-ink-2); font: 400 14px/1.5 Poppins, system-ui, sans-serif;
}
:is(#rg-up-x, body) li.rg-up-case::before, :is(#rg-up-x, body) li.rg-up-case::after { display: none; content: none; }
:is(#rg-up-x, body) li.rg-up-case a.rg-up-case__img {
  grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: 0; padding: 6px;
  border-radius: 10px; background: var(--up-tile); overflow: hidden;
}
:is(#rg-up-x, body) li.rg-up-case a.rg-up-case__img img {
  display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; opacity: 1; transform: none;
}
:is(#rg-up-x, body) li.rg-up-case .rg-up-case__txt { grid-column: 2; grid-row: 1; min-width: 0; }
:is(#rg-up-x, body) li.rg-up-case p.rg-up-case__eyebrow {
  margin: 0 0 1px; color: var(--up-red-ink); font-size: 11.5px !important; font-weight: 700; line-height: 1.4 !important; letter-spacing: .06em; text-transform: uppercase;
}
:is(#rg-up-x, body) li.rg-up-case h3.rg-up-case__name { margin: 0; padding: 0; font-family: Poppins, system-ui, sans-serif; font-size: 15.5px; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-transform: none; }
:is(#rg-up-x, body) li.rg-up-case h3.rg-up-case__name a { color: var(--up-ink); text-decoration: none; }
:is(#rg-up-x, body) li.rg-up-case h3.rg-up-case__name a:hover { color: var(--up-red); }
:is(#rg-up-x, body) li.rg-up-case p.rg-up-case__meta { margin: 2px 0 0; color: var(--up-muted); font-size: 13.5px !important; line-height: 1.45 !important; }
:is(#rg-up-x, body) li.rg-up-case p.rg-up-case__meta strong, :is(#rg-up-x, body) li.rg-up-case p.rg-up-case__meta .woocommerce-Price-amount { color: var(--up-ink); font-weight: 700; }
:is(#rg-up-x, body) li.rg-up-case .rg-up-case__oos { color: var(--up-red-ink); font-weight: 600; }

/* buttons: red pill (Add case) / red outline (Notify me) */
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn {
  grid-column: 3; grid-row: 1; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin: 0; padding: 10px 20px; border: 2px solid transparent; border-radius: 999px;
  background: linear-gradient(135deg, #e63329 0, #b71c1c 100%); color: #fff; box-shadow: 0 10px 22px -12px rgba(230,51,41,.85);
  font-family: Poppins, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-transform: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s, background .2s, color .2s;
}
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn:hover, :is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn:focus {
  background: linear-gradient(135deg, #e63329 0, #b71c1c 100%); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(230,51,41,.95);
}
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn svg { flex: none; width: 15px; height: 15px; }
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn--notify,
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn--notify:hover,
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn--notify:focus {
  background: var(--up-card); border-color: var(--up-red); color: var(--up-red-ink); box-shadow: none;
}
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn--notify:hover { background: rgba(230,51,41,.07); }
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn:focus-visible { outline: 3px solid var(--up-ink); outline-offset: 3px; }
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn[aria-busy="true"] { opacity: .7; cursor: progress; }
:is(#rg-up-x, body) li.rg-up-case.is-on button.rg-up-case__btn--notify { cursor: default; transform: none; background: var(--up-card); }
:is(#rg-up-x, body) li.rg-up-case.is-asking button.rg-up-case__btn--notify { display: none; }
:is(#rg-up-x, body) li.rg-up-case.is-asking .rg-up-case__txt { grid-column: 2 / -1; }
/* WooCommerce adds its own "View basket" link after the button on added_to_cart; the #81 toast already offers it */
:is(#rg-up-x, body) li.rg-up-case a.added_to_cart { display: none !important; }

/* guest email row (shown after tapping Notify me) */
:is(#rg-up-x, body) li.rg-up-case form.rg-up-case__form { grid-column: 1 / -1; display: flex; gap: 8px; margin: 10px 0 0; }
:is(#rg-up-x, body) li.rg-up-case form.rg-up-case__form[hidden] { display: none; }
:is(#rg-up-x, body) li.rg-up-case input.rg-up-case__email {
  flex: 1 1 auto; min-width: 0; height: 46px; min-height: 46px; margin: 0; padding: 0 18px; border: var(--rg-bw, 2px) solid var(--up-line); border-radius: 999px;
  background: var(--up-card); color: var(--up-ink); font-family: inherit; font-size: 16px; line-height: 1.2; box-shadow: none; outline: 0; transition: border-color .2s, box-shadow .2s;
}
:is(#rg-up-x, body) li.rg-up-case input.rg-up-case__email::placeholder { color: #8a9099; opacity: 1; }
:is(#rg-up-x, body) li.rg-up-case input.rg-up-case__email:focus { border-color: var(--up-red); box-shadow: 0 0 0 4px rgba(230,51,41,.14); }
:is(#rg-up-x, body) li.rg-up-case .rg-up-case__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__send {
  flex: none; min-height: 46px; margin: 0; padding: 10px 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #e63329 0, #b71c1c 100%);
  color: #fff; font-family: Poppins, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: .02em; box-shadow: none; cursor: pointer;
}
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__send:hover, :is(#rg-up-x, body) li.rg-up-case button.rg-up-case__send:focus { background: linear-gradient(135deg, #e63329 0, #b71c1c 100%); color: #fff; }
:is(#rg-up-x, body) li.rg-up-case button.rg-up-case__send[aria-busy="true"] { opacity: .7; cursor: progress; }

:is(#rg-up-x, body) li.rg-up-case p.rg-up-case__msg { grid-column: 1 / -1; margin: 8px 0 0; color: var(--up-ink-2); font-size: 14px !important; line-height: 1.5 !important; }
:is(#rg-up-x, body) li.rg-up-case p.rg-up-case__msg:empty { display: none; }
:is(#rg-up-x, body) li.rg-up-case p.rg-up-case__msg.is-error { color: var(--up-red-ink); font-weight: 600; }
:is(#rg-up-x, body) li.rg-up-case p.rg-up-case__msg strong { color: var(--up-ink); overflow-wrap: anywhere; }
:is(#rg-up-x, body) li.rg-up-case p.rg-up-case__msg a { color: var(--up-red-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  :is(#rg-up-x, body) ul.rg-up-wrap li.rg-up-case { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; padding: 14px; }
  :is(#rg-up-x, body) li.rg-up-case a.rg-up-case__img { width: 64px; height: 64px; }
  :is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn { grid-column: 1 / -1; grid-row: 2; width: 100%; margin-top: 10px; }
  :is(#rg-up-x, body) li.rg-up-case form.rg-up-case__form { flex-wrap: wrap; }
  :is(#rg-up-x, body) li.rg-up-case input.rg-up-case__email, :is(#rg-up-x, body) li.rg-up-case button.rg-up-case__send { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn { transition: none; transform: none !important; }
}
@media (prefers-color-scheme: dark) {
  :is(#rg-up-x, body) ul.rg-up-wrap li.rg-up-case {
    --up-bg: #181b1f; --up-card: #14161a; --up-ink: #eef0f3; --up-ink-2: #b9bfc8; --up-muted: #8a929c; --up-line: var(--rg-line, #3f4650);
    --up-tile: #eef0f3; --up-red: #ec625b; --up-red-ink: #ec625b; --up-ok: #3ccf7a;
  }
  :is(#rg-up-x, body) li.rg-up-case h3.rg-up-case__name a:hover { color: #f28b85; }
  :is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn--notify,
  :is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn--notify:focus,
  :is(#rg-up-x, body) li.rg-up-case.is-on button.rg-up-case__btn--notify { background: transparent; }
  :is(#rg-up-x, body) li.rg-up-case button.rg-up-case__btn--notify:hover { background: rgba(236,98,91,.12); }
  :is(#rg-up-x, body) li.rg-up-case input.rg-up-case__email::placeholder { color: #7d8590; }
  :is(#rg-up-x, body) li.rg-up-case input.rg-up-case__email:focus { box-shadow: 0 0 0 4px rgba(236,98,91,.18); }
}

/* ---------- 2. basket: free-shipping add-ons ---------- */
:is(#rg-up-x, body) .rg-up-nudge {
  --up-ink: var(--mc-ink, #1b1e23); --up-ink-2: var(--mc-ink-2, #4a4f57); --up-muted: var(--mc-muted, #737a84); --up-line: var(--mc-line, #dadee4);
  --up-tile: var(--mc-tile, #f1f3f6); --up-card: var(--mc-card, #fff); --up-red: #e63329; --up-red-ink: var(--mc-red-ink, #d42d24);
  --up-red-soft: var(--mc-red-soft, #fdeeed); --up-ok: var(--mc-ok, #17924a);
  margin: 10px 18px 2px; padding: 0; color: var(--up-ink-2); font: 400 14px/1.5 Poppins, system-ui, sans-serif; text-align: left;
}
:is(#rg-up-x, body) .rg-up-nudge *, :is(#rg-up-x, body) .rg-up-nudge *::before, :is(#rg-up-x, body) .rg-up-nudge *::after { box-sizing: border-box; }
:is(#rg-up-x, body) .rg-up-nudge p.rg-up-nudge__h { margin: 0 0 4px; color: var(--up-ink); font-size: 12.5px !important; font-weight: 700; line-height: 1.4 !important; }
:is(#rg-up-x, body) .rg-up-nudge ul.rg-up-nudge__list { list-style: none; margin: 0; padding: 0; border: 0; max-height: none; overflow: visible; }
:is(#rg-up-x, body) .rg-up-nudge li.rg-up-nudge__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 0;
  margin: 0; padding: 6px 0; border: 0; border-radius: 0; background: none; line-height: 1.4 !important; list-style: none;
}
:is(#rg-up-x, body) .rg-up-nudge li.rg-up-nudge__item + li.rg-up-nudge__item { border-top: 1px solid var(--mc-line-soft, #eceef1); }
:is(#rg-up-x, body) .rg-up-nudge li.rg-up-nudge__item::before, :is(#rg-up-x, body) .rg-up-nudge li.rg-up-nudge__item::after { display: none; content: none; }
:is(#rg-up-x, body) .rg-up-nudge a.rg-up-nudge__thumb { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 9px; background: var(--up-tile); overflow: hidden; }
:is(#rg-up-x, body) .rg-up-nudge a.rg-up-nudge__thumb img {
  position: static; display: block; width: 84%; height: 84%; max-width: none; margin: 0; padding: 0; object-fit: contain; mix-blend-mode: multiply;
  border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 1; transform: none; float: none;
}
:is(#rg-up-x, body) .rg-up-nudge .rg-up-nudge__info { display: grid; gap: 1px; min-width: 0; }
:is(#rg-up-x, body) .rg-up-nudge a.rg-up-nudge__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0;
  color: var(--up-ink); font-size: 13px; font-weight: 600; line-height: 1.35; text-decoration: none;
}
:is(#rg-up-x, body) .rg-up-nudge a.rg-up-nudge__name:hover { color: var(--up-red-ink); }
:is(#rg-up-x, body) .rg-up-nudge .rg-up-nudge__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--up-muted); font-size: 12px; line-height: 1.4; }
:is(#rg-up-x, body) .rg-up-nudge .rg-up-nudge__meta .woocommerce-Price-amount { color: var(--up-ink-2); font-weight: 600; }
:is(#rg-up-x, body) .rg-up-nudge .rg-up-nudge__tag { color: var(--up-ok); font-size: 11.5px; font-weight: 700; }
:is(#rg-up-x, body) .rg-up-nudge .rg-up-nudge__tag--fit { color: var(--up-red-ink); }
:is(#rg-up-x, body) .rg-up-nudge button.rg-up-add {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; min-height: 0; margin: 0; padding: 0 13px 0 10px;
  border: 1.5px solid var(--up-red); border-radius: 999px; background: var(--up-card); box-shadow: none; color: var(--up-red-ink);
  font: 700 12.5px/1 Poppins, system-ui, sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
:is(#rg-up-x, body) .rg-up-nudge button.rg-up-add svg { width: 12px; height: 12px; }
:is(#rg-up-x, body) .rg-up-nudge button.rg-up-add:hover, :is(#rg-up-x, body) .rg-up-nudge button.rg-up-add:focus { background: var(--up-red); border-color: var(--up-red); color: #fff; }
:is(#rg-up-x, body) .rg-up-nudge button.rg-up-add:focus-visible { outline: 2px solid var(--up-ink); outline-offset: 2px; }
:is(#rg-up-x, body) .rg-up-nudge button.rg-up-add[aria-busy="true"] { opacity: .55; cursor: progress; }

/* basket page: inside the basket card, between the free-shipping bar (padding 16px 22px) and the lines */
:is(#rg-up-x, body) .rg-up-nudge.rg-up-nudge--cart { margin: -4px 0 0; padding: 0 22px 12px; border: 0; border-radius: 0; background: none; }
:is(#rg-up-x, body) .rg-up-nudge.rg-up-nudge--cart p.rg-up-nudge__h { font-size: 14px !important; }
:is(#rg-up-x, body) .rg-up-nudge.rg-up-nudge--cart li.rg-up-nudge__item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; }
:is(#rg-up-x, body) .rg-up-nudge.rg-up-nudge--cart a.rg-up-nudge__thumb { width: 52px; height: 52px; }
:is(#rg-up-x, body) .rg-up-nudge.rg-up-nudge--cart a.rg-up-nudge__name { font-size: 14px; }
:is(#rg-up-x, body) .rg-up-nudge.rg-up-nudge--cart .rg-up-nudge__meta { font-size: 13px; }
:is(#rg-up-x, body) .rg-up-nudge.rg-up-nudge--cart button.rg-up-add { height: 36px; padding: 0 16px 0 12px; font-size: 13.5px; }

@media (max-width: 767px) {
  /* #59 makes every button 16px on phones */
  :is(#rg-up-x, body) .rg-up-nudge button.rg-up-add { height: 36px; }
}
@media (prefers-color-scheme: dark) {
  :is(#rg-up-x, body) .rg-up-nudge {
    --up-ink: var(--mc-ink, #eceef1); --up-ink-2: var(--mc-ink-2, #c3c8cf); --up-muted: var(--mc-muted, #8f97a2); --up-line: var(--mc-line, #3f4650);
    --up-tile: var(--mc-tile, #eef0f3); --up-card: var(--mc-card, #1a1d22); --up-red: #ec625b; --up-red-ink: var(--mc-red-ink, #ef6a63);
    --up-red-soft: var(--mc-red-soft, rgba(236,98,91,.12)); --up-ok: var(--mc-ok, #3ccf7a);
  }
  :is(#rg-up-x, body) .rg-up-nudge li.rg-up-nudge__item + li.rg-up-nudge__item { border-top-color: var(--mc-line-soft, #2a2f36); }
  :is(#rg-up-x, body) .rg-up-nudge button.rg-up-add { background: transparent; }
  :is(#rg-up-x, body) .rg-up-nudge button.rg-up-add:hover, :is(#rg-up-x, body) .rg-up-nudge button.rg-up-add:focus { background: var(--up-red); color: #fff; }
}
