/* Mooi Groendak Prijsopgave */
:root {
	--mgd-po-accent: #d05d15; /* zelfde oranje als "Doorgaan naar afrekenen" */
	--mgd-po-text: #1f2a1a;
	--mgd-po-radius: 50px;
}

/* Secundaire knop in de winkelwagen */
.mgd-po-trigger-wrap {
	width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
	margin-top: 12px;
	text-align: center;
}
.elementor-widget-woocommerce-cart .woocommerce button.button.mgd-po-trigger,
.woocommerce .wc-proceed-to-checkout .mgd-po-trigger,
.mgd-po-trigger {
	display: block;
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
	text-align: center;
	background: transparent !important;
	color: var(--mgd-po-accent) !important;
	border: 2px solid var(--mgd-po-accent) !important;
	border-radius: var(--mgd-po-radius) !important;
	padding: 13px 18px !important;
	font-family: inherit;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.elementor-widget-woocommerce-cart .woocommerce button.button.mgd-po-trigger:hover,
.elementor-widget-woocommerce-cart .woocommerce button.button.mgd-po-trigger:focus-visible,
.woocommerce .wc-proceed-to-checkout .mgd-po-trigger:hover,
.woocommerce .wc-proceed-to-checkout .mgd-po-trigger:focus-visible,
.mgd-po-trigger:hover,
.mgd-po-trigger:focus-visible {
	background: var(--mgd-po-accent) !important;
	color: #fff !important;
}
.mgd-po-explainer {
	margin: 8px 0 0;
	font-size: 0.875em;
	line-height: 1.45;
	opacity: .8;
}

/* Minicart (Elementor side cart) */
.mgd-po-minicart-wrap {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(0, 0, 0, .08);
}
.mgd-po-minicart {
	display: block;
	width: 100%;
	grid-column: 1 / -1;
	flex: 1 1 100%;
	text-align: center;
}
.mgd-po-minicart .mgd-po-trigger.mgd-po-trigger--small,
.elementor-menu-cart__main .mgd-po-trigger.mgd-po-trigger--small {
	padding: 10px 14px !important;
	font-size: 15px !important;
}
.mgd-po-minicart__text {
	display: block;
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.4;
	opacity: .75;
}

/* Afrekenpagina */
.mgd-po-checkout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 24px;
	padding: 16px 20px;
	background: #f6f3ef;
	border-left: 4px solid var(--mgd-po-accent);
	border-radius: 6px;
}
.mgd-po-checkout__text {
	flex: 1 1 320px;
	line-height: 1.45;
}
.mgd-po-checkout__text strong {
	display: block;
	margin-bottom: 2px;
}
.mgd-po-checkout__text span {
	font-size: .92em;
	opacity: .85;
}
.mgd-po-checkout .mgd-po-trigger.mgd-po-trigger--inline {
	flex: 0 0 auto;
	width: auto !important;
	padding: 10px 22px !important;
	font-size: 15px !important;
}
@media (max-width: 600px) {
	.mgd-po-checkout .mgd-po-trigger.mgd-po-trigger--inline {
		width: 100% !important;
	}
}

/* Dialoog */
html.mgd-po-open {
	overflow: hidden;
}
.mgd-po-dialog {
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	color: var(--mgd-po-text);
	overflow: auto;
}
.mgd-po-dialog::backdrop {
	background: rgba(15, 25, 10, .55);
}
.mgd-po-dialog--fallback {
	position: fixed;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	z-index: 99999;
	background: #fff;
}
.mgd-po-dialog__inner {
	position: relative;
	padding: 28px 28px 24px;
}
.mgd-po-dialog .mgd-po-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: inherit !important;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	opacity: .6;
}
.mgd-po-close:hover {
	opacity: 1;
}
.mgd-po-dialog .mgd-po-title {
	margin: 0 32px 8px 0;
	font-size: 24px;
	line-height: 1.25;
}
.mgd-po-dialog .mgd-po-intro {
	margin: 0 0 18px;
	line-height: 1.5;
	font-size: .95em;
	opacity: .85;
}
/* Velden in de stijl van het contactformulier (Elementor Form) */
.mgd-po-dialog,
.mgd-po-dialog input,
.mgd-po-dialog button {
	font-family: Lato, sans-serif;
}
.mgd-po-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.mgd-po-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}
.mgd-po-field {
	margin: 0;
}
.mgd-po-field--full {
	grid-column: 1 / -1;
}
.mgd-po-dialog .mgd-po-field input[type="email"],
.mgd-po-dialog .mgd-po-field input[type="tel"],
.mgd-po-dialog .mgd-po-field input[type="text"] {
	width: 100%;
	height: 41px;
	box-sizing: border-box;
	margin: 0;
	padding: 8px 16px;
	font-size: 15px;
	line-height: 21px;
	color: #161616;
	background: #fff;
	border: 2px solid #eee;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	transition: border-color .15s ease;
}
.mgd-po-dialog .mgd-po-field input::placeholder {
	color: #161616;
	opacity: .55;
}
.mgd-po-dialog .mgd-po-field input:focus {
	/* Zelfde focus als het contactformulier: globale kleur 'groen' uit Elementor. */
	border-color: var(--e-global-color-ebf5b06, #a8ad00);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.mgd-po-dialog .mgd-po-hint {
	margin: -7px 0 0;
	font-size: 13px;
	line-height: 1.4;
	opacity: .7;
}
.mgd-po-field--check {
	margin: 0 0 18px;
}
.mgd-po-field--check label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.45;
	cursor: pointer;
}
.mgd-po-field--check input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex: 0 0 auto;
	accent-color: var(--mgd-po-accent);
}
.mgd-po-dialog .mgd-po-submit,
.mgd-po-dialog .mgd-po-done {
	display: inline-block;
	width: auto !important;
	height: 40px;
	padding: 0 24px !important;
	margin: 0;
	font-size: 18px !important;
	font-weight: 700 !important;
	letter-spacing: .4px;
	line-height: 40px !important;
	color: #fff !important;
	background: var(--mgd-po-accent) !important;
	border: 0 !important;
	border-radius: 25px !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: opacity .15s ease;
}
.mgd-po-dialog .mgd-po-submit:hover,
.mgd-po-dialog .mgd-po-done:hover {
	opacity: .88;
}
.mgd-po-dialog .mgd-po-submit[disabled] {
	opacity: .6;
	cursor: default;
}
@media (max-width: 480px) {
	.mgd-po-fields {
		grid-template-columns: 1fr;
	}
}
.mgd-po-message {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: .9em;
}
.mgd-po-message--error {
	background: #fbeaea;
	color: #8a1f11;
}
.mgd-po-dialog .mgd-po-privacy {
	margin: 12px 0 0;
	line-height: 1.5;
	font-size: .8em;
	opacity: .7;
}
.mgd-po-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.mgd-po-success .mgd-po-done {
	margin-top: 8px;
}
.mgd-po-dialog .mgd-po-title {
	font-weight: 700;
	color: #161616;
}
@media (max-width: 480px) {
	.mgd-po-dialog__inner {
		padding: 22px 18px 18px;
	}
}
