/**
 * Marindex Cookieconsent
 *
 * Overgenomen van IBVCookieConsent.css van www.marindex.nl, met twee
 * aanpassingen: het tonen/verbergen loopt via opacity + het hidden-attribuut
 * (zodat de popup kan faden en zonder JS onzichtbaar blijft), en er staan wat
 * resets in omdat Hello Elementor anders knoppen en labels overneemt.
 */

.ibvcc-dimscreen[hidden],
.ibvcc-cookieconsent-popup[hidden] {
	display: none;
}

/* fullscreen fade */

.ibvcc-dimscreen {
	z-index: 999100;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0, 0, 0, .5);

	transition: opacity 300ms linear;
	opacity: 0;
	pointer-events: none;
}

.ibvcc-dimscreen.show {
	opacity: 1;
	pointer-events: all;
}

/* de popup zelf */

.ibvcc-cookieconsent-popup {
	/* Het merkgroen van Marindex (#8ac97c), zoals elders op de site. */
	--marindex-cc-accent: rgb(138, 201, 124);
	--marindex-cc-accent-soft: rgb(196, 228, 190);
	--marindex-cc-accent-ink: #14380c;

	z-index: 999101;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 30px);
	max-height: 96vh;
	overflow-y: auto;
	padding: 15px;
	color: #000;
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	line-height: 1.5;

	transition: opacity 300ms linear;
	opacity: 0;
	visibility: hidden;
}

.ibvcc-cookieconsent-popup.show {
	opacity: 1;
	visibility: visible;
}

.ibvcc-cookieconsent-popup *,
.ibvcc-cookieconsent-popup *::before,
.ibvcc-cookieconsent-popup *::after {
	box-sizing: border-box;
}

@media all and (min-width: 1024px) {
	.ibvcc-cookieconsent-popup {
		width: 800px;
	}
}

.ibvcc-cookieconsent-popup a,
.ibvcc-cookieconsent-popup a:hover {
	text-decoration: none;
	color: #2196f3;
}

.ibvcc-cookieconsent-popup p {
	margin: 0 0 1em 0;
}

/* branding header */

.ibvcc-cookieconsent-popup header.branding {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	margin: 0 0 15px 0;
}

.ibvcc-cookieconsent-popup .branding img {
	height: 42px;
	width: auto;
	max-width: 100%;
}

/* tabs */

.ibvcc-cookieconsent-popup .tab-header {
	display: flex;
	flex-flow: row;
	justify-content: space-between;
	width: auto;
	margin: 0 -15px 25px -15px;
	font-size: 1rem;
}

.ibvcc-cookieconsent-popup a.tab-label {
	flex-grow: 1;
	padding: 15px 0;
	text-align: center;
	color: #000;
	border-bottom: 2px solid #ddd;
	cursor: pointer;
}

.ibvcc-cookieconsent-popup a.tab-label:hover,
.ibvcc-cookieconsent-popup a.tab-label.active {
	text-decoration: none;
	color: #2196f3;
}

.ibvcc-cookieconsent-popup a.tab-label.active {
	border-bottom: 2px solid #2196f3;
}

.ibvcc-cookieconsent-popup .tab-content {
	display: none;
}

.ibvcc-cookieconsent-popup .tab-content.active {
	display: block;
}

/* togglegrid */

.ibvcc-cookieconsent-popup .tab-content.toestemming .togglegrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 15px;
}

@media all and (min-width: 1024px) {
	.ibvcc-cookieconsent-popup .tab-content.toestemming .togglegrid {
		grid-template-columns: 1fr 1fr 1fr 1fr;
		grid-gap: 0;
	}
}

.ibvcc-cookieconsent-popup .tab-content .togglegrid .title {
	font-size: 1rem;
	font-weight: 600;
}

.ibvcc-cookieconsent-popup .tab-content.toestemming .togglegrid .details {
	display: none;
}

.ibvcc-cookieconsent-popup .tab-content.details .togglegrid {
	display: grid;
	grid-template-columns: 1fr;
}

.ibvcc-cookieconsent-popup .tab-content.details .togglegrid .option {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0 0 15px 0;
	padding: 0 0 15px 0;
	border-bottom: 1px solid #ddd;
}

.ibvcc-cookieconsent-popup .tab-content.details .togglegrid .option:last-child {
	padding: 0;
	border-bottom: none;
}

.ibvcc-cookieconsent-popup .tab-content.details .togglegrid .option label {
	justify-self: end;
}

.ibvcc-cookieconsent-popup .tab-content.details .togglegrid .option .details {
	grid-column: span 2;
}

/* toggles */

.ibvcc-cookieconsent-popup .toggle-switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	margin: 0;
}

.ibvcc-cookieconsent-popup .toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	position: absolute;
}

.ibvcc-cookieconsent-popup .toggle-switch .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 34px;
	transition: .4s;
}

.ibvcc-cookieconsent-popup .toggle-switch .slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: #fff;
	border-radius: 50%;
	transition: .4s;
}

.ibvcc-cookieconsent-popup .toggle-switch input:checked + .slider {
	background-color: var(--marindex-cc-accent);
}

.ibvcc-cookieconsent-popup .toggle-switch.readonly .slider {
	cursor: default;
}

.ibvcc-cookieconsent-popup .toggle-switch.readonly input:checked + .slider {
	background-color: var(--marindex-cc-accent-soft);
}

.ibvcc-cookieconsent-popup .toggle-switch input:checked + .slider:before {
	transform: translateX(26px);
}

.ibvcc-cookieconsent-popup .toggle-switch input:focus-visible + .slider {
	outline: 2px solid #2196f3;
	outline-offset: 2px;
}

/* knoppen */

.ibvcc-cookieconsent-popup .buttongrid {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 15px;
}

@media all and (min-width: 1024px) {
	.ibvcc-cookieconsent-popup .buttongrid {
		grid-template-columns: 1fr 1fr 1fr;
		justify-content: space-between;
		grid-gap: 30px;
	}
}

.ibvcc-cookieconsent-popup .buttongrid button.cookieconsent {
	display: block;
	width: 100%;
	padding: 15px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
	color: #000;
	background-color: beige;
	border: 1px solid #000;
	border-radius: 3px;
}

.ibvcc-cookieconsent-popup .buttongrid button.cookieconsent.primary {
	color: var(--marindex-cc-accent-ink);
	background-color: var(--marindex-cc-accent);
	border-color: var(--marindex-cc-accent);
	font-weight: 600;
}

@media all and (max-width: 1023px) {
	.ibvcc-cookieconsent-popup .buttongrid button.cookieconsent.all {
		order: 1;
	}
	.ibvcc-cookieconsent-popup .buttongrid button.cookieconsent.selection {
		order: 2;
	}
	.ibvcc-cookieconsent-popup .buttongrid button.cookieconsent.deny {
		order: 3;
	}
}
