/**
 * Checkbox de política de privacidad.
 */

.hec-privacy-check {
	--hec-privacy-accent: var(--hec-accent, #e07a2f);
	position: relative;
}

.hec-privacy-check__label {
	-webkit-user-select: none;
	user-select: none;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 6px;
	overflow: hidden;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: flex-start;
	gap: 0;
	max-width: 100%;
}

.hec-privacy-check__label:hover {
	background: rgba(224, 122, 47, 0.08);
}

.hec-privacy-check__label > span:first-child {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 1px solid #cccfdb;
	transition: all 0.2s ease;
	box-shadow: 0 1px 1px rgba(0, 16, 75, 0.05);
}

.hec-privacy-check__label > span:first-child svg {
	position: absolute;
	top: 3px;
	left: 2px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 16px;
	stroke-dashoffset: 16px;
	transition: all 0.3s ease;
	transition-delay: 0.1s;
}

.hec-privacy-check__label > span:last-child {
	padding-left: 8px;
	line-height: 1.45;
	font-size: 0.86rem;
}

.hec-privacy-check__label a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hec-privacy-check__label:hover > span:first-child {
	border-color: var(--hec-privacy-accent);
}

.hec-privacy-check__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.hec-privacy-check__input:checked + .hec-privacy-check__label > span:first-child {
	background: var(--hec-privacy-accent);
	border-color: var(--hec-privacy-accent);
	animation: hec-privacy-wave 0.4s ease;
}

.hec-privacy-check__input:checked + .hec-privacy-check__label > span:first-child svg {
	stroke-dashoffset: 0;
}

.hec-privacy-check__input:focus-visible + .hec-privacy-check__label > span:first-child {
	outline: 2px solid var(--hec-privacy-accent);
	outline-offset: 2px;
}

.hec-privacy-check__sprite {
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none;
	user-select: none;
	overflow: hidden;
}

.hec-privacy-check--footer .hec-privacy-check__label {
	color: rgba(255, 255, 255, 0.95);
}

.hec-privacy-check--footer .hec-privacy-check__label:hover {
	background: rgba(255, 255, 255, 0.08);
}

.hec-privacy-check--footer .hec-privacy-check__label a {
	color: #fff;
}

.hec-privacy-check--popup {
	margin-top: 0.15rem;
	grid-column: 1 / -1;
}

.hec-privacy-check--contact {
	margin-top: 0.35rem;
}

.hec-privacy-check--contact .hec-privacy-check__label {
	color: #fff;
}

.hec-privacy-check--contact .hec-privacy-check__label:hover {
	background: rgba(255, 255, 255, 0.1);
}

.hec-privacy-check--contact .hec-privacy-check__label a {
	color: #fff;
}

@keyframes hec-privacy-wave {
	50% {
		transform: scale(0.9);
	}
}
