.pvb-box {
	position: relative;
	max-width: 680px;
	margin: 20px 0;
	padding: 20px 24px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fafafa;
	font-family: inherit;
}
.pvb-box h3 {
	margin-top: 0;
}
.pvb-help {
	color: #555;
	font-size: 0.92em;
	margin-bottom: 16px;
}
.pvb-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.95em;
	display: inline-block;
	text-decoration: none;
}
.pvb-btn:hover {
	background: #135e96;
	color: #fff;
}
.pvb-btn-secondary {
	background: #6c757d;
}
.pvb-btn-secondary:hover {
	background: #565e64;
}
.pvb-loading {
	margin-top: 10px;
	font-style: italic;
	color: #555;
}
.pvb-error {
	margin-top: 10px;
	color: #b32d2e;
	background: #fbeaea;
	border: 1px solid #f3c1c1;
	padding: 8px 12px;
	border-radius: 6px;
}
.pvb-success {
	margin-top: 10px;
	color: #1e7e34;
	background: #e9f7ef;
	border: 1px solid #b7e4c7;
	padding: 10px 14px;
	border-radius: 6px;
}
.pvb-table-scroll {
	overflow-x: auto;
	margin: 12px 0;
}
.pvb-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	margin: 0;
}
.pvb-table th, .pvb-table td {
	text-align: left;
	padding: 6px 6px;
	border-bottom: 1px solid #e5e5e5;
}
.pvb-table th {
	font-size: 0.9em;
	font-weight: 600;
}
.pvb-table select.pvb-item-unit,
.pvb-table select.pvb-item-subcategory,
select.pvb-item-unit,
select.pvb-item-subcategory {
	font-size: 12px !important;
	padding: 3px 4px !important;
}
#pvb-entry-date {
	font-size: 12pt;
	max-width: 180px;
}
#pvb-store-exclude-select {
	font-size: 13px;
	width: 100%;
	max-width: 320px;
}
.pvb-table input[type="text"], .pvb-table input[type="number"] {
	width: 100%;
	box-sizing: border-box;
	padding: 5px 6px;
}
.pvb-table input.pvb-item-ean {
	min-width: 112px; /* 13 cijfers blijven volledig leesbaar */
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
.pvb-table input.pvb-item-name {
	min-width: 150px; /* artikelnaam niet laten wegdrukken door de EAN-kolom ervoor */
}
/* Bestaande producten onder de invoerregel (zoeken op EAN) */
.pvb-table tr.pvb-match-row > td {
	padding: 0 6px 10px;
	border-bottom: 1px solid #e5e5e5;
}
.pvb-match-panel {
	background: #f3f8fd;
	border: 1px solid #c9ddf0;
	border-radius: 8px;
	padding: 10px 12px;
	max-width: 620px;
}
.pvb-match-question {
	margin: 0 0 6px;
}
.pvb-match-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 0.92em;
	color: #555;
	margin-bottom: 8px;
}
.pvb-match-no {
	background: #fff;
	color: #555;
	border: 1px solid #bbb;
	border-radius: 6px;
	padding: 4px 10px;
	cursor: pointer;
	font-size: 0.95em;
}
.pvb-match-no:hover {
	border-color: #888;
	color: #222;
}
.pvb-match-card {
	display: block;
	width: 100%;
	text-align: left;
	background: #fff;
	color: inherit;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 10px 12px;
	margin-top: 8px;
	cursor: pointer;
	font: inherit;
}
.pvb-match-card:hover,
.pvb-match-card:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}
.pvb-match-card > span {
	display: block;
}
.pvb-match-title {
	font-weight: 600;
}
.pvb-match-card .pvb-ean {
	margin-bottom: 4px;
}
.pvb-match-card .pvb-price-row {
	display: flex;
	font-size: 0.92em;
}
.pvb-match-current-store {
	font-weight: 600;
	color: #135e96;
}
.pvb-match-picked {
	margin: 0;
	font-size: 0.92em;
	color: #1e5631;
}
.pvb-entry select, .pvb-entry input[type="date"],
.pvb-search input[type="text"], .pvb-list-compare textarea {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	width: 100%;
	max-width: 400px;
	margin-top: 4px;
	box-sizing: border-box;
	font-size: 1em;
}
.pvb-list-compare textarea {
	max-width: 100%;
	font-family: inherit;
}
.pvb-remove-row {
	cursor: pointer;
	color: #b32d2e;
	background: none;
	border: none;
	font-size: 1.1em;
}
.pvb-result-card {
	margin-top: 16px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}
