.hpp-scan {
	--hpp-border: #d9d9d9;
	--hpp-muted: #6b7280;
	--hpp-soft: #f7f7f7;
	--hpp-text: #1f2937;
	--hpp-accent: #0093FF;
	color: var(--hpp-text);
	font-size: 16px;
	line-height: 1.55;
}

.hpp-scan *,
.hpp-scan *::before,
.hpp-scan *::after {
	box-sizing: border-box;
}

/* Author styles must never override the HTML hidden attribute. */
.hpp-scan [hidden] {
	display: none !important;
}

.hpp-scan h2,
.hpp-scan h3,
.hpp-scan p {
	margin-top: 0;
}

.hpp-scan__shared-notice {
	margin-bottom: 20px;
	padding: 14px 16px;
	border-left: 4px solid var(--hpp-accent);
	background: var(--hpp-soft);
}

.hpp-scan__table {
	border: 1px solid var(--hpp-border);
	border-radius: 8px;
	overflow: visible;
	background: #fff;
}

.hpp-scan__header,
.hpp-scan__row {
	display: grid;
	grid-template-columns: minmax(180px, .85fr) minmax(320px, 1.45fr) minmax(175px, .8fr) minmax(175px, .8fr);
	gap: 0;
}

.hpp-scan__header {
	position: relative;
	z-index: 2;
	background: var(--hpp-soft);
	font-weight: 700;
	border-radius: 8px 8px 0 0;
	box-shadow: 0 1px 0 var(--hpp-border);
}

.hpp-scan__header > div,
.hpp-scan__row > div {
	padding: 16px 18px;
	border-right: 1px solid var(--hpp-border);
}

.hpp-scan__header > div:last-child,
.hpp-scan__row > div:last-child {
	border-right: 0;
}

.hpp-scan__row {
	border-top: 1px solid var(--hpp-border);
	align-items: stretch;
}

.hpp-scan__component strong {
	display: block;
	padding-top: 10px;
}

.hpp-scan__url-item {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-bottom: 8px;
}

.hpp-scan__url-field {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	flex: 1;
}

.hpp-scan__row[data-custom-rubriek="1"] .hpp-scan__url-field {
	grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr);
}

.hpp-scan input,
.hpp-scan select,
.hpp-scan textarea {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #b9b9b9;
	border-radius: 4px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.hpp-scan textarea {
	min-height: 120px;
	resize: vertical;
}

.hpp-scan input:focus,
.hpp-scan select:focus,
.hpp-scan textarea:focus {
	outline: 2px solid rgba(0, 147, 255, .22);
	border-color: var(--hpp-accent);
}

.hpp-scan input.is-invalid {
	border-color: #b42318;
}

.hpp-scan button {
	font: inherit;
}

.hpp-scan__add,
.hpp-scan__remove,
.hpp-scan__primary,
.hpp-scan__secondary,
.hpp-scan__panel-close {
	cursor: pointer;
}

.hpp-scan__add {
	border: 0;
	padding: 4px 0;
	background: transparent;
	font-weight: 700;
	color: var(--hpp-accent);
}

.hpp-scan__remove {
	width: 36px;
	height: 44px;
	border: 1px solid var(--hpp-border);
	border-radius: 4px;
	background: #fff;
	font-size: 24px;
	line-height: 1;
}

.hpp-scan__rubrieken {
	padding-top: 26px !important;
}

.hpp-scan__rubriek-link,
.hpp-scan__rubriek-label {
	font-weight: 700;
}

.hpp-scan__separator {
	color: var(--hpp-muted);
}

.hpp-scan__field-error,
.hpp-scan__global-error,
.hpp-scan__form-message.is-error {
	color: #b42318;
	font-size: 14px;
}

.hpp-scan__field-error {
	margin-top: 6px;
}

.hpp-scan__global-error {
	margin-top: 18px;
	text-align: center;
	font-weight: 700;
}

.hpp-scan__global-error:empty {
	display: none;
}

.hpp-scan__action-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 32px;
}

.hpp-scan__action-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px;
	border: 1px solid var(--hpp-border);
	border-radius: 8px;
	background: #fff;
}

.hpp-scan__action-card h3 {
	margin-bottom: 8px;
	font-size: 20px;
}

