.pkf-youtube-consent {
	width: 100%;
	background: #f1f4f7;
	color: #172b4d;
	border: 1px solid #c5cfda;
	border-radius: 4px;
	overflow: hidden;
	text-align: center;
}

.pkf-youtube-consent [hidden],
.pkf-youtube-privacy[hidden] {
	display: none !important;
}

.pkf-youtube-consent__notice {
	padding: 24px;
	font-size: 15px;
	line-height: 1.5;
}

.pkf-youtube-consent__notice p {
	margin: 0 0 14px;
}

.pkf-youtube-consent__notice .pkf-youtube-consent__title {
	font-weight: 700;
	font-size: 18px;
}

.pkf-youtube-consent__notice a {
	color: #174fa6;
	text-decoration: underline;
}

.pkf-youtube-consent__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 14px;
}

.pkf-youtube-consent button,
.pkf-youtube-privacy button {
	/* El tema tiene colores globales de botones con !important. */
	border: 1px solid #174fa6 !important;
	background: #fff !important;
	color: #174fa6 !important;
	padding: 10px 14px;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	white-space: normal;
	cursor: pointer;
	min-height: 44px;
}

.pkf-youtube-consent button:hover,
.pkf-youtube-consent button:focus,
.pkf-youtube-privacy button:hover,
.pkf-youtube-privacy button:focus {
	background: #e3ecf7 !important;
	color: #172b4d !important;
}

.pkf-youtube-consent button:focus-visible,
.pkf-youtube-consent a:focus-visible,
.pkf-youtube-privacy button:focus-visible {
	outline: 3px solid #174fa6;
	outline-offset: 3px;
}

.pkf-youtube-consent__player {
	position: relative;
	aspect-ratio: var(--pkf-video-ratio, 16 / 9);
}

/* El aviso tiene altura propia: evitar sumar el hueco responsive original de WP. */
.wp-block-embed .wp-block-embed__wrapper:has(> .pkf-youtube-consent)::before {
	content: none;
	display: none;
}

.pkf-youtube-consent .pkf-youtube-consent__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
}

.pkf-youtube-consent__withdraw {
	margin: 8px;
}

.pkf-youtube-privacy {
	padding: 12px;
	text-align: center;
}

.pkf-youtube-consent__status:empty {
	display: none;
}

/* La tarjeta antigua fijaba el contenedor del vídeo en 230px: no recortar el aviso. */
.resenya-imagen center > .pkf-youtube-consent {
	height: auto !important;
}

@media (max-width: 480px) {
	.pkf-youtube-consent__notice { padding: 16px; }
	.pkf-youtube-consent__actions { flex-direction: column; }
}
