/**
 * [pdn_product_grid] — product grid of the service pages (info box, product cards). The breadcrumb, title,
 * subtitle and "Hulp bij kiezen" link above it are styled in the page's Custom HTML block.
 * Same sizes, colours and breakpoints as the live page: 1023px (2 columns), 767px (phone), 576px.
 * Loaded only on pages that use the shortcode.
 *
 * Class prefix: pdn-custom-theme-pgrid-
 */

.pdn-custom-theme-pgrid {
	--pdn-custom-theme-pgrid-ink: #132e50;
	--pdn-custom-theme-pgrid-muted: #526379;
	--pdn-custom-theme-pgrid-blue: #0754d9;
	--pdn-custom-theme-pgrid-line: #e0e7ef;
	--pdn-custom-theme-pgrid-studio: radial-gradient(ellipse at 51% 35%, #ffffffed 0%, #ffffff80 35%, #ffffff00 72%), radial-gradient(ellipse at 0% 0%, #e5ebfb 0%, #e5ebfb00 62%), linear-gradient(145deg, #eff3fa 0%, #f5f8fc 42%, #e3ebf5 100%);
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 0 60px;
	background: #fff;
	color: #000;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
	-webkit-tap-highlight-color: transparent;
}

/* Full width of the window, as the live section (the script keeps the width without the scrollbar). */
.pdn-custom-theme-pgrid--full {
	width: var(--pdn-custom-theme-pgrid-vw, 100vw);
	max-width: none;
	margin-left: calc(50% - var(--pdn-custom-theme-pgrid-vw, 100vw) / 2);
	margin-right: 0;
	padding-left: 14px;
	padding-right: 14px;
}

.pdn-custom-theme-pgrid *,
.pdn-custom-theme-pgrid *::before,
.pdn-custom-theme-pgrid *::after {
	box-sizing: border-box;
}

.pdn-custom-theme-pgrid [hidden] {
	display: none !important;
}

.pdn-custom-theme-pgrid a,
.pdn-custom-theme-pgrid button {
	-webkit-tap-highlight-color: transparent;
}

.pdn-custom-theme-pgrid :focus-visible {
	outline: 3px solid #579bff;
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- info box wrapper */

.pdn-custom-theme-pgrid-intro {
	margin: 0 0 18px;
	color: var(--pdn-custom-theme-pgrid-ink);
}

/* ---------------------------------------------------------------- info box */

.pdn-custom-theme-pgrid-info {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: start;
	gap: 13px;
	margin: 12px 0 16px;
	padding: 17px 20px;
	border: 1px solid #dee7f3;
	border-left: 3px solid #82a7e0;
	border-radius: 14px;
	background: linear-gradient(110deg, #f0f5fc 0%, #f8faff 62%, #fff 100%);
	color: #42556f;
	text-align: left;
}

.pdn-custom-theme-pgrid-info-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid #d9e5f6;
	border-radius: 11px;
	background: #fff;
	color: #3968a5;
}

.pdn-custom-theme-pgrid-info-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.pdn-custom-theme-pgrid-info-copy {
	min-width: 0;
}

.pdn-custom-theme-pgrid-info-preview,
.pdn-custom-theme-pgrid-info-body {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.65;
	overflow-wrap: break-word;
}

.pdn-custom-theme-pgrid-info-body p {
	margin: 0 0 .7em;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.pdn-custom-theme-pgrid-info-body p:last-child {
	margin-bottom: 0;
}

.pdn-custom-theme-pgrid-info-body :is(h2, h3, h4) {
	margin: 1em 0 .4em;
	color: var(--pdn-custom-theme-pgrid-ink);
	font-size: 17px;
	line-height: 1.4;
}

.pdn-custom-theme-pgrid-info-body :is(ul, ol) {
	margin: .6em 0;
	padding-left: 1.3em;
}

.pdn-custom-theme-pgrid-info-body a {
	color: var(--pdn-custom-theme-pgrid-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pdn-custom-theme-pgrid-info-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: auto;
	min-width: 0;
	min-height: 44px;
	margin: 3px 0 -7px;
	padding: 6px 2px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	box-shadow: none;
	color: #0754b8;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.pdn-custom-theme-pgrid-info-toggle::after {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.pdn-custom-theme-pgrid-info-toggle[aria-expanded="true"]::after {
	margin-top: 3px;
	transform: rotate(225deg);
}

@media (hover: hover) {
	.pdn-custom-theme-pgrid-info-toggle:hover {
		color: #003e94;
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

/* ---------------------------------------------------------------- grid */

.pdn-custom-theme-pgrid-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	/* Same 18px gap below the page heading (written in the page) as live; joins the info box margin. */
	margin: 18px 0 0;
	padding: 0;
}

.pdn-custom-theme-pgrid--cols-1 .pdn-custom-theme-pgrid-list { grid-template-columns: minmax(0, 1fr); }
.pdn-custom-theme-pgrid--cols-2 .pdn-custom-theme-pgrid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdn-custom-theme-pgrid--cols-3 .pdn-custom-theme-pgrid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdn-custom-theme-pgrid--cols-5 .pdn-custom-theme-pgrid-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pdn-custom-theme-pgrid--cols-6 .pdn-custom-theme-pgrid-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.pdn-custom-theme-pgrid-item {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
}

/* ---------------------------------------------------------------- card */

.pdn-custom-theme-pgrid-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--pdn-custom-theme-pgrid-line);
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, .12);
	text-align: left;
}

.pdn-custom-theme-pgrid-media {
	position: relative;
	display: block;
	isolation: isolate;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--pdn-custom-theme-pgrid-studio);
}

.pdn-custom-theme-pgrid--square .pdn-custom-theme-pgrid-media {
	aspect-ratio: 1 / 1;
}

.pdn-custom-theme-pgrid-frame {
	position: absolute;
	inset: 14px;
	display: block;
	overflow: hidden;
}

.pdn-custom-theme-pgrid-frame > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* The script sizes the photo to the visible product (white margins of the file left out). */
.pdn-custom-theme-pgrid-frame > img.pdn-custom-theme-pgrid-sized,
.pdn-custom-theme-pgrid-zoom-photo.pdn-custom-theme-pgrid-sized {
	position: absolute;
	left: var(--pdn-custom-theme-pgrid-photo-left);
	top: var(--pdn-custom-theme-pgrid-photo-top);
	width: var(--pdn-custom-theme-pgrid-photo-width);
	height: var(--pdn-custom-theme-pgrid-photo-height);
	max-width: none;
	max-height: none;
}

.pdn-custom-theme-pgrid-zoom {
	position: absolute;
	z-index: 5;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 9px;
	border: 1px solid #dce5ef;
	border-radius: 50%;
	background: #fff;
	color: var(--pdn-custom-theme-pgrid-blue);
	box-shadow: 0 2px 8px #18375914;
	cursor: pointer;
}

.pdn-custom-theme-pgrid-zoom svg {
	display: block;
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.pdn-custom-theme-pgrid-zoom:focus-visible {
	outline: 3px solid #94baff;
	outline-offset: 2px;
}

.pdn-custom-theme-pgrid-bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 15px;
}

.pdn-custom-theme-pgrid-title {
	display: -webkit-box;
	min-height: 42px;
	max-height: calc(2 * 1.4em);
	margin: 12px 12px 8px;
	padding: 0;
	overflow: hidden;
	color: #000;
	font-family: "Lexend Deca", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	overflow-wrap: break-word;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.pdn-custom-theme-pgrid-title a {
	position: relative;
	z-index: 1;
	display: block;
	background: #fff;
	color: #000;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	text-decoration: none;
}

.pdn-custom-theme-pgrid-title a:hover {
	color: #000;
}

/* Hover: the full title shows over the price (as live). */
.pdn-custom-theme-pgrid-card:hover .pdn-custom-theme-pgrid-title {
	display: block;
	overflow: unset;
}

.pdn-custom-theme-pgrid-price {
	display: block;
	margin-bottom: -.2em;
	color: #1c61e7;
	font-size: 15px;
	font-weight: 400;
	line-height: 21px;
}

.pdn-custom-theme-pgrid-value {
	color: #000;
	font-size: 18px;
	font-weight: 600;
	line-height: 25.2px;
}

.pdn-custom-theme-pgrid-vanaf {
	color: #000;
	font-size: 15px;
	font-weight: 600;
	line-height: 21px;
}

.pdn-custom-theme-pgrid-value del {
	display: block;
	color: #718096;
	font-size: 12px;
	font-weight: 400;
}

/* ---------------------------------------------------------------- zoom dialog */

body.pdn-custom-theme-pgrid-zoom-open {
	overflow: hidden;
}

.pdn-custom-theme-pgrid-dialog,
.pdn-custom-theme-pgrid-dialog * {
	box-sizing: border-box;
}

.pdn-custom-theme-pgrid-dialog {
	--pdn-custom-theme-pgrid-studio: radial-gradient(ellipse at 51% 35%, #ffffffed 0%, #ffffff80 35%, #ffffff00 72%), radial-gradient(ellipse at 0% 0%, #e5ebfb 0%, #e5ebfb00 62%), linear-gradient(145deg, #eff3fa 0%, #f5f8fc 42%, #e3ebf5 100%);
	width: min(1080px, calc(100vw - 32px));
	max-width: 1080px;
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid #dfe7f3;
	border-radius: 18px;
	background: var(--pdn-custom-theme-pgrid-studio);
	box-shadow: 0 24px 90px #001e4959;
	-webkit-tap-highlight-color: transparent;
}

.pdn-custom-theme-pgrid-dialog::backdrop {
	background: #0a1d3bb3;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.pdn-custom-theme-pgrid-dialog [hidden] {
	display: none !important;
}

.pdn-custom-theme-pgrid-dialog :focus-visible {
	outline: 3px solid #579bff;
	outline-offset: 3px;
}

.pdn-custom-theme-pgrid-zoom-stage {
	position: relative;
	isolation: isolate;
	height: min(84vh, 1000px);
	height: min(84dvh, 1000px);
	background: var(--pdn-custom-theme-pgrid-studio);
}

.pdn-custom-theme-pgrid-zoom-stage::after {
	content: "";
	position: absolute;
	z-index: -1;
	bottom: 20px;
	left: 50%;
	width: var(--pdn-custom-theme-pgrid-shadow-width, 35%);
	max-width: 75%;
	height: 23px;
	border-radius: 50%;
	background: radial-gradient(ellipse, #30476645 0%, #50647d24 34%, #64758a0a 56%, #64758a00 75%);
	filter: blur(3px);
	transform: translateX(-50%);
	pointer-events: none;
}

.pdn-custom-theme-pgrid-zoom-stage[aria-busy="true"]::after {
	display: none;
}

.pdn-custom-theme-pgrid-zoom-frame {
	position: absolute;
	inset: 40px 34px 44px;
	overflow: hidden;
}

.pdn-custom-theme-pgrid-zoom-photo {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.pdn-custom-theme-pgrid-zoom-close {
	position: absolute;
	z-index: 5;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #dce5f2;
	border-radius: 50%;
	background: #fff;
	color: var(--pdn-custom-theme-pgrid-blue, #0754d9);
	font-family: inherit;
	font-size: 27px;
	font-weight: 400;
	line-height: 1;
	box-shadow: 0 3px 12px #12305814;
	cursor: pointer;
}

.pdn-custom-theme-pgrid-zoom-status {
	position: absolute;
	right: 14px;
	bottom: 12px;
	left: 14px;
	margin: 0;
	color: #526379;
	font-size: 14px;
	text-align: center;
	pointer-events: none;
}

/* ---------------------------------------------------------------- tablet and phone */

@media (max-width: 1199px) {
	/* The dialog takes the size of the photo (set by the script). */
	.pdn-custom-theme-pgrid-dialog {
		width: var(--pdn-custom-theme-pgrid-zoom-width, calc(100vw - 16px));
		min-width: 0;
		max-width: calc(100vw - 16px);
		height: auto;
		min-height: 0;
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
		border: 0;
		border-radius: 13px;
		background: transparent;
	}

	.pdn-custom-theme-pgrid-zoom-stage {
		width: 100%;
		height: var(--pdn-custom-theme-pgrid-zoom-height, min(55vh, 420px));
		height: var(--pdn-custom-theme-pgrid-zoom-height, min(55dvh, 420px));
		min-height: 0;
		margin: 0;
		padding: 0;
	}

	.pdn-custom-theme-pgrid-zoom-frame {
		inset: 0;
	}

	.pdn-custom-theme-pgrid-zoom-stage::after {
		display: none;
	}

	.pdn-custom-theme-pgrid-dialog.pdn-custom-theme-pgrid-zoom-fitted .pdn-custom-theme-pgrid-zoom-photo {
		position: absolute;
		left: var(--pdn-custom-theme-pgrid-zoom-image-left);
		top: var(--pdn-custom-theme-pgrid-zoom-image-top);
		width: var(--pdn-custom-theme-pgrid-zoom-image-width);
		height: var(--pdn-custom-theme-pgrid-zoom-image-height);
		max-width: none;
		max-height: none;
		object-fit: contain;
	}

	.pdn-custom-theme-pgrid-zoom-close {
		top: 8px;
		right: 8px;
	}
}

@media (max-width: 1023px) {
	.pdn-custom-theme-pgrid-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (max-width: 767px) {
	.pdn-custom-theme-pgrid-intro {
		margin: 0 0 10px;
	}

	.pdn-custom-theme-pgrid-list {
		margin-top: 10px;
	}

	.pdn-custom-theme-pgrid-info {
		grid-template-columns: 24px minmax(0, 1fr);
		gap: 9px;
		margin: 10px 0 12px;
		padding: 12px 12px 12px 10px;
		border-radius: 11px;
	}

	.pdn-custom-theme-pgrid-info-icon {
		width: 24px;
		height: 27px;
		border: 0;
		border-radius: 7px;
		background: transparent;
	}

	.pdn-custom-theme-pgrid-info-icon svg {
		width: 19px;
		height: 19px;
	}

	.pdn-custom-theme-pgrid-info-preview,
	.pdn-custom-theme-pgrid-info-body {
		font-size: 13px;
		line-height: 1.6;
	}

	.pdn-custom-theme-pgrid-info-toggle {
		margin-top: 1px;
	}

	.pdn-custom-theme-pgrid-card {
		font-size: 13.5px;
	}

	.pdn-custom-theme-pgrid-media {
		aspect-ratio: 3 / 4;
	}

	.pdn-custom-theme-pgrid-frame {
		inset: 12px;
	}

	.pdn-custom-theme-pgrid-bottom {
		gap: 10px;
		padding: 10px;
	}

	.pdn-custom-theme-pgrid-title {
		margin: 10px 10px 8px;
		font-size: 14px;
		overflow-wrap: anywhere;
	}

	.pdn-custom-theme-pgrid-title a {
		font-size: 14px;
		font-weight: 500;
		line-height: 17px;
	}

	.pdn-custom-theme-pgrid-price {
		font-size: 13.5px;
	}
}

@media (max-width: 576px) {
	.pdn-custom-theme-pgrid-title {
		min-height: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pdn-custom-theme-pgrid * {
		transition: none !important;
		animation: none !important;
	}
}
