.nlg-wrap {
	max-width: 980px;
	margin: 0 auto;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: #2c2c2a;
}

.nlg-wrap * {
	box-sizing: border-box;
}

.nlg-wrap h1,
.nlg-wrap h2,
.nlg-wrap h3 {
	font-family: 'Lora', serif;
}

.nlg-page-title {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 10px;
}

.nlg-page-desc {
	font-size: 16px;
	color: #5c5c58;
	text-align: center;
	max-width: 600px;
	margin: 0 auto 20px;
}

.nlg-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 24px;
	margin-bottom: 24px;
}

.nlg-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #4a4a46;
}

.nlg-badge svg {
	color: #CD7662;
	flex: none;
}

.nlg-howto {
	margin-top: 40px;
	text-align: center;
}

.nlg-howto h2 {
	font-size: 26px;
	margin: 0 0 24px;
}

.nlg-howto-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	text-align: left;
}

@media (max-width: 780px) {
	.nlg-howto-steps {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.nlg-howto-steps {
		grid-template-columns: 1fr;
	}
}

.nlg-howto-step {
	background: #faf9f5;
	border: 1px solid #eae8de;
	border-radius: 10px;
	padding: 16px;
}

.nlg-howto-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fbe3ea;
	color: #b3305a;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 10px;
}

.nlg-howto-step h4 {
	margin: 0 0 6px;
	font-size: 15px;
}

.nlg-howto-step p {
	margin: 0;
	font-size: 13px;
	color: #5c5c58;
}

.nlg-why {
	margin-top: 48px;
	text-align: center;
}

.nlg-why h2 {
	font-size: 28px;
	margin: 0 0 8px;
}

.nlg-why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: left;
	margin-top: 28px;
}

@media (max-width: 780px) {
	.nlg-why-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.nlg-why-grid {
		grid-template-columns: 1fr;
	}
}

.nlg-why-card {
	background: #fff;
	border: 1px solid #eae8de;
	border-radius: 12px;
	padding: 22px 20px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nlg-why-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(44, 44, 42, 0.08);
	border-color: #e3d9d5;
}

.nlg-why-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #fbeeea;
	color: #CD7662;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.nlg-why-card h4 {
	font-family: 'Lora', serif;
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
}

.nlg-why-card p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #5c5c58;
}

.nlg-notice {
	background: #fdf1ef;
	border: 1px solid #f7dbd5;
	color: #a3402c;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	margin-bottom: 20px;
}

.nlg-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 28px;
	align-items: start;
}

.nlg-wrap.nlg-format-tabular .nlg-layout {
	grid-template-columns: 1fr;
}

.nlg-wrap.nlg-format-tabular .nlg-label-col {
	width: 100%;
}

.nlg-label-col {
	overflow-x: auto;
}

@media (max-width: 780px) {
	.nlg-layout {
		grid-template-columns: 1fr;
	}
}

.nlg-field {
	margin-bottom: 16px;
}

.nlg-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
}

.nlg-wrap input[type="text"],
.nlg-wrap input[type="number"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #d8d6cd;
	border-radius: 6px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
}

.nlg-hint {
	font-size: 13px;
	color: #7a7a76;
	margin: 6px 0 0;
}

.nlg-section {
	background: #faf9f5;
	border: 1px solid #eae8de;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 16px;
}

.nlg-section h3 {
	margin-top: 0;
	font-size: 18px;
}

.nlg-search-row {
	position: relative;
	margin-bottom: 12px;
}

.nlg-popular-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.nlg-popular-label {
	font-size: 12px;
	color: #7a7a76;
	margin-right: 2px;
}

.nlg-popular-chip {
	background: #eef4fc;
	border: 1px solid #cfe0f3;
	color: #1d3f6e;
	border-radius: 999px;
	padding: 5px 12px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	width: auto;
}

.nlg-popular-chip:hover {
	background: #dcebfa;
}

.nlg-search-result-loading {
	padding: 12px;
	font-size: 13px;
	color: #7a7a76;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nlg-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid #d8d6cd;
	border-top-color: #2c2c2a;
	border-radius: 50%;
	animation: nlg-spin 0.6s linear infinite;
	flex: none;
}

@keyframes nlg-spin {
	to { transform: rotate(360deg); }
}

.nlg-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #d8d6cd;
	border-radius: 8px;
	max-height: 260px;
	overflow-y: auto;
	z-index: 20;
	display: none;
}

.nlg-search-results.nlg-visible {
	display: block;
}

.nlg-search-result {
	padding: 10px 12px;
	font-size: 14px;
	cursor: pointer;
	border-bottom: 1px solid #f0efe8;
}

.nlg-search-result:last-child {
	border-bottom: none;
}

