/* Deal Carts on live data (inc/deals/carts.php, assets/js/deal-carts.js). The kit's carts.css (in bundles/deals.css)
   carries the design; this layer only adds what real data needs: cover images instead of seed gradients, the
   "add to cart" button on deal rows and panel offers, loading placeholders, the guest note and phone layouts.
   Kit tokens only: no new colours. */

/* ---- real covers ------------------------------------------------------------------------------------------ */
.vgnw-ct-cover[style*="background-image"] { background-size: cover; background-position: center; background-repeat: no-repeat; }
.vgnw-ctx .vgnw-dl-item-thumb, .vgnw-ct-grow .vgnw-thumb { position: relative; display: block; overflow: hidden; background: var(--bg-inset); }
.vgnw-ctx .vgnw-dl-item-thumb img, .vgnw-ct-grow .vgnw-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vgnw-ctx .vgnw-dl-item-t a { color: inherit; text-decoration: none; }
.vgnw-ctx .vgnw-dl-item-t a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- cart rows -------------------------------------------------------------------------------------------- */
.vgnw-ctx .vgnw-ct-items .vgnw-dl-item.is-expired .vgnw-dl-now { color: var(--fg-default); }
.vgnw-ct-lowflag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-micro); font-size: 11px; color: var(--fg-muted); white-space: nowrap; }
.vgnw-ct-items .vgnw-dl-low { margin-top: 2px; }

