.float-right {
	float: right !important;
}

.btn-3D.render-btn,
.btn-3D.tegel-render-btn,
.account-design-3d-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	height: 37px;
	/* padding: 4px 8px; */
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 2px;
	padding-right: 8px;
	border: 1px solid #c9c9c9;
	border-radius: 7px;
	background: #fff;
	color: #333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.btn-3D.render-btn.is-showing-image,
.btn-3D.tegel-render-btn.is-showing-image,
.account-design-3d-button.is-showing-image {
	gap: 0;
	padding-right: 8px;
	padding-left: 8px;
}

.btn-3D.render-btn .render-btn-eye,
.btn-3D.tegel-render-btn .render-btn-eye,
.account-design-3d-button .render-btn-eye {
	display: inline-block;
	width: 48px;
	height: 32px;
	flex: 0 0 auto;
	background-color: #6b86c2;
	-webkit-mask: url("/images/eye-icon.png") center / contain no-repeat;
	mask: url("/images/eye-icon.png") center / contain no-repeat;
	filter:
		drop-shadow(0.6px 0 0 #6b86c2)
		drop-shadow(-0.6px 0 0 #6b86c2)
		drop-shadow(0 0.6px 0 #6b86c2)
		drop-shadow(0 -0.6px 0 #6b86c2);
}

.product-page .btn-3D.render-btn,
.product-page .btn-3D.tegel-render-btn {
	margin-right: 30px;
	transform: translateY(-20px);

}

.shop-product .btn-3D.render-btn,
.shop-product .btn-3D.tegel-render-btn {
	display: flex;
	margin: 2px auto 0;
}

.account-design-preview {
	display: flex;
	width: fit-content;
	max-width: 100%;
	flex-direction: column;
	margin: 0 auto;
}

.account-design-preview > a {
	display: block;
	max-width: 100%;
}

.account-design-preview > a img {
	display: block;
	max-width: 100%;
}

.account-design-preview .btn-3D.tegel-render-btn,
.account-design-3d-button {
	align-self: flex-end;
	margin: 10px 0 0;
}

.three-d-dialog {
	position: relative;
	display: none;
	width: min(78vw, 760px);
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 36px;
	background: #fff;
}

.three-d-dialog[open] {
	display: block;
}

.three-d-dialog::backdrop {
	background: rgb(0 0 0 / 52%);
}

.three-d-dialog-stage {
	position: relative;
	width: 100%;
	height: 530px;
	background: #f2f1ef;
}

.three-d-dialog-stage canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.three-d-dialog-stage [data-state="ready"] {
	display: none;
}

.three-d-dialog-stage [data-state="error"] {
	color: #c0392b;
}

.three-d-dialog-close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #d4d4d4;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.three-d-dialog-close:hover {
	background: #f5f5f5;
}

.three-d-dialog-footer {
	display: flex;
	min-height: 197px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	padding: 18px 24px 24px;
	background: #c9c9c9;
	color: #111;
	text-align: center;
}

.three-d-dialog-logo {
	display: block;
	width: 150px;
	height: 82px;
	object-fit: contain;
}

.three-d-dialog-footer p {
	margin: 0;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
}

@media (max-width: 600px) {
	.three-d-dialog {
		width: calc(100vw - 24px);
		max-width: none;
		max-height: calc(100vh - 24px);
		border-radius: 24px;
	}

	.three-d-dialog-stage {
		height: min(62vh, 420px);
		min-height: 260px;
	}

	.three-d-dialog-close {
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
		font-size: 28px;
	}

	.three-d-dialog-footer {
		min-height: 150px;
		gap: 8px;
		padding: 12px 16px 18px;
	}

	.three-d-dialog-logo {
		width: 110px;
		height: 60px;
	}

	.three-d-dialog-footer p {
		font-size: 16px;
	}
}

/* Stoeptegel "Realistische weergave": ruimte boven en onder de render (ook voor de sluitknop).
   De hoogte groeit mee, zodat de render zelf niet kleiner wordt. */
.tegel-render-dialog .three-d-dialog-stage {
	box-sizing: border-box;
	height: min(658px, calc(100vh - 32px));
	padding: 64px 0;
}

@media (max-width: 600px) {
	.tegel-render-dialog .three-d-dialog-stage {
		/* breedte van de popup + 2 x 64px */
		height: min(calc(100vw + 104px), calc(100vh - 24px));
	}
}