.nlg-search-result:hover {
	background: #f2f1ea;
}

.nlg-search-result-type {
	font-size: 11px;
	color: #7a7a76;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.nlg-ing-row {
	background: #fff;
	border: 1px solid #eae8de;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 10px;
	position: relative;
}

.nlg-ing-name {
	font-weight: 600;
	font-size: 14px;
	padding-right: 28px;
	margin-bottom: 8px;
}

.nlg-ing-controls {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.nlg-ing-controls input,
.nlg-ing-controls select {
	padding: 6px 8px;
	border: 1px solid #d8d6cd;
	border-radius: 6px;
	font-size: 13px;
	width: auto;
}

.nlg-ing-amount {
	width: 70px !important;
}

.nlg-ing-unit {
	min-width: 130px;
}

.nlg-ing-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	color: #a33;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 2px;
}

.nlg-format-buttons {
	display: flex;
	gap: 8px;
}

.nlg-format-btn {
	flex: 1;
	background: #fff;
	border: 1px solid #d8d6cd;
	border-radius: 6px;
	padding: 9px 12px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.nlg-format-btn.nlg-active {
	background: #2c2c2a;
	border-color: #2c2c2a;
	color: #fff;
}

.nlg-action-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.nlg-action-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #d8d6cd;
	border-radius: 6px;
	padding: 9px 16px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.nlg-action-btn:hover {
	background: #f2f1ea;
}

.nlg-disclaimer {
	font-size: 12px;
	color: #8a8a86;
	margin-top: 12px;
	line-height: 1.4;
}

/* ---------------------------------------------------------------------
 * The actual FDA-style nutrition facts label. Deliberately plain,
 * high-contrast, Helvetica-esque, matching the real regulatory format.
 * ------------------------------------------------------------------- */

.nlg-label {
	background: #fff;
	color: #000;
	border: 1px solid #000;
	padding: 6px 10px 10px;
	font-family: Arial, Helvetica, sans-serif;
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
}

.nlg-label-title {
	font-size: 30px;
	font-weight: 900;
	border-bottom: 10px solid #000;
	padding-bottom: 2px;
	margin: 0 0 4px;
	letter-spacing: -0.5px;
}

.nlg-label-servings-container {
	font-size: 12px;
	border-bottom: 1px solid #000;
	padding-bottom: 3px;
	margin-bottom: 3px;
}

.nlg-label-serving-size {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 700;
	border-bottom: 6px solid #000;
	padding-bottom: 4px;
	margin-bottom: 4px;
}

.nlg-label-cal-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-bottom: 4px solid #000;
	padding-bottom: 2px;
	margin-bottom: 2px;
}

.nlg-label-cal-label {
	font-size: 13px;
	font-weight: 700;
}

.nlg-label-cal-value {
	font-size: 30px;
	font-weight: 900;
}

.nlg-label-dv-header {
	text-align: right;
	font-size: 11px;
	font-weight: 700;
	border-bottom: 1px solid #000;
	padding-bottom: 2px;
	margin-bottom: 2px;
}

.nlg-label-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	border-bottom: 1px solid #000;
	padding: 2px 0;
}

.nlg-label-row.nlg-indent-1 {
	padding-left: 14px;
}

.nlg-label-row.nlg-indent-2 {
	padding-left: 28px;
	font-weight: 400;
}

.nlg-label-row b {
	font-weight: 700;
}

.nlg-label-thick-bottom {
	border-bottom: 6px solid #000 !important;
}

.nlg-label-micronutrients .nlg-label-row {
	border-bottom: 1px solid #000;
}

.nlg-label-footnote {
	font-size: 10px;
	padding-top: 6px;
	line-height: 1.3;
}

.nlg-label-ingredients {
	font-size: 11px;
	border-top: 6px solid #000;
	margin-top: 6px;
	padding-top: 6px;
	line-height: 1.4;
}

.nlg-label-ingredients b {
	font-weight: 700;
}

/* Tabular format overrides */

.nlg-label.nlg-tabular {
	max-width: 480px;
}

.nlg-label.nlg-tabular .nlg-label-cal-row {
	display: block;
}

.nlg-label.nlg-tabular .nlg-label-cal-label {
	font-size: 16px;
}

.nlg-tabular-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
}

.nlg-tabular-col {
	border-right: none;
}

.nlg-tabular-col:first-child {
	border-right: 1px solid #000;
	padding-right: 10px;
}

.nlg-tabular-col:last-child {
	padding-left: 4px;
}

@media print {
	.nlg-form-col,
	.nlg-disclaimer,
	.nlg-badges,
	.nlg-howto,
	.nlg-why {
		display: none !important;
	}

	.nlg-layout {
		display: block;
	}
}