.hpp-scan__action-card p {
	margin-bottom: 20px;
	color: var(--hpp-muted);
}

.hpp-scan__action-card .hpp-scan__primary {
	margin-top: auto;
}

.hpp-scan__primary,
.hpp-scan__secondary {
	min-height: 46px;
	padding: 10px 20px;
}

.hpp-scan__primary {
	border: 0;
	background: #FF5800;
	color: #fff;
	font-size: 15px !important;
	border-radius: 100px;
	font-weight: 500 !important;
	line-height: 1.7 !important;
}

.hpp-scan__secondary {
	border-radius: 4px;
	font-weight: 700;
}

.hpp-scan__primary:disabled {
	opacity: .6;
	cursor: wait;
}

.hpp-scan__secondary {
	border: 1px solid var(--hpp-border);
	background: #fff;
	color: inherit;
}

.hpp-scan__panel {
	margin-top: 36px;
	padding: 24px;
	border: 1px solid var(--hpp-border);
	border-radius: 8px;
	background: #fff;
	scroll-margin-top: calc(var(--hpp-scroll-header-offset, 0px) + 24px);
}

.hpp-scan__result {
	border-top: 2px solid var(--hpp-border);
}

.hpp-scan__panel-head {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 24px;
}

.hpp-scan__panel-close {
	width: 40px;
	height: 40px;
	border: 1px solid var(--hpp-border);
	border-radius: 50%;
	background: #fff;
	font-size: 24px;
	line-height: 1;
}

.hpp-scan__result-list {
	display: grid;
	gap: 16px;
}

.hpp-scan__result-card {
	padding: 20px;
	border: 1px solid var(--hpp-border);
	border-radius: 8px;
	background: #fff;
}

.hpp-scan__result-card-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	margin-bottom: 14px;
}

.hpp-scan__result-card-head h3 {
	margin-bottom: 0;
}

.hpp-scan__result-card-head span {
	white-space: nowrap;
	font-size: 14px;
	color: var(--hpp-muted);
}

.hpp-scan__result-url {
	padding: 8px 0;
	border-top: 1px solid #eee;
}

.hpp-scan__result-url:first-child {
	border-top: 0;
}

.hpp-scan__result-url a {
	word-break: break-all;
}

.hpp-scan__result-rubriek {
	margin-top: 8px;
}

.hpp-scan__result-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.hpp-scan__form-field {
	display: block;
	margin-bottom: 18px;
}

.hpp-scan__form-field > span {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.hpp-scan__contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}

.hpp-scan__contact-note {
	display: block;
	margin-top: 0;
}

.hpp-scan__form-message {
	margin-top: 14px;
	font-weight: 700;
}

.hpp-scan__form-message.is-success {
	color: #147a3d;
}


@media (max-width: 1100px) {
	.hpp-scan__action-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.hpp-scan__header,
.hpp-scan__row {
		display: block;
		padding: 18px;
	}

	.hpp-scan__row > div {
		padding: 0;
		border: 0;
	}

	.hpp-scan__row > div[data-mobile-label]::before {
		content: attr(data-mobile-label);
		display: block;
		margin: 16px 0 6px;
		font-size: 13px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .02em;
		color: var(--hpp-muted);
	}

	.hpp-scan__component::before {
		display: none !important;
	}

	.hpp-scan__component {
		margin-bottom: 12px;
	}

	.hpp-scan__component strong {
		padding-top: 0;
		font-size: 18px;
	}

	.hpp-scan__rubrieken {
		padding-top: 0 !important;
	}
}

@media (max-width: 640px) {
	.hpp-scan__row[data-custom-rubriek="1"] .hpp-scan__url-field,
	.hpp-scan__contact-grid,
	.hpp-scan__result-links,
	.hpp-scan__action-grid {
		grid-template-columns: 1fr;
	}

	.hpp-scan__panel-head {
		align-items: stretch;
		flex-direction: column;
	}

	.hpp-scan__panel-close {
		align-self: flex-end;
	}
}

/* v0.2.4 hard safety: Divi/theme CSS must never expose a closed Publicatiescan panel. */
[data-hpp-scan] [data-hpp-panel][hidden],
[data-hpp-scan] [data-hpp-result][hidden] {
	display: none !important;
}
