/* NDEVR product web widget styles. Scoped under .ndevr-product. The product NAME is the headline,
 * body copy rides on a frosted-glass sheet over the card art, and the action buttons are beveled
 * "box" buttons. Text colors use !important so generic heading/paragraph rules can't override them. */
/* Colors reference the --nd-* theme tokens from /shared/css/theme.css; every var() keeps the original dark literal as its fallback. */

/* The card (and everything it mounts on <body>: the detail overlay, notes/license popups, the
 * [ndevr_download] CTA) follows the page's dark/light theme. Most colors read the shared --nd-*
 * tokens directly; the props below cover what the shared tokens can't express — the glass tint
 * over the photo art, the glow that lifts copy off it, the card's outer hairline, and the
 * per-product accent used AS TEXT (--ndevr-ink), darkened in light mode for contrast just like
 * the global --nd-accent-text rule. Accent used as a FILL keeps --ndevr-accent untouched. */
.ndevr-product, .ndevr-download, .ndevr-product-overlay, .ndevr-product__notes-pop
{
	--ndevr-glass-rgb: 8, 11, 14;
	--ndevr-glow: rgba(0, 0, 0, 0.6);
	--ndevr-hero-border: rgba(255, 255, 255, 0.22);
	--ndevr-ink: var(--ndevr-accent, #f2a900);
}
html[data-theme="light"] .ndevr-product,
html[data-theme="light"] .ndevr-download,
html[data-theme="light"] .ndevr-product-overlay,
html[data-theme="light"] .ndevr-product__notes-pop
{
	--ndevr-glass-rgb: 244, 246, 249;
	--ndevr-glow: rgba(255, 255, 255, 0.66);
	--ndevr-hero-border: rgba(16, 20, 28, 0.2);
	--ndevr-ink: color-mix(in srgb, var(--ndevr-accent, #f2a900) 68%, #221a06);
}

.ndevr-product
{
	--ndevr-accent: var(--nd-accent-deep, #f2a900);   /* button + headline accent (NDEVR gold) */
	--ndevr-accent-dark: #0c5e88;     /* darker edge that gives the buttons their "thickness" */
	--ndevr-text: var(--nd-text-strong, #ffffff);
	--ndevr-radius: 10px;
	--ndevr-bevel: 11px;              /* corner chamfer size */
	box-sizing: border-box;           /* so height:100% + the 1px border don't overflow the grid cell */
	max-width: 920px;
	margin: 0 auto;
	color: var(--ndevr-text);
	font-family: var(--nd-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	line-height: 1.5;
	text-align: center;
}

.ndevr-product--loading::after
{
	content: "Loading…";
	display: block;
	padding: 2rem 0;
	color: var(--nd-text-strong, #fff);
	opacity: 0.7;
}

/* ================= [ndevr_download] CTA block: tagline + per-OS download buttons ================= */
/* Re-declares the same accent/bevel custom props as .ndevr-product so the reused beveled download
   buttons (.ndevr-product__btn) render identically when mounted outside a product card. The tagline
   inherits the surrounding section's text color so it reads correctly on any background. */
.ndevr-download
{
	--ndevr-accent: var(--nd-accent-deep, #f2a900);
	--ndevr-accent-dark: #0c5e88;
	--ndevr-bevel: 11px;
	box-sizing: border-box;
	margin: 0 auto;
	font-family: var(--nd-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	line-height: 1.5;
	text-align: center;
}
.ndevr-download__tagline
{
	margin: 0 0 1.6rem;
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	font-weight: 800;
	letter-spacing: 0.01em;
}
/* The button row already centers + wraps (.ndevr-product__dl-buttons); add breathing room below the
   tagline and let it use the full width so wrapping happens at the container edge, not the content. */
.ndevr-download .ndevr-product__dl-buttons { margin: 0; align-self: stretch; }

/* ================= Hero card: carousel BEHIND, frosted glass over it, content in front =========
 * Three stacked layers inside one outlined card:
 *   .ndevr-product__bg      — the carousel, full-bleed background (images COVER the card)
 *   .ndevr-product__glass   — a frosted-glass sheet over the image for text legibility
 *   .ndevr-product__content — title / marketing / description / buttons, riding in front
 * bg has no z-index (auto) so the carousel nav can still float above the glass via z-index:3. */
.ndevr-product--hero
{
	position: relative;
	overflow: hidden;
	min-height: 460px;
	height: 100%;                 /* fill the grid/flex cell so cards in a row match height */
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	border: 1px solid var(--ndevr-hero-border, rgba(255, 255, 255, 0.22));
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.10);
	isolation: isolate;
	text-align: center;
	/* Entrance: each card fades + rises in. In the directory grid the JS sets --ndevr-card-i per card so
	   the row cascades in (a soft diagonal wave) instead of every card flashing at once. The single-
	   product widget leaves --ndevr-card-i unset (0 → no delay). Disabled under reduced-motion below. */
	animation: ndevrProductIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: calc(var(--ndevr-card-i, 0) * 45ms);
}
@keyframes ndevrProductIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce)
{
	.ndevr-product--hero { animation: none; }
	.ndevr-product__bg .ndevr-product__image { opacity: 1; transition: none; }
}

.ndevr-product__bg
{
	position: absolute;
	inset: 0;
	overflow: hidden;            /* clip the carousel's off-screen slides to the card */
	background: var(--nd-bg-deep, #0f1216);
}
/* No product image yet → a subtle accent-tinted gradient instead of a flat well. */
.ndevr-product--no-image .ndevr-product__bg { background: linear-gradient(160deg, var(--nd-bg-soft, #181b21), var(--nd-bg-deep, #0f1216)); }
.ndevr-product--no-image .ndevr-product__bg::after
{
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 90% at 50% 0%, var(--ndevr-accent), transparent 60%);
	opacity: 0.18;
}

/* The carousel fills the background; stacked slides crossfade, images cover (crop) the whole card. */
.ndevr-product__bg .ndevr-product__carousel { height: 100%; margin: 0; }
.ndevr-product__bg .ndevr-product__stage { height: 100%; aspect-ratio: auto; border-radius: 0; background: transparent; }
.ndevr-product__bg .ndevr-product__image { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.55s ease; }
.ndevr-product__bg .ndevr-product__image.is-loaded { opacity: 1; }
.ndevr-product__bg .ndevr-product__caption { display: none; }
.ndevr-product--hero .ndevr-product__nav { z-index: 3; }

/* Frosted-glass sheet between the image and the content. */
.ndevr-product__glass
{
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(var(--ndevr-glass-rgb, 8, 11, 14), 0.32) 0%, rgba(var(--ndevr-glass-rgb, 8, 11, 14), 0.60) 52%, rgba(var(--ndevr-glass-rgb, 8, 11, 14), 0.82) 100%);
	-webkit-backdrop-filter: blur(7px) saturate(1.15);
	backdrop-filter: blur(7px) saturate(1.15);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	pointer-events: none;   /* let clicks reach the content + carousel nav */
}

/* Content layer, vertically centered over the hero. flex:1 makes it fill the card height so the
   content stays centered even when the card is stretched taller to match its row. */
.ndevr-product__content
{
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 460px;
	/* generous vertical breathing room, but tighter horizontal padding so a card in a 3-up grid keeps
	   enough usable width for the Learn More + Download buttons to stay side-by-side. */
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.25rem);
}
/* `margin-top: auto` is a flexible spacer after the summary: it soaks up all the extra height so the
   action buttons pin to the BOTTOM of the card. With equal-height cards in a row, the buttons (and
   everything below the summary) line up across the whole row regardless of how much text each has. */
.ndevr-product__content .ndevr-product__actions { margin-top: auto; padding-top: 1.6rem; }

/* Access badges — corner pills on the hero card shown when the signed-in OWL user OWNS a license for
   this product ("Owned", green) and/or may MANAGE it ("Manage", blue). They stack top-right, floating
   above the glass + content (z-index 4, same tier as the carousel nav). */
.ndevr-product__badges
{
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 4;
	display: flex;
	flex-direction: row;             /* pills sit side-by-side (horizontal), anchored to the top-right */
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	pointer-events: none;             /* the wrapper never intercepts clicks; only the pills do (below) */
}
/* The pills are <button>s; reset the generic button box so they render as clean colored badges. */
.ndevr-product__badge
{
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	margin: 0;
	min-height: 0;
	font-family: inherit;
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-shadow: none;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	padding: 0.32rem 0.7rem;
	background-image: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	/* Clickable: Owned -> license popup, Manage -> editor. The wrapper stays pointer-events:none so the
	   gaps between pills never steal a click from the card; only the pills themselves are interactive. */
	pointer-events: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.ndevr-product__badge:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42); }
.ndevr-product__badge:active { transform: translateY(0); }
.ndevr-product__badge:focus-visible { outline: 2px solid var(--nd-text-strong, #fff); outline-offset: 2px; }
.ndevr-product__owned  { background: var(--nd-owned, rgba(28, 160, 90, 0.92)); color: #eafff2; }   /* green */
.ndevr-product__manage { background: var(--nd-manage, rgba(31, 124, 200, 0.92)); color: #eaf4ff; }  /* blue  */
/* leading glyph via inline-SVG mask: a check for Owned, a gear for Manage (no icon font needed) */
.ndevr-product__badge::before
{
	content: "";
	width: 0.9em; height: 0.9em;
	flex: 0 0 auto;
	background: currentColor;
}
.ndevr-product__owned::before
{
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ndevr-product__manage::before
{
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm9.4 4-2.1-.6a7.3 7.3 0 0 0-.6-1.5l1-1.9-1.7-1.7-1.9 1a7.3 7.3 0 0 0-1.5-.6L13.6 2h-3.2l-.6 2.1a7.3 7.3 0 0 0-1.5.6l-1.9-1L4.7 6.4l1 1.9a7.3 7.3 0 0 0-.6 1.5L3 10.4v3.2l2.1.6a7.3 7.3 0 0 0 .6 1.5l-1 1.9 1.7 1.7 1.9-1a7.3 7.3 0 0 0 1.5.6l.6 2.1h3.2l.6-2.1a7.3 7.3 0 0 0 1.5-.6l1.9 1 1.7-1.7-1-1.9a7.3 7.3 0 0 0 .6-1.5l2.1-.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm9.4 4-2.1-.6a7.3 7.3 0 0 0-.6-1.5l1-1.9-1.7-1.7-1.9 1a7.3 7.3 0 0 0-1.5-.6L13.6 2h-3.2l-.6 2.1a7.3 7.3 0 0 0-1.5.6l-1.9-1L4.7 6.4l1 1.9a7.3 7.3 0 0 0-.6 1.5L3 10.4v3.2l2.1.6a7.3 7.3 0 0 0 .6 1.5l-1 1.9 1.7 1.7 1.9-1a7.3 7.3 0 0 0 1.5.6l.6 2.1h3.2l.6-2.1a7.3 7.3 0 0 0 1.5-.6l1.9 1 1.7-1.7-1-1.9a7.3 7.3 0 0 0 .6-1.5l2.1-.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Headline: the product NAME, the single most prominent element --- */
.ndevr-product__title
{
	color: var(--ndevr-ink, var(--ndevr-accent)) !important;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.05;
	margin: 0 0 0.5rem;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 10px var(--ndevr-glow, rgba(0, 0, 0, 0.55));
}

/* Logo image rendered in place of the text title (ProductImages role 'Logo').
   Sized by an explicit HEIGHT (not max-height) so vector/SVG logos with a small viewBox scale UP to a
   sensible size instead of rendering at their tiny intrinsic dimensions; object-fit:contain keeps the
   aspect ratio if an extreme-width logo hits max-width. */
.ndevr-product__logo
{
	display: block;
	width: auto;
	height: clamp(72px, 13vw, 132px);
	max-width: min(460px, 80%);
	margin: 0 auto 0.65rem;
	object-fit: contain;
	filter: drop-shadow(0 2px 12px var(--ndevr-glow, rgba(0, 0, 0, 0.6)));
}
.ndevr-product__logo.ndevr-product__title--overlay { height: clamp(84px, 14vw, 160px); margin-bottom: 1rem; }

/* --- Carousel --- */
.ndevr-product__carousel
{
	position: relative;
	margin: 0 0 1.5rem;
}

/* Stage holds the stacked, cross-fading slides — no scroll container, so it can never overflow. */
.ndevr-product__stage
{
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--ndevr-radius);
	background: var(--nd-bg-deep, #0f1216);
}

.ndevr-product__slide
{
	position: absolute;
	inset: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.7s ease;
	pointer-events: none;
}
.ndevr-product__slide.is-active { opacity: 1; pointer-events: auto; }

.ndevr-product__image { width: 100%; height: 100%; object-fit: contain; display: block; }

.ndevr-product__caption
{
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.85rem;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.ndevr-product__nav
{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border: none;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-size: 2.4rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.ndevr-product__nav:hover { opacity: 1; }
.ndevr-product__nav--prev { left: 0.25rem; }
.ndevr-product__nav--next { right: 0.25rem; }

/* --- Carousel pagination dots (active dot takes the accent color) --- */
.ndevr-product__dots
{
	position: absolute;
	left: 50%;
	bottom: 0.85rem;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 4;
}
/* `<button>`s reset to bare dots. */
.ndevr-product__dot
{
	width: 9px;
	height: 9px;
	padding: 0;
	margin: 0;
	min-width: 0;
	min-height: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.ndevr-product__dot:hover { background: rgba(255, 255, 255, 0.75); }
.ndevr-product__dot.is-active { background: var(--ndevr-accent); transform: scale(1.3); }

/* --- Text blocks (theme text-strong, lifted off the art by the glow) --- */
.ndevr-product__ad
{
	color: var(--nd-text-strong, #fff) !important;
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	font-weight: 600;
	margin: 0 auto 1rem;
	max-width: 52ch;
	text-shadow: 0 1px 6px var(--ndevr-glow, rgba(0, 0, 0, 0.6));
}

.ndevr-product__description
{
	color: var(--nd-text-strong, #fff) !important;
	margin: 0 auto 1.25rem;
	max-width: 60ch;
	text-shadow: 0 1px 5px var(--ndevr-glow, rgba(0, 0, 0, 0.55));
}
.ndevr-product__description * { color: var(--nd-text-strong, #fff) !important; }

.ndevr-product__long
{
	color: var(--nd-text-strong, #fff) !important;
	margin: 1.25rem auto 0;
	padding-top: 1.25rem;
	max-width: 62ch;
	border-top: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.25));
	text-align: left;
	text-shadow: 0 1px 5px var(--ndevr-glow, rgba(0, 0, 0, 0.55));
}
.ndevr-product__long * { color: var(--nd-text-strong, #fff) !important; }
.ndevr-product__long[hidden] { display: none; }

/* --- Action buttons: beveled "box" buttons with thickness --- */
.ndevr-product__actions
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55rem;
	margin: 0.5rem 0 0;
	/* content centers its children (align-items:center), which would otherwise shrink this row to
	   its content width and wrap the buttons early — stretch it so wrapping uses the full card width. */
	align-self: stretch;
	width: 100%;
}
/* Trim the card action buttons' side padding so "Learn More" + "Download" sit side-by-side in a
   standard-width card instead of wrapping to a stack; a genuinely narrow (mobile) card still wraps. */
.ndevr-product__actions .ndevr-product__btn
{
	padding-left: 1.05rem;
	padding-right: calc(1.05rem + 5px);
}

.ndevr-product__btn
{
	position: relative;
	display: inline-block;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	/* auto-contrast: dark text on a light accent (gold/yellow), white on a dark one — so the filled
	   Learn More / Download buttons stay legible whatever the product/theme color is. */
	color: var(--ndevr-on-accent, #fff);
	/* The element background is the dark "thickness" along the bottom-right; the bright accent FACE
	   is painted by ::before (see below). Don't swap these back: clip-path puts the button in its own
	   stacking context, so a z-index:-1 pseudo can NEVER get behind the element's background — it
	   always paints between the background and the label. With accent on the element the pseudo's
	   dark copy COVERED it and the button body rendered accent-dark everywhere. */
	background: var(--ndevr-accent-dark);
	border: none;
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	/* beveled (chamfered) top-left + bottom-right corners */
	clip-path: polygon(var(--ndevr-bevel) 0, 100% 0, 100% calc(100% - var(--ndevr-bevel)),
		calc(100% - var(--ndevr-bevel)) 100%, 0 100%, 0 var(--ndevr-bevel));
	/* nudge the label onto the FACE (which is inset 5px from the bottom-right) */
	padding: 0.8rem calc(1.5rem + 5px) calc(0.8rem + 5px) 1.5rem;
	transition: transform 0.08s ease, filter 0.12s ease;
}
/* the bright FACE, inset from the bottom-right so the dark element background reads as thickness */
.ndevr-product__btn::before
{
	content: "";
	position: absolute;
	inset: 0 5px 5px 0;
	background: var(--ndevr-accent);
	clip-path: inherit;
	z-index: -1;
}
.ndevr-product__btn:hover { filter: brightness(1.08); }
.ndevr-product__btn:active { transform: translate(5px, 5px); }
.ndevr-product__btn:active::before { inset: 0; }

/* --- Download fly-up menu --- */
.ndevr-product__download-wrap { position: relative; display: inline-block; }

.ndevr-product__downloads
{
	position: absolute;
	left: 50%;
	bottom: calc(100% + 12px);          /* flies UP, above the button */
	transform: translateX(-50%);
	min-width: 230px;
	background: var(--nd-surface-2, #23272f);
	border: 1px solid var(--nd-border, rgba(255, 255, 255, 0.18));
	border-radius: var(--nd-radius-sm, 8px);
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
	padding: 0.4rem;
	z-index: 50;
	text-align: left;
}
/* little pointer at the bottom of the menu, aimed at the button */
.ndevr-product__downloads::after
{
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: var(--nd-surface-2, #23272f);
}
.ndevr-product__downloads[hidden] { display: none; }

.ndevr-product__download-link
{
	display: flex;
	align-items: center;
	padding: 0.6rem 0.9rem;
	color: var(--nd-text-strong, #fff) !important;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 600;
}
.ndevr-product__os-icon
{
	width: 1.25em;
	height: 1.25em;
	margin-right: 0.65em;
	flex: 0 0 auto;
}
.ndevr-product__download-link:hover { background: var(--nd-tint-2, rgba(255, 255, 255, 0.12)); }
.ndevr-product__download-link.is-current { background: var(--ndevr-accent); color: var(--ndevr-on-accent, #fff) !important; }
.ndevr-product__download-link.is-current::after { content: "your device"; margin-left: auto; padding-left: 0.8em; font-weight: 400; font-size: 0.82em; opacity: 0.85; }

/* "Previous Versions" item — a <button> at the bottom of the menu (separated), opens version history. */
.ndevr-product__downloads-history
{
	width: 100%;
	margin: 0.3rem 0 0;
	padding: 0.6rem 0.9rem;
	min-width: 0;
	min-height: 0;
	border: none;
	border-top: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.15));
	border-radius: 0 0 5px 5px;
	background: transparent;
	box-shadow: none;
	color: var(--nd-text-strong, #fff) !important;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}
.ndevr-product__downloads-history:hover { background: var(--nd-tint-2, rgba(255, 255, 255, 0.12)); }
.ndevr-product__downloads-history .ndevr-product__os-icon { opacity: 0.85; }
.ndevr-product__downloads-history span:last-child { margin-right: auto; }

.ndevr-product__error
{
	padding: 1.5rem;
	color: var(--nd-text-strong, #fff) !important;
	opacity: 0.8;
	border: 1px dashed var(--nd-border, rgba(255, 255, 255, 0.3));
	border-radius: var(--ndevr-radius);
}

/* ================= Fullscreen detail overlay (opened by "Learn More") ================= */
.ndevr-product-overlay
{
	--ndevr-accent: var(--nd-accent-deep, #f2a900);
	--ndevr-accent-dark: #0c5e88;
	--ndevr-bevel: 11px;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 3vh 1rem;
	background: var(--nd-overlay, rgba(6, 9, 12, 0.82));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.28s ease;
	/* Clip horizontal: on Android the fixed overlay can reflow wider than the visual viewport when the
	   URL bar retracts mid-scroll ("overextends to the right"). overflow-x:hidden pins it to the screen. */
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: var(--nd-text-strong, #fff);
	font-family: var(--nd-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	line-height: 1.5;
}
.ndevr-product-overlay.is-open { opacity: 1; }

.ndevr-product-overlay__sheet
{
	position: relative;
	width: 100%;
	max-width: 960px;
	margin: auto;
	padding: clamp(1.25rem, 3vw, 2.75rem);
	background: var(--nd-surface, #1b1e24);
	border: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.12));
	/* accent strip across the top (matches the vendor/module/notes popups). !important so the
	   mobile `border: none` rule below can't strip it. */
	border-top: 3px solid var(--ndevr-accent) !important;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	/* slide up + scale in on open (reverses on close) */
	transform: translateY(28px) scale(0.985);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
	text-align: center;
}

/* A clean circular close button; flex-centers the glyph. */
.ndevr-product-overlay__close
{
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: var(--nd-tint-2, rgba(255, 255, 255, 0.1));
	color: var(--nd-text-strong, #fff);
	line-height: 1;
	cursor: pointer;
	opacity: 1;
	box-shadow: none;
	z-index: 2;
}
.ndevr-product-overlay__close:hover { background: var(--nd-hover, rgba(255, 255, 255, 0.22)); }
.ndevr-product__close-icon { display: block; width: 1.15rem; height: 1.15rem; }

.ndevr-product-overlay.is-open .ndevr-product-overlay__sheet { transform: none; opacity: 1; }

.ndevr-product-overlay__view { display: block; }
.ndevr-product-overlay__view[hidden] { display: none; }
/* View swap: the incoming view slides + fades in (history from the right, main from the left). */
@keyframes ndevrViewInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes ndevrViewInLeft  { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

/* Respect users who prefer reduced motion: keep it instant. */
@media (prefers-reduced-motion: reduce)
{
	.ndevr-product__slide,
	.ndevr-product-overlay,
	.ndevr-product-overlay__sheet { transition: none !important; animation: none !important; }
	.ndevr-product-overlay__sheet { transform: none; opacity: 1; }
}

/* The overlay reuses the carousel/title/ad/long blocks; a few overrides for the larger context. */
.ndevr-product-overlay .ndevr-product__carousel { margin-bottom: 1.75rem; }
.ndevr-product-overlay .ndevr-product__stage { aspect-ratio: 16 / 9; }
.ndevr-product__title--overlay { color: var(--ndevr-ink, var(--ndevr-accent)) !important; margin-top: 0.5rem; }
.ndevr-product-overlay .ndevr-product__ad { color: var(--nd-text-strong, #fff) !important; }
.ndevr-product__long--static { border-top: none; padding-top: 0; margin-top: 1.25rem; }

/* Dedicated per-OS download buttons (beveled), shown at the bottom of the detail page. */
.ndevr-product__dl-buttons
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.1rem;
	margin: 0 0 0.5rem;
}
.ndevr-product__dl-btn
{
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
}
.ndevr-product__dl-btn.is-current { outline: 2px solid var(--nd-muted, rgba(255, 255, 255, 0.55)); outline-offset: 3px; }
.ndevr-product__dl-btn .ndevr-product__os-icon { margin-right: 0; }

/* Version-history table. */
/* overflow-x:auto gives the table a horizontal scroll bar instead of being cut off by the overlay's
   overflow-x:hidden (on mobile the rows stack instead — see the media query below). */
.ndevr-product__history { margin-top: 0.5rem; text-align: left; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ndevr-product__history-empty { text-align: center; opacity: 0.7; padding: 2rem 0; }

/* Release-type filter chips above the table (active = accent). */
.ndevr-product__history-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.9rem; }
.ndevr-product__filter-label { font-size: 0.85rem; opacity: 0.75; }
.ndevr-product__filter-chip
{
	padding: 0.28em 0.85em;
	margin: 0;
	min-width: 0;
	min-height: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--nd-text-strong, #fff) !important;
	background: var(--nd-tint-1, rgba(255, 255, 255, 0.08));
	border: 1px solid var(--nd-border, rgba(255, 255, 255, 0.25));
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ndevr-product__filter-chip:hover { opacity: 1; }
.ndevr-product__filter-chip.is-on { background: var(--ndevr-accent); border-color: var(--ndevr-accent); color: var(--ndevr-on-accent, #fff) !important; opacity: 1; }
.ndevr-product__history-emptyrow td { text-align: center; opacity: 0.7; padding: 1.5rem 0; }

.ndevr-product__history-table
{
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.ndevr-product__history-table th
{
	text-align: left;
	padding: 0.6rem 0.8rem;
	border-bottom: 2px solid var(--ndevr-accent);
	color: var(--nd-text-strong, #fff) !important;
	font-weight: 700;
	white-space: nowrap;
}
.ndevr-product__history-table td
{
	padding: 0.7rem 0.8rem;
	border-bottom: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.12));
	color: var(--nd-text-strong, #fff) !important;
	vertical-align: top;
}
.ndevr-product__history-table tr.is-live { background: var(--nd-tint-1, rgba(255, 255, 255, 0.05)); }
/* Keep operator-authored note HTML readable on the dark sheet (overrides any inline child colors). */
.ndevr-product__history-notes,
.ndevr-product__history-notes * { color: var(--nd-text-strong, #fff) !important; }

/* Click-to-sort headers. */
.ndevr-product__history-th.is-sortable { cursor: pointer; user-select: none; }
.ndevr-product__history-th.is-sortable > span:first-child { vertical-align: middle; }
.ndevr-product__history-th.is-sortable:hover,
.ndevr-product__history-th.is-sorted,
.ndevr-product__history-th.is-sorted > span:first-child { color: var(--ndevr-ink, var(--ndevr-accent)) !important; }
.ndevr-product__sort-arrow
{
	display: inline-block;
	width: 1em;
	margin-left: 0.15em;
	font-size: 0.7em;
	color: var(--ndevr-ink, var(--ndevr-accent)) !important;
	vertical-align: middle;
}

.ndevr-product__history-ver { font-weight: 700; white-space: nowrap; }
.ndevr-product__history-tag,
.ndevr-product__history-live
{
	display: inline-block;
	font-size: 0.7em;
	font-weight: 700;
	padding: 0.1em 0.5em;
	border-radius: 999px;
	vertical-align: middle;
}
.ndevr-product__history-tag { background: var(--nd-tint-2, rgba(255, 255, 255, 0.18)); }
.ndevr-product__history-live { background: var(--ndevr-accent); color: var(--ndevr-on-accent, #fff); }

.ndevr-product__history-plat span { vertical-align: middle; }
.ndevr-product__history-plat .ndevr-product__os-icon { margin-right: 0.4em; }
.ndevr-product__history-dlcell { white-space: nowrap; }

.ndevr-product__history-dl
{
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--ndevr-ink, var(--ndevr-accent)) !important;
	text-decoration: none;
	font-weight: 600;
}
.ndevr-product__history-dl * { color: var(--ndevr-ink, var(--ndevr-accent)) !important; }

/* "Release Notes" button (opens the notes popup). */
.ndevr-product__notes-btn
{
	display: inline-block;
	padding: 0.25em 0.7em;
	margin: 0;
	min-width: 0;
	min-height: 0;
	font-size: 0.85em;
	font-weight: 600;
	color: var(--ndevr-ink, var(--ndevr-accent)) !important;
	background: transparent;
	border: 1px solid var(--ndevr-ink, var(--ndevr-accent));
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
	white-space: nowrap;
}
.ndevr-product__notes-btn:hover { background: var(--nd-tint-1, rgba(255, 255, 255, 0.08)); }

/* --- Modules box (detail page): one clickable card per compatible module --- */
/* Modules + Download + Version History: clearly delineated, collapsible panels (collapsed/expanded →
   count → expand). The `__histsec-*` / `__dlsec-*` classes share the modules panel styling — identical. */
.ndevr-product__modules,
.ndevr-product__histsec,
.ndevr-product__dlsec
{
	margin: 1.75rem 0 0.5rem;
	border: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.14));
	border-radius: var(--nd-radius, 12px);
	background: var(--nd-tint-1, rgba(255, 255, 255, 0.03));
	overflow: hidden;
	text-align: left;
}
.ndevr-product__modules-toggle,
.ndevr-product__histsec-toggle,
.ndevr-product__dlsec-toggle
{
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	margin: 0;
	padding: 1rem 1.25rem;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	color: var(--nd-text-strong, #fff) !important;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}
.ndevr-product__modules-toggle:hover,
.ndevr-product__histsec-toggle:hover,
.ndevr-product__dlsec-toggle:hover { background: var(--nd-tint-1, rgba(255, 255, 255, 0.05)); }
.ndevr-product__modules-count,
.ndevr-product__histsec-count,
.ndevr-product__dlsec-count
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6em;
	padding: 0.1em 0.55em;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0;
	background: var(--ndevr-accent);
	color: var(--ndevr-on-accent, #fff);
}
.ndevr-product__modules-chevron,
.ndevr-product__histsec-chevron,
.ndevr-product__dlsec-chevron
{
	margin-left: auto;
	display: inline-flex;
	color: var(--ndevr-ink, var(--ndevr-accent));
	transition: transform 0.18s ease;
}
.ndevr-product__modules-chevron svg,
.ndevr-product__histsec-chevron svg,
.ndevr-product__dlsec-chevron svg { width: 1.25rem; height: 1.25rem; }
.ndevr-product__modules-toggle.is-on .ndevr-product__modules-chevron,
.ndevr-product__modules-toggle.is-open .ndevr-product__modules-chevron,
.ndevr-product__histsec-toggle.is-open .ndevr-product__histsec-chevron,
.ndevr-product__dlsec-toggle.is-open .ndevr-product__dlsec-chevron { transform: rotate(180deg); }
/* Collapsible panel body — animates open to its REAL height via grid-template-rows (0fr → 1fr). The
   inner wrapper holds the padding/content and clips during the transition (overflow:hidden, min-height:0).
   No JS height measuring; degrades to an instant open on browsers without grid-row interpolation. */
.ndevr-product__modules-body,
.ndevr-product__histsec-body,
.ndevr-product__dlsec-body
{
	display: grid;
	/* minmax(0, …) forces the track MIN to 0 so the inner's padding can't floor the collapsed height
	   at ~20px — it collapses cleanly to 0 and the inner's overflow:hidden clips the padding+content. */
	grid-template-rows: minmax(0, 0fr);
	transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.ndevr-product__modules-body.is-open,
.ndevr-product__histsec-body.is-open,
.ndevr-product__dlsec-body.is-open { grid-template-rows: minmax(0, 1fr); }
.ndevr-product__modules-body-inner,
.ndevr-product__histsec-body-inner,
.ndevr-product__dlsec-body-inner
{
	overflow: hidden;
	min-height: 0;
	padding: 0 1.25rem 1.25rem;
}
/* the per-OS buttons sit left-aligned inside the panel body (not centered like the old standalone row) */
.ndevr-product__dlsec-body-inner .ndevr-product__dl-buttons { justify-content: flex-start; margin: 0; }
@media (prefers-reduced-motion: reduce)
{
	.ndevr-product__modules-body,
	.ndevr-product__histsec-body,
	.ndevr-product__dlsec-body { transition: none; }
}
.ndevr-product__modules-search
{
	width: 100%;
	margin: 0 0 1.1rem;
	padding: 0.6rem 0.9rem;
	font-size: 0.95rem;
	color: var(--nd-text-strong, #fff) !important;
	background: var(--nd-tint-1, rgba(255, 255, 255, 0.06));
	border: 1px solid var(--nd-border, rgba(255, 255, 255, 0.18));
	border-radius: var(--nd-radius-sm, 8px);
	box-shadow: none;
	box-sizing: border-box;
}
.ndevr-product__modules-search::placeholder { color: var(--nd-muted, rgba(255, 255, 255, 0.5)); }
.ndevr-product__modules-search:focus { outline: none; border-color: var(--ndevr-accent); }
.ndevr-product__modules-group { margin-bottom: 1.1rem; }
.ndevr-product__modules-group:last-child { margin-bottom: 0; }
.ndevr-product__modules-group-head
{
	margin: 0 0 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ndevr-ink, var(--ndevr-accent));
	opacity: 0.95;
}
.ndevr-product__modules-empty { color: var(--nd-muted, rgba(255, 255, 255, 0.6)); text-align: center; padding: 0.8rem 0; }
.ndevr-product__modules-grid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 0.9rem;
}
.ndevr-product__module-card
{
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.7rem;
	min-width: 0;             /* grid item must be allowed to shrink below its content, or a long name
	                            blows the track wider than its 1fr share and the whole grid overflows */
	overflow: hidden;        /* belt-and-braces: never let card content spill past the card border */
	text-align: left;
	padding: 0.9rem 1rem;
	background: var(--nd-tint-1, rgba(255, 255, 255, 0.04));
	border: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.12));
	border-left: 3px solid var(--ndevr-accent);
	border-radius: 10px;
	color: var(--nd-text-strong, #fff) !important;
	cursor: pointer;
	transition: background 0.14s ease, transform 0.08s ease, border-color 0.14s ease;
}
.ndevr-product__module-card:hover { background: var(--nd-tint-2, rgba(255, 255, 255, 0.09)); transform: translateY(-2px); }
/* icon top-left; name + badge stacked in a body column to its right */
.ndevr-product__module-icon { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; margin-top: 0.1rem; }
.ndevr-product__module-body
{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	min-width: 0;              /* lets the name wrap instead of overflowing the card (flex item shrink) */
	flex: 1 1 auto;
}
.ndevr-product__module-name
{
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.2;
	min-width: 0;
	overflow-wrap: anywhere;  /* break very long names ("OpenXLSX Interface") rather than spill out */
}
.ndevr-product__module-tag
{
	display: inline-block;
	padding: 0.16rem 0.55rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: var(--ndevr-accent);
	color: var(--ndevr-on-accent, #fff);
}
/* Free/paid are CATEGORICAL tags (not "owned"/"manage"), so they keep their own literal hues — no
   clean shared token maps to them. */
.ndevr-product__module-tag.is-free { background: var(--nd-badge-free, #2e7d46); color: #fff; }
.ndevr-product__module-tag.is-paid { background: var(--nd-badge-paid, #9a6a12); color: #fff; }

/* --- Detail-page footer: vendor logo + category chip (each opens a popup) --- */
.ndevr-product__detail-footer
{
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 1rem;
	margin: 2.5rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.12));
}
.ndevr-product__vendor-btn,
.ndevr-product__category-btn
{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	min-width: 150px;
	padding: 0.9rem 1.3rem;
	background: var(--nd-tint-1, rgba(255, 255, 255, 0.04));
	border: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.12));
	border-radius: 10px;
	color: var(--nd-text-strong, #fff) !important;
	cursor: pointer;
	transition: background 0.14s ease, transform 0.08s ease;
}
.ndevr-product__vendor-btn:hover,
.ndevr-product__category-btn:hover { background: var(--nd-tint-2, rgba(255, 255, 255, 0.09)); transform: translateY(-2px); }
.ndevr-product__footer-label
{
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ndevr-ink, var(--ndevr-accent));
}
.ndevr-product__vendor-logo { max-height: 46px; max-width: 170px; object-fit: contain; }
.ndevr-product__vendor-name { font-size: 1.1rem; font-weight: 700; }
.ndevr-product__category-row { display: inline-flex; align-items: center; gap: 0.5rem; }
.ndevr-product__category-icon { width: 26px; height: 26px; object-fit: contain; }
.ndevr-product__category-name { font-size: 1.05rem; font-weight: 700; }
.ndevr-product__cat-pop-icon { max-height: 64px; max-width: 160px; object-fit: contain; display: block; margin: 0 0 0.9rem; }

/* Release-notes popup (stacks above the detail overlay). */
.ndevr-product__notes-pop
{
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: var(--nd-overlay, rgba(6, 9, 12, 0.72));
	opacity: 0;
	transition: opacity 0.2s ease;
	overflow: hidden auto;
	box-sizing: border-box;
}
.ndevr-product__notes-pop.is-open { opacity: 1; }
.ndevr-product__notes-pop * { box-sizing: border-box; }
/* Pin the popup's font + kill inherited text-shadow so a surrounding page's body font can't bleed in. */
.ndevr-product__notes-pop, .ndevr-product__notes-pop *
{
	font-family: var(--nd-font, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif) !important;
	text-shadow: none !important;
}
.ndevr-product__notes-box
{
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 80vh;
	overflow-y: auto;
	margin: auto;
	padding: clamp(1.25rem, 4vw, 2rem);
	background: var(--nd-surface, #1b1e24);
	border: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.14));
	/* accent strip across the top (matches the vendor/module about popups). */
	border-top: 3px solid var(--ndevr-accent);
	border-radius: var(--nd-radius, 12px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
	color: var(--nd-text-strong, #fff);
}
.ndevr-product__notes-close
{
	position: absolute;
	top: 0.5rem;
	right: 0.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: var(--nd-tint-2, rgba(255, 255, 255, 0.1));
	color: var(--nd-text-strong, #fff);
	box-shadow: none;
	cursor: pointer;
}
.ndevr-product__notes-close:hover { background: var(--nd-hover, rgba(255, 255, 255, 0.22)); }
.ndevr-product__notes-close svg { display: block; width: 1rem; height: 1rem; }
/* Keep the X visible against pages that style svg/path fill+stroke. */
.ndevr-product__notes-close svg path { stroke: var(--nd-text-strong, #fff) !important; fill: none !important; }
.ndevr-product__notes-title { color: var(--ndevr-ink, var(--ndevr-accent)) !important; margin: 0 2rem 0.85rem 0; font-size: 1.15rem; }
.ndevr-product__notes-body { color: var(--nd-text-strong, #fff) !important; line-height: 1.55; overflow-wrap: anywhere; }
.ndevr-product__notes-body * { color: var(--nd-text-strong, #fff) !important; max-width: 100%; }
.ndevr-product__history-dl:hover { text-decoration: underline; }

/* License popup (the "Owned" badge): one card per activation — key glyph, product + dates + lock chips,
   and an Active/Expired status pill. Mirrors activationItem() from ndevr-owl-data.js with widget styling. */
.ndevr-product__license-msg { color: var(--nd-text, rgba(255, 255, 255, 0.82)) !important; padding: 0.4rem 0; }
.ndevr-product__license
{
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.14));
	border-radius: var(--nd-radius, 12px);
	background: var(--nd-tint-1, rgba(255, 255, 255, 0.05));
	margin-bottom: 0.7rem;
}
.ndevr-product__license:last-child { margin-bottom: 0; }
.ndevr-product__license-key { font-size: 1.3rem; line-height: 1.2; flex: 0 0 auto; }
.ndevr-product__license-main { flex: 1 1 auto; min-width: 0; }
.ndevr-product__license-name { color: var(--nd-text-strong, #fff) !important; font-weight: 700; margin-bottom: 0.2rem; }
.ndevr-product__license-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.86rem; color: var(--nd-text-soft, rgba(255, 255, 255, 0.72)) !important; }
.ndevr-product__license-locks { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.ndevr-product__license-lock
{
	font-size: 0.72rem;
	text-transform: capitalize;
	color: #eaf4ff !important;
	background: rgba(31, 124, 200, 0.28);
	border: 1px solid rgba(31, 124, 200, 0.5);
	border-radius: 999px;
	padding: 0.12rem 0.55rem;
}
/* the translucent blue chip goes pale in light mode — flip its ink to a dark blue */
html[data-theme="light"] .ndevr-product__license-lock { color: #0b4a77 !important; }
.ndevr-product__license-badge
{
	flex: 0 0 auto;
	align-self: center;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.22rem 0.6rem;
}
.ndevr-product__license-badge.is-active  { background: var(--nd-owned, rgba(28, 160, 90, 0.92)); color: #eafff2 !important; }
.ndevr-product__license-badge.is-expired { background: var(--nd-danger, rgba(200, 64, 60, 0.92));  color: #ffeae9 !important; }

/* Box-sizing for the overlay so its padding/border never push the sheet past the viewport. */
.ndevr-product-overlay,
.ndevr-product-overlay * { box-sizing: border-box; }
/* Never let the download fly-up exceed the viewport on a narrow screen. */
.ndevr-product__downloads { max-width: calc(100vw - 1rem); box-sizing: border-box; }

@media (max-width: 600px)
{
	.ndevr-product__actions { gap: 1rem; }
	.ndevr-product__btn { padding: 0.7rem 1.6rem; }
	.ndevr-product-overlay { padding: 0; }
	.ndevr-product-overlay__sheet { min-height: 100%; border-radius: 0; border: none; }
	.ndevr-product__history-table { font-size: 0.9rem; }

	/* Version history: each row becomes a stacked card — version/platform, then date + notes button,
	   then the download on its own line. (No wide table → no horizontal cut-off on phones.) */
	.ndevr-product__history { overflow-x: visible; }
	.ndevr-product__history-table,
	.ndevr-product__history-table tbody { display: block; width: 100%; }
	.ndevr-product__history-table thead { display: none; }
	.ndevr-product__history-table tr
	{
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"ver  plat"
			"date notes"
			"dl   dl";
		gap: 0.4rem 0.75rem;
		align-items: center;
		padding: 0.85rem 0.2rem;
		border-bottom: 1px solid var(--nd-tint-2, rgba(255, 255, 255, 0.14));
	}
	.ndevr-product__history-table td { display: block; padding: 0 !important; border: none !important; }
	.ndevr-product__history-ver   { grid-area: ver; }
	.ndevr-product__history-plat  { grid-area: plat; justify-self: end; white-space: nowrap; }
	.ndevr-product__history-date  { grid-area: date; opacity: 0.85; }
	.ndevr-product__history-notes { grid-area: notes; justify-self: end; }
	.ndevr-product__history-dlcell { grid-area: dl; margin-top: 0.15rem; }
}

/* On phones/tablets, DROP backdrop-filter. On Android a backdrop-filter element repaints during scroll
   and breaks its ancestor's `overflow:hidden` clipping, so clipped content (the carousel, the download
   popup) momentarily "overextends to the right" while scrolling. Compensate with a more opaque tint so
   text stays legible without the blur. (Desktop keeps the frosted-glass look.) */
@media (max-width: 768px)
{
	.ndevr-product__glass
	{
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: linear-gradient(180deg, rgba(var(--ndevr-glass-rgb, 8, 11, 14), 0.55) 0%, rgba(var(--ndevr-glass-rgb, 8, 11, 14), 0.78) 52%, rgba(var(--ndevr-glass-rgb, 8, 11, 14), 0.93) 100%);
	}
	.ndevr-product-overlay
	{
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--nd-overlay, rgba(6, 9, 12, 0.95));
	}
}
