/**
 * WP-NutriTrack frontend styles. Mobile-first, CSS Grid + Flexbox.
 * Accent colours match the HealthAdvice theme; override --wpnt-accent to reskin.
 *
 * @package WP_NutriTrack
 */
.wpnt {
	--wpnt-accent: #059669;
	--wpnt-accent-dark: #065f46;
	--wpnt-accent-alt: #34d399;
	--wpnt-border: #e7e5e4;
	--wpnt-bg: #ffffff;
	--wpnt-muted: #57534e;
	box-sizing: border-box;
	font-family: inherit;
	color: #1c1917;
}
.wpnt *, .wpnt *::before, .wpnt *::after { box-sizing: border-box; }

/* Self-contained sr-only helper (don't rely on the active theme). */
.wpnt .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.wpnt__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media ( min-width: 720px ) {
	.wpnt__grid { grid-template-columns: 1fr 1fr; }
}

.wpnt__card {
	background: var(--wpnt-bg);
	border: 1px solid var(--wpnt-border);
	border-radius: 0.75rem;
	padding: 1.25rem;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.05 );
}
.wpnt__title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wpnt-accent-dark);
}

.wpnt__search { position: relative; }
.wpnt__input {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wpnt-border);
	border-radius: 0.5rem;
	font-size: 0.95rem;
}
.wpnt__input:focus { outline: 2px solid var(--wpnt-accent); outline-offset: 1px; }

.wpnt__suggest {
	position: absolute;
	z-index: 20;
	left: 0; right: 0;
	margin: 0.25rem 0 0;
	padding: 0.25rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--wpnt-border);
	border-radius: 0.5rem;
	box-shadow: 0 8px 20px rgba( 0, 0, 0, 0.12 );
	max-height: 240px;
	overflow-y: auto;
}
.wpnt__suggest-item {
	padding: 0.5rem 0.6rem;
	border-radius: 0.375rem;
	font-size: 0.85rem;
	cursor: pointer;
}
.wpnt__suggest-item:hover { background: #ecfdf5; color: var(--wpnt-accent-dark); }

.wpnt__qtyrow {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
.wpnt__qty { flex: 1 1 auto; }
.wpnt__unit { flex: 0 0 5rem; }

.wpnt__btn {
	flex: 0 0 auto;
	background: var(--wpnt-accent-dark);
	color: #fff;
	border: 0;
	border-radius: 0.5rem;
	padding: 0.6rem 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}
.wpnt__btn:hover { background: var(--wpnt-accent); }
.wpnt__hint { min-height: 1.2em; margin: 0.6rem 0 0; font-size: 0.8rem; color: #b91c1c; }

.wpnt__meter { margin-bottom: 1rem; }
.wpnt__meter-head {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wpnt-muted);
	margin-bottom: 0.35rem;
}
.wpnt__bar {
	height: 0.75rem;
	background: #f1f5f4;
	border-radius: 999px;
	overflow: hidden;
}
.wpnt__bar-fill {
	height: 100%;
	width: 0;
	background: var(--wpnt-accent);
	border-radius: 999px;
	transition: width 0.35s ease;
}
.wpnt__bar-fill--alt { background: var(--wpnt-accent-alt); }

.wpnt__log { list-style: none; margin: 1rem 0 0; padding: 0; }
.wpnt__log-item {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-top: 1px solid #f1f5f4;
	font-size: 0.85rem;
}
.wpnt__log-name em { color: var(--wpnt-muted); font-style: normal; }
.wpnt__log-num { color: var(--wpnt-muted); white-space: nowrap; }
.wpnt__log-empty { padding: 0.75rem 0; color: var(--wpnt-muted); font-size: 0.85rem; }

.wpnt__link {
	margin-top: 1rem;
	background: none;
	border: 0;
	padding: 0;
	color: #b91c1c;
	font-size: 0.8rem;
	text-decoration: underline;
	cursor: pointer;
}
