/*
 * Novus DNA – product information from the pack label (inc/product-info.php):
 * a section on conversion product pages and a tab on standard product pages.
 * Tokens are repeated here because standard pages do not load nv-base.css.
 */

.nv-label-section,
.nv-label-tab {
	--nv-ink: #2b255e;
	--nv-muted: #5d596e;
	--nv-line: rgba(43, 37, 94, 0.12);
	--nv-paper: #fff;
	--nv-radius-s: 0.75rem;
	--nv-heading: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.nv-label {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem 3rem;
	margin-block-start: 1.5rem;
}

@media (min-width: 60em) {
	.nv-label {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}
}

/* Facts list */
.nv-label__list {
	margin: 0;
	border-block-start: 1px solid var(--nv-line);
}

.nv-label__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.15rem 1.5rem;
	padding-block: 0.8rem;
	border-block-end: 1px solid var(--nv-line);
	font-size: 0.9375rem;
}

@media (min-width: 36em) {
	.nv-label__row {
		grid-template-columns: 12rem minmax(0, 1fr);
	}
}

.nv-label__row dt {
	color: var(--nv-ink);
	font-weight: 600;
}

.nv-label__row dd {
	margin: 0;
	color: var(--nv-muted);
}

.nv-label__row dd p {
	margin: 0;
}

/* Per daily dose table, directions and warnings */
.nv-label__side {
	padding: 1.25rem 1.4rem;
	border-radius: var(--nv-radius-s);
	background: var(--nv-paper);
	box-shadow: 0 0 0 1px var(--nv-line);
	font-size: 0.9375rem;
}

.nv-label__table {
	inline-size: 100%;
	margin: 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.nv-label__table caption {
	margin-block-end: 0.5rem;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-weight: 600;
	text-align: start;
}

.nv-label__table th,
.nv-label__table td {
	padding: 0.5rem 0.75rem 0.5rem 0;
	border-block-end: 1px solid var(--nv-line);
	text-align: start;
	vertical-align: top;
}

.nv-label__table thead th {
	color: var(--nv-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nv-label__table tbody th {
	color: var(--nv-ink);
	font-weight: 500;
}

.nv-label__table td,
.nv-label__table thead th {
	white-space: nowrap;
}

.nv-label__table td:last-child,
.nv-label__table th:last-child {
	padding-inline-end: 0;
	text-align: end;
}

.nv-label__sub th {
	padding-inline-start: 1rem;
	color: var(--nv-muted);
	font-weight: 400;
}

.nv-label__title {
	margin: 1.4rem 0 0.4rem;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nv-label__prose p {
	margin: 0 0 0.5rem;
	color: var(--nv-muted);
}

.nv-label__small {
	margin: 0.75rem 0 0;
	color: var(--nv-muted);
	font-size: 0.8125rem;
}

.nv-label__source {
	margin-block-start: 1.25rem;
}

/* Stacks */
.nv-label--stack {
	display: block;
	font-size: 0.9375rem;
}

.nv-label__stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.nv-label__stack a,
.nv .nv-label__stack a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--nv-line);
	border-radius: 999px;
	background: var(--nv-paper);
	color: var(--nv-ink);
	text-decoration: none;
}

.nv-label__stack a:hover,
.nv-label__stack a:focus-visible {
	border-color: var(--nv-ink);
}

/* Standard WooCommerce tab */
.nv-label-tab > h2 {
	margin-block-end: 0;
}

@media (max-width: 35.99em) {
	.nv-label__side {
		padding: 1rem 1.1rem;
		font-size: 0.875rem;
	}

	.nv-label__row {
		font-size: 0.875rem;
	}

	.nv-label__table thead th {
		letter-spacing: 0.04em;
	}
}

/* Smallest phones: amounts may wrap at their spaces ("125 µg / (5000 IU)") so the
 * three columns fit without the page scrolling sideways. */
@media (max-width: 23.99em) {
	.nv-label__side {
		padding-inline: 0.9rem;
	}

	.nv-label__table td:not(:last-child) {
		white-space: normal;
	}
}

/* Folded on product pages that already show "What's inside" and "How to use". */
.nv-label__fold {
	margin-block-start: 1.5rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius-s);
	background: #fff;
}

.nv-label__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding: 1.1rem 1.25rem;
	color: var(--nv-muted);
	font-size: 0.9375rem;
	list-style: none;
	cursor: pointer;
}

.nv-label__summary::-webkit-details-marker {
	display: none;
}

.nv-label__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-weight: 600;
	white-space: nowrap;
}

.nv-label__toggle .icon {
	inline-size: 0.9rem;
	block-size: 0.9rem;
	transition: transform 0.2s ease;
}

.nv-label__fold[open] .nv-label__toggle .icon {
	transform: rotate(180deg);
}

.nv-label__toggle-hide,
.nv-label__fold[open] .nv-label__toggle-show {
	display: none;
}

.nv-label__fold[open] .nv-label__toggle-hide {
	display: inline;
}

.nv-label__summary:focus-visible {
	outline: 2px solid #00b5cb;
	outline-offset: 2px;
}

.nv-label__fold > .nv-label,
.nv-label__fold > .nv-label__source {
	margin-inline: 1.25rem;
}

.nv-label__fold > .nv-label {
	margin-block-start: 0;
}

.nv-label__fold > .nv-label__source {
	margin-block-end: 1.25rem;
}
