/* Click-to-load placeholder for blocked iframes. */
.mlc-embed {
	--mlc-accent: #1f2937;
	position: relative;
	width: 100%;
	aspect-ratio: var(--mlc-ratio, 16 / 9);
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	color: #1f2937;
	border-radius: 6px;
	box-sizing: border-box;
	overflow: hidden;
}

/* Inside fixed-ratio wrappers (core embed block, Elementor) the wrapper already sets the height. */
.wp-block-embed__wrapper > .mlc-embed,
.elementor-wrapper > .mlc-embed,
.elementor-custom-embed > .mlc-embed {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	min-height: 0;
}

.mlc-embed__inner {
	max-width: 32rem;
	padding: 1.25rem;
	text-align: center;
	font-size: 0.9rem;
	line-height: 1.5;
}

.mlc-embed__text {
	margin: 0 0 0.9rem;
}

.mlc-embed__btn {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 4px;
	background: var(--mlc-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.mlc-embed__link {
	display: block;
	margin: 0.7rem auto 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.8rem;
	text-decoration: underline;
	cursor: pointer;
}

.mlc-embed__btn:focus-visible,
.mlc-embed__link:focus-visible {
	outline: 2px solid var(--mlc-accent);
	outline-offset: 2px;
}

.mlc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.9em;
}

.mlc-cookie-table th,
.mlc-cookie-table td {
	padding: 0.4rem 0.6rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	text-align: left;
	vertical-align: top;
}

/* Floating button that reopens the cookie settings. */
.mlc-fab {
	--mlc-accent: #1f2937;
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 2147483000;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mlc-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.mlc-fab--left {
	right: auto;
	left: 16px;
}

.mlc-fab:focus-visible {
	outline: 2px solid var(--mlc-accent);
	outline-offset: 3px;
}

@media print {
	.mlc-fab {
		display: none;
	}
}
