/* Noxgear Upsells: cart strip. Design mocks/cart-upsell-final.html. Tokens match frontend.css (offer page). */
.nox-cu {
	--cu-ink: #0c0d0d; --cu-gray: #5C5C5C; --cu-struck: #8B8B8B; --cu-primary: #2b97f3; --cu-primary-dark: #0C71C7;
	--cu-deal-bg: #e4f2fe; --cu-deal-border: #b8dcfb; --cu-ok: #2E7D43; --cu-ok-bg: #F1F8F2; --cu-ok-border: #CDE6D1;
	--cu-rift: var(--wp--preset--font-family--headline, "Rift", "Arial Narrow", sans-serif);
	--cu-apercu: var(--wp--preset--font-family--primary, "Apercu Regular", system-ui, sans-serif);
	box-sizing: border-box;
	font-family: var(--cu-apercu);
	color: var(--cu-ink);
	background: var(--cu-deal-bg);
	border: 1px solid var(--cu-deal-border);
	border-left: 4px solid var(--cu-primary-dark);
	border-radius: 8px;
	padding: 10px 12px;
	margin: 0 0 14px;
	line-height: 1.3;
}
.nox-cu *, .nox-cu *::before, .nox-cu *::after { box-sizing: border-box; }
.nox-cu p { margin: 0; }
.nox-cu + .nox-cu { margin-top: -4px; }