.pvb-result-card h4 {
	margin: 0 0 2px 0;
}
.pvb-ean {
	font-size: 8pt;
	color: #888;
	margin-bottom: 8px;
}
.pvb-price-per-unit {
	font-size: 0.85em;
	color: #777;
	font-weight: normal;
}
.pvb-price-row {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
}
.pvb-cheapest {
	font-weight: bold;
	color: #1e7e34;
}
.pvb-advice {
	margin-top: 16px;
	padding: 14px 16px;
	background: #eaf3ea;
	border: 1px solid #b7e4c7;
	border-radius: 8px;
	font-size: 1.05em;
}
.pvb-suggestions {
	position: absolute;
	z-index: 100;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
	max-height: 220px;
	overflow-y: auto;
	min-width: 160px;
}
.pvb-suggestion-item {
	padding: 7px 10px;
	cursor: pointer;
	font-size: 0.92em;
}
.pvb-suggestion-item:hover,
.pvb-suggestion-item.pvb-active {
	background: #eef4fb;
}
.pvb-add-to-list-btn {
	margin-top: 8px;
	background: #fff;
	color: #2271b1;
	border: 1px solid #2271b1;
	padding: 5px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.85em;
}
.pvb-add-to-list-btn.pvb-in-list {
	background: #2271b1;
	color: #fff;
}
#pvb-my-list {
	margin: 10px 0;
}
.pvb-my-list-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 10px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 6px;
	font-size: 0.92em;
}
.pvb-my-list-remove {
	background: none;
	border: none;
	color: #b32d2e;
	cursor: pointer;
	font-size: 1.1em;
}
#pvb-store-exclude {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-top: 6px;
}
.pvb-store-exclude-item {
	font-size: 0.92em;
	display: flex;
	align-items: center;
	gap: 5px;
}
.pvb-pp-card {
	position: relative;
}
.pvb-pp-img {
	max-width: 80px;
	max-height: 80px;
	float: right;
	border-radius: 6px;
	margin-left: 10px;
}
.pvb-pp-retailer {
	font-size: 0.85em;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 4px;
}
.pvb-pp-price {
	font-weight: bold;
	font-size: 1.1em;
}
.pvb-pp-original-price {
	text-decoration: line-through;
	color: #999;
	font-size: 0.9em;
}
.pvb-pp-valid {
	font-size: 0.85em;
	color: #777;
	margin-top: 4px;
}
.pvb-pp-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.9em;
}
.pvb-pp-attribution {
	font-size: 0.85em;
	color: #777;
	margin-top: 16px;
}
.pvb-unmatched {
	margin-top: 10px;
	font-size: 0.9em;
	color: #856404;
	background: #fff8e5;
	border: 1px solid #ffe8a1;
	padding: 8px 12px;
	border-radius: 6px;
}

/* ---------- [pvb_teller] ---------- */
.pvb-teller-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
}
.pvb-teller-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 14pt;
}
.pvb-teller-store {
	min-width: 0;
	overflow-wrap: anywhere;
}
.pvb-teller-count {
	flex-shrink: 0;
	min-width: 2.5em;
	text-align: right;
	padding: 2px 8px;
	border: 2px solid #2271b1;
	border-radius: 6px;
	color: #135e96;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.pvb-teller-total {
	margin: 14px 0 0;
	font-size: 14pt;
}
.pvb-teller-total-count {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.pvb-teller-bump {
	animation: pvb-teller-bump 1.2s ease-out;
}
@keyframes pvb-teller-bump {
	0%   { background: #fff3b0; transform: scale(1.15); }
	100% { background: transparent; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.pvb-teller-bump { animation: none; }
}

/* ---------- WaKoWa-bonuspunten op [pvb_invoer] ---------- */
.pvb-points {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 14px;
	font-size: 14pt;
}
.pvb-points-count {
	display: inline-block;
	min-width: 2.5em;
	text-align: right;
	padding: 2px 8px;
	border: 2px solid #1e7e34;
	border-radius: 6px;
	color: #1e7e34;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.pvb-points-hint {
	font-size: 0.7em;
	color: #666;
}

/* ---------- Lijstje meenemen: knoppenbalk onder de vergelijking ---------- */
.pvb-output {
	margin-top: 18px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #c9ddf0;
	border-radius: 8px;
}
.pvb-output h4 {
	margin: 0 0 10px;
}
.pvb-output-label {
	display: block;
	font-size: 0.92em;
	margin-bottom: 10px;
}
.pvb-output-mode {
	display: block;
	width: 100%;
	max-width: 460px;
	margin-top: 4px;
	padding: 6px 8px;
	font-size: 0.95em;
	box-sizing: border-box;
}
.pvb-output-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.pvb-output-msg {
	margin-top: 10px;
}
.pvb-output-help {
	margin: 10px 0 0;
	font-size: 0.85em;
}

/* ---------- Afdrukken / pdf ---------- */
#pvb-print-area {
	display: none;
}
@media print {
	body.pvb-printing > *:not(#pvb-print-area) {
		display: none !important;
	}
	body.pvb-printing #pvb-print-area {
		display: block;
		font-family: Arial, Helvetica, sans-serif;
		color: #000;
		font-size: 12pt;
		margin: 0;
	}
	#pvb-print-area h1 {
		font-size: 20pt;
		margin: 0 0 2pt;
	}
	#pvb-print-area .pvb-print-meta {
		color: #555;
		margin: 0 0 12pt;
	}
	#pvb-print-area .pvb-print-store {
		font-size: 14pt;
		margin: 14pt 0 4pt;
		padding-bottom: 2pt;
		border-bottom: 1.5pt solid #000;
		break-after: avoid;
	}
	#pvb-print-area .pvb-print-table {
		width: 100%;
		border-collapse: collapse;
	}
	#pvb-print-area .pvb-print-table tr {
		break-inside: avoid;
	}
	#pvb-print-area .pvb-print-table td {
		padding: 5pt 4pt;
		border-bottom: 0.5pt solid #bbb;
		vertical-align: top;
	}
	#pvb-print-area .pvb-print-box {
		width: 14pt;
	}
	#pvb-print-area .pvb-print-box::before {
		content: "";
		display: inline-block;
		width: 10pt;
		height: 10pt;
		border: 1pt solid #000;
	}
	#pvb-print-area .pvb-print-subtotal .pvb-print-box::before {
		display: none;
	}
	#pvb-print-area .pvb-print-ean {
		display: block;
		font-size: 8pt;
		color: #777;
	}
	#pvb-print-area .pvb-print-price {
		text-align: right;
		white-space: nowrap;
		width: 70pt;
	}
	#pvb-print-area .pvb-print-subtotal td {
		border-bottom: none;
		color: #555;
	}
	#pvb-print-area .pvb-print-subtotal td:nth-child(2) {
		text-align: right;
	}
	#pvb-print-area .pvb-print-total {
		font-size: 14pt;
		font-weight: bold;
		margin: 14pt 0 0;
	}
	#pvb-print-area .pvb-print-footer {
		font-size: 8pt;
		color: #777;
		margin-top: 14pt;
	}
	@page {
		margin: 15mm;
	}
}