/* ---- add to cart (deal rows, panel offers) ---------------------------------------------------------------- */
.vgnw-dx-list .vgnw-dl-item { grid-template-columns: 44px minmax(0, 1fr) 124px 148px 36px; }
.vgnw-ct-add { width: 34px; height: 34px; justify-self: end; position: relative; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.vgnw-ct-add i { font-size: 16px; }
.vgnw-ct-add:hover { border-color: var(--border-strong); color: var(--fg-default); }
.vgnw-ct-add:active { transform: scale(.92); }
.vgnw-ct-add.is-on { background: var(--fg-default); border-color: var(--fg-default); color: var(--bg-surface); }
.vgnw-ct-add.is-pop { animation: vgnw-ct-pop .42s var(--ease-out, cubic-bezier(.2, .7, .3, 1)); }
@keyframes vgnw-ct-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.vgnw-dx-offer-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.vgnw-dx-offer-row .vgnw-dx-offer { flex: 1; min-width: 0; margin-bottom: 0; }
.vgnw-ct-add--offer { width: 40px; height: auto; min-height: 40px; align-self: stretch; border-radius: 10px; }

/* ---- the add-to-cart picker ---------------------------------------------------------------------------------- */
.vgnw-ct-pickhead { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.vgnw-ct-pickhead .vgnw-ct-pick-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vgnw-ct-pickrow-c .vgnw-btn { flex-shrink: 0; }
.vgnw-ct-pickrow-c.is-in .vgnw-ct-pick-m { color: var(--accent-success); }
.vgnw-ct-pickrow-c[disabled] { cursor: default; opacity: .6; }
.vgnw-ct-newrow { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--border-subtle); }
.vgnw-ct-newrow .vgnw-input { flex: 1; min-width: 0; }

/* ---- rail panel (deals page) --------------------------------------------------------------------------------- */
.vgnw-ct-mine .vgnw-ct-panel-p { margin: 0; font-family: var(--font-text); font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.vgnw-ct-mine .vgnw-ct-cover { display: block; }
.vgnw-ct-mine .vgnw-ct-siderow { animation: vgnw-ct-in .36s var(--ease-out, cubic-bezier(.2, .7, .3, 1)) both; }

/* ---- guest note, empty and loading states -------------------------------------------------------------------- */
.vgnw-ct-guest { margin-top: 24px; }
.vgnw-ct-guest .vgnw-ct-note { align-items: center; flex-wrap: wrap; }
.vgnw-ct-guest .vgnw-ct-note span { flex: 1; min-width: 220px; }
.vgnw-ct-note a.vgnw-btn { flex-shrink: 0; }
.vgnw-ct-note-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 600; color: var(--fg-default); text-decoration: underline; text-underline-offset: 3px; }
.vgnw-ct-note-link i { font-size: 13px; }
[hidden].vgnw-empty, .vgnw-ct-guest[hidden], [data-ct-community-sec][hidden], .vgnw-ct-insights[hidden], .vgnw-ct-cmp[hidden] { display: none !important; }
.vgnw-ct-skel { border: 1px solid var(--border-subtle); border-radius: 10px; min-height: 236px; background: linear-gradient(100deg, var(--bg-raised) 30%, var(--bg-inset) 50%, var(--bg-raised) 70%) 0 0 / 300% 100%; animation: vgnw-ct-shimmer 1.4s linear infinite; }
.vgnw-ct-skel--row { min-height: 82px; border: none; border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
@keyframes vgnw-ct-shimmer { to { background-position: -300% 0; } }
.vgnw-ctx .vgnw-ct-card, .vgnw-ctx .vgnw-ct-items .vgnw-dl-item, .vgnw-ctx .vgnw-ct-insight { animation: vgnw-ct-in .42s var(--ease-out, cubic-bezier(.2, .7, .3, 1)) both; }
.vgnw-ctx .vgnw-ct-grid > :nth-child(2), .vgnw-ctx .vgnw-ct-items > :nth-child(2) { animation-delay: .04s; }
.vgnw-ctx .vgnw-ct-grid > :nth-child(3), .vgnw-ctx .vgnw-ct-items > :nth-child(3) { animation-delay: .08s; }
.vgnw-ctx .vgnw-ct-grid > :nth-child(n+4), .vgnw-ctx .vgnw-ct-items > :nth-child(n+4) { animation-delay: .12s; }
@keyframes vgnw-ct-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vgnw-ct-stat-n { transition: opacity var(--dur-base); }
.vgnw-ctx .vgnw-ct-items .vgnw-dl-item.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .22s, transform .22s; }
.vgnw-ct-missing { margin-top: 32px; }
.vgnw-ct-by .vgnw-avatar { flex-shrink: 0; }
.vgnw-ct-toast.is-error i { color: var(--accent-danger); }
.vgnw-ct-pv-good.is-free, .vgnw-dl-now.is-free { color: var(--accent-success); }

@media (prefers-reduced-motion: reduce) {
  .vgnw-ct-skel, .vgnw-ctx .vgnw-ct-card, .vgnw-ctx .vgnw-ct-items .vgnw-dl-item, .vgnw-ctx .vgnw-ct-insight, .vgnw-ct-mine .vgnw-ct-siderow, .vgnw-ct-add.is-pop { animation: none; }
}

/* ---- phones ----------------------------------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .vgnw-dx-list .vgnw-dl-item { grid-template-columns: 44px minmax(0, 1fr) auto 36px; grid-template-areas: "thumb main main price" "thumb shop shop add"; }
  .vgnw-dx-list .vgnw-dl-item .vgnw-dl-shop { justify-self: start; }
  .vgnw-dx-list .vgnw-ct-add { grid-area: add; align-self: center; }
  .vgnw-ctx .vgnw-ct-items .vgnw-dl-item { grid-template-columns: 44px minmax(0, 1fr) auto 36px; grid-template-areas: "thumb main main price" "thumb shop shop act"; row-gap: 8px; }
  .vgnw-ctx .vgnw-ct-items .vgnw-dl-shop { grid-area: shop; justify-self: start; min-width: 130px; }
  .vgnw-ctx .vgnw-ct-items .vgnw-ct-remove, .vgnw-ctx .vgnw-ct-items .vgnw-dl-item > span:last-child { grid-area: act; }
}
@media (max-width: 720px) {
  .vgnw-ctx .vgnw-page-head-row { flex-direction: column; align-items: stretch; }
  .vgnw-ctx .vgnw-ct-headactions { align-self: stretch; }
  .vgnw-ctx .vgnw-ct-headactions .vgnw-btn { flex: 1 1 auto; justify-content: center; }
  .vgnw-ct-tray { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  .vgnw-ct-toast { max-width: calc(100vw - 32px); white-space: normal; }
  .vgnw-ct-storegrid { grid-template-columns: repeat(3, 1fr); }
  .vgnw-ct-linkbox { flex-direction: column; }
}