.nox-cu__inline { display: flex; align-items: center; gap: 12px; }
.nox-cu__img { flex: none; display: block; width: 54px; height: 54px; border-radius: 6px; overflow: hidden; background: #fff; }
.nox-cu__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nox-cu__t { flex: 1 1 auto; min-width: 0; }
.nox-cu p.nox-cu__eyebrow { font-family: var(--cu-rift); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; color: var(--cu-primary-dark); line-height: 1; margin: 0 0 3px; }
.nox-cu__name { display: block; font-size: 14px; color: var(--cu-ink); font-weight: 700; }
.nox-cu__name .woocommerce-Price-amount { font-weight: 700; }
.nox-cu__sub { display: block; font-size: 12.5px; color: var(--cu-gray); margin-top: 2px; }
.nox-cu__struck { color: var(--cu-struck); text-decoration: line-through; }
.nox-cu__struck .woocommerce-Price-amount { color: inherit; }
.nox-cu__blurb { display: none; }

/* the offer page's button (frontend.css .nox-ppu-cta), scaled for the cart */
.nox-cu__add {
	flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 14px 16px; border: 0; border-radius: 8px;
	background: var(--cu-primary); color: #fff; cursor: pointer;
	font-family: var(--cu-rift); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; line-height: 1;
	transition: background .2s ease; white-space: nowrap;
}
.nox-cu__add:hover, .nox-cu__add:focus-visible { background: var(--cu-primary-dark); color: #fff; }
.nox-cu__add:focus-visible { outline: 3px solid var(--cu-ink); outline-offset: 3px; }
.nox-cu__add[disabled] { opacity: .6; cursor: progress; }
.nox-cu__add-long, .nox-cu__add-busy { display: none; }
.nox-cu__add.is-busy .nox-cu__add-short, .nox-cu__add.is-busy .nox-cu__add-long { display: none; }
.nox-cu__add.is-busy .nox-cu__add-busy { display: inline; }

.nox-cu__msg { font-size: 12.5px; color: var(--cu-gray); margin-top: 8px; }
.nox-cu__msg[hidden] { display: none; }

/* picker (one-row layout): full product photo of the chosen variation, plain color dots, one Add
   naming the choice. Phones get their own compact layout in the max-width block at the end. */
.nox-cu__inline--picker { flex-wrap: wrap; align-items: center; }
.nox-cu__inline--picker .nox-cu__t { flex: 1 1 0; min-width: 0; }
.nox-cu__hero { flex: none; width: 84px; height: 84px; border-radius: 8px; background: #fff; border: 1px solid var(--cu-deal-border); overflow: hidden; }
.nox-cu__hero img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nox-cu__dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 2px 0 3px 2px; }
.nox-cu__dot { width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--nox-swatch, #ddd); box-shadow: 0 0 0 1px rgba(0,0,0,.18); overflow: hidden; cursor: pointer; }
.nox-cu__dot--img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; transform: scale(1.7); transform-origin: 50% 55%; }
.nox-cu__dot:hover { box-shadow: 0 0 0 2px var(--cu-primary); }
.nox-cu__dot.is-selected { box-shadow: 0 0 0 2px var(--cu-primary-dark); }
.nox-cu__dot:focus-visible { outline: 3px solid var(--cu-ink); outline-offset: 2px; }
.nox-cu p.nox-cu__picked { font-size: 13px; color: var(--cu-ink); margin: 8px 0 0; line-height: 1.3; }
.nox-cu__add--picker { flex: 1 1 100%; width: 100%; margin-top: 10px; }
.nox-cu__add--picker .nox-cu__add-short { display: inline; }
.nox-cu__add--picker .nox-cu__add-long { display: none; }
.nox-cu__sub-color { display: none; }

/* after the tap */
.nox-cu--added { background: var(--cu-ok-bg); border-color: var(--cu-ok-border); border-left-color: var(--cu-ok); display: flex; align-items: center; gap: 10px; }
.nox-cu__ok { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--cu-ok); color: #fff; display: grid; place-items: center; font-size: 13px; }
.nox-cu--added .nox-cu__name { font-size: 13.5px; }
.nox-cu__undo { flex: none; margin-left: auto; padding: 10px 6px; font-size: 12.5px; color: var(--cu-gray); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.nox-cu__undo.is-busy { opacity: .5; pointer-events: none; }

/* desktop proportions (the deal strip) */
@media (min-width: 768px) {
	.nox-cu { padding: 12px 18px 12px 14px; }
	.nox-cu__inline { gap: 16px; }
	.nox-cu__img { width: 64px; height: 64px; }
	.nox-cu p.nox-cu__eyebrow { font-size: 11.5px; margin-bottom: 4px; }
	.nox-cu__name { font-size: 16px; }
	.nox-cu__sub { font-size: 13.5px; }
	.nox-cu__blurb { display: inline; }
	.nox-cu__add { padding: 15px 22px; font-size: 15px; }
	.nox-cu__add-long { display: inline; }
	.nox-cu__add-short { display: none; }
	.nox-cu__inline--picker { flex-wrap: nowrap; }
	.nox-cu__hero { width: 120px; height: 120px; }
	.nox-cu__dot { width: 28px; height: 28px; }
	.nox-cu__dots { gap: 10px; }
	.nox-cu__add--picker { flex: none; width: auto; margin-top: 0; }
	.nox-cu__add--picker .nox-cu__add-long { display: inline; }
	.nox-cu__add--picker .nox-cu__add-short { display: none; }
	.nox-cu--added .nox-cu__name { font-size: 15px; }
}

/* picker on phones (2026-11-05): compact, to match the simple strips. Row 1: photo | title block | Add.
   Row 2: every color dot on one line (they sat in the narrow text column before and the last one
   wrapped). The chosen color is named in the small line; the "Color:" line and the full-width button go.
   .nox-cu__t becomes display:contents so its children can be placed on the grid without new markup. */
@media (max-width: 767.98px) {
	.nox-cu__inline--picker { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: 1fr auto 1fr auto; column-gap: 12px; align-items: center; }
	.nox-cu__inline--picker .nox-cu__t { display: contents; }
	.nox-cu--picker .nox-cu__hero { width: 64px; height: 64px; grid-column: 1; grid-row: 1 / span 3; }
	.nox-cu--picker p.nox-cu__eyebrow { grid-column: 2; grid-row: 1; align-self: end; }
	.nox-cu--picker .nox-cu__name { grid-column: 2; grid-row: 2; }
	.nox-cu--picker .nox-cu__sub { grid-column: 2; grid-row: 3; align-self: start; }
	.nox-cu--picker .nox-cu__ships { display: none; }
	.nox-cu--picker .nox-cu__sub-color { display: inline; }
	/* Dots share the row: 30px each, shrinking (never below 22px) if more colors are in stock. */
	.nox-cu--picker .nox-cu__dots { grid-column: 1 / -1; grid-row: 4; margin: 10px 0 0; gap: 8px; flex-wrap: nowrap; align-items: center; }
	.nox-cu--picker .nox-cu__dot { flex: 1 1 30px; width: auto; height: auto; max-width: 30px; min-width: 22px; aspect-ratio: 1 / 1; }
	.nox-cu--picker p.nox-cu__picked { display: none; }
	.nox-cu__add--picker { grid-column: 3; grid-row: 1 / span 3; flex: none; width: auto; margin-top: 0; align-self: center; }
	.nox-cu__add--picker .nox-cu__add-short .nox-cu__add-color { display: none; }
}