/* ---------- Afvinken in de winkel (volledig scherm) ---------- */
html.pvb-shop-open,
html.pvb-shop-open body {
	overflow: hidden;
}
.pvb-shop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #fff;
	color: #222;
	display: flex;
	flex-direction: column;
	font-family: inherit;
}
.pvb-shop-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	padding-top: max(12px, env(safe-area-inset-top));
	background: #2271b1;
	color: #fff;
}
.pvb-shop-titlebox {
	flex: 1;
	min-width: 0;
}
.pvb-shop-title {
	font-size: 20px;
	font-weight: 700;
}
.pvb-shop-progress {
	font-size: 15px;
	opacity: 0.9;
}
.pvb-shop-reset,
.pvb-shop-close {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 15px;
	cursor: pointer;
}
.pvb-shop-close {
	background: #fff;
	color: #135e96;
	font-weight: 700;
}
.pvb-shop-body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 16px 32px;
	padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.pvb-shop-store {
	font-size: 18px;
	margin: 18px 0 6px;
	color: #135e96;
}
.pvb-shop-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 10px 4px;
	background: none;
	border: none;
	border-bottom: 1px solid #e5e5e5;
	color: inherit;
	font: inherit;
	font-size: 20px;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.pvb-shop-check {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: 2px solid #2271b1;
	border-radius: 50%;
	box-sizing: border-box;
	position: relative;
}
.pvb-shop-name {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}
.pvb-shop-price {
	flex-shrink: 0;
	font-size: 16px;
	color: #555;
	font-variant-numeric: tabular-nums;
}
.pvb-shop-item.is-done .pvb-shop-name,
.pvb-shop-item.is-done .pvb-shop-price {
	text-decoration: line-through;
	color: #999;
}
.pvb-shop-item.is-done .pvb-shop-check {
	background: #1e7e34;
	border-color: #1e7e34;
}
.pvb-shop-item.is-done .pvb-shop-check::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 3px;
	width: 7px;
	height: 13px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
.pvb-shop-total {
	font-size: 20px;
	font-weight: 700;
	margin: 20px 0 0;
}

/* "Goedkoopst als je splitst": per winkel gegroepeerd */
.pvb-split-store {
	display: flex;
	justify-content: space-between;
	margin: 12px 0 2px;
	padding-bottom: 2px;
	border-bottom: 1px solid #ccc;
	font-weight: 600;
	color: #135e96;
}
.pvb-split-item {
	padding-left: 10px;
}
.pvb-split-ean {
	display: block;
	margin: 0;
}

/* ---------- Digitaal bonnetje inlezen ---------- */
.pvb-receipt {
	margin: 14px 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px dashed #b5c9dd;
	border-radius: 8px;
}
.pvb-receipt-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}
.pvb-receipt .pvb-help {
	margin: 8px 0 0;
	font-size: 0.85em;
}
.pvb-receipt-status p {
	margin: 4px 0 0;
}
.pvb-receipt-warn {
	margin-top: 10px;
	color: #856404;
	background: #fff8e5;
	border: 1px solid #ffe8a1;
	padding: 10px 14px;
	border-radius: 6px;
}
.pvb-table tr.pvb-was-offer .pvb-item-price {
	border-color: #e0a800;
	background: #fffbea;
}
