.mgytc-embed {
	--mgytc-aspect-ratio: 16 / 9;
	color: #fff;
	margin: 1.5rem 0;
	width: 100%;
}

.mgytc-frame {
	aspect-ratio: var(--mgytc-aspect-ratio);
	background: #111922;
	border: 1px solid rgba(255, 255, 255, 0.12);
	overflow: hidden;
	position: relative;
	width: 100%;
}

.mgytc-embed iframe,
.mgytc-poster {
	border: 0;
	display: block;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.mgytc-consent {
	align-items: center;
	background: rgba(17, 25, 34, 0.94);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
	inset: 0;
	justify-content: center;
	padding: clamp(1.1rem, 4vw, 2.25rem);
	position: absolute;
	text-align: center;
	width: 100%;
	z-index: 1;
}

.mgytc-poster {
	object-fit: cover;
}

.mgytc-title {
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	max-width: 58rem;
}

.mgytc-notice {
	font-size: clamp(1rem, 2.4vw, 1.45rem);
	line-height: 1.5;
	margin: 0;
	max-width: 58rem;
}

.mgytc-privacy {
	font-size: 0.9rem;
	line-height: 1.35;
	margin: -0.45rem 0 0;
}

.mgytc-privacy a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.mgytc-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	width: min(100%, 48rem);
}

.mgytc-button,
.mgytc-allow-button {
	background: #fff;
	border: 0;
	border-radius: 4px;
	color: #222;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	padding: 0.9rem 1.1rem;
	text-transform: uppercase;
}

.mgytc-allow-button {
	background: transparent;
	color: #f7f9fb;
}

.mgytc-button:focus-visible,
.mgytc-allow-button:focus-visible,
.mgytc-revoke button:focus-visible {
	outline: 3px solid #7dd3fc;
	outline-offset: 3px;
}

.mgytc-revoke {
	margin: 0.6rem 0 0;
	text-align: center;
}

.mgytc-revoke button {
	background: transparent;
	border: 0;
	color: currentColor;
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.mgytc-error {
	background: #fff4e5;
	border-left: 4px solid #d97706;
	color: #3f2a00;
	padding: 0.75rem 1rem;
}

@media (max-width: 520px) {
	.mgytc-consent {
		gap: 0.75rem;
		padding: 1rem;
	}

	.mgytc-title {
		font-size: 0.98rem;
	}

	.mgytc-notice {
		font-size: 0.92rem;
	}

	.mgytc-privacy {
		font-size: 0.8rem;
	}

	.mgytc-actions {
		flex-direction: column;
		gap: 0.75rem;
	}

	.mgytc-button,
	.mgytc-allow-button {
		font-size: 0.9rem;
		width: 100%;
	}
}
