/* Panel de opciones de correo. Colores y tipos del sitio en variables para ajustar fácil. */
.eaaf-mailto {
	--eaaf-ml-accent: #e2064a;
	--eaaf-ml-text: #333;
	--eaaf-ml-font: "Source Sans Pro", sans-serif;

	position: fixed;
	z-index: 100000;
	box-sizing: border-box;
	width: max-content;
	min-width: 220px;
	max-width: calc(100vw - 16px);
	padding: 14px 16px 12px;
	background: #fff;
	color: var(--eaaf-ml-text);
	font-family: var(--eaaf-ml-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.eaaf-mailto *,
.eaaf-mailto *::before,
.eaaf-mailto *::after {
	box-sizing: border-box;
}

.eaaf-mailto__address {
	margin: 0 28px 10px 0;
	font-weight: 600;
	overflow-wrap: anywhere;
	user-select: all;
}

/* Botón y enlaces con el mismo aspecto (pisan los estilos del tema). */
.eaaf-mailto .eaaf-mailto__action {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 0;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0;
	background: none;
	color: var(--eaaf-ml-accent);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

/* El tema pinta los botones con :focus/:hover (fondo rosa, texto blanco) con la
   misma prioridad y se carga después: por eso se repiten acá los estados. */
.eaaf-mailto .eaaf-mailto__action:hover,
.eaaf-mailto .eaaf-mailto__action:focus,
.eaaf-mailto .eaaf-mailto__action:active {
	background: none;
	color: var(--eaaf-ml-accent);
	box-shadow: none;
}

.eaaf-mailto .eaaf-mailto__action:hover {
	text-decoration: underline;
}

.eaaf-mailto .eaaf-mailto__action--copy {
	font-weight: 600;
}

.eaaf-mailto .eaaf-mailto__action.is-done,
.eaaf-mailto .eaaf-mailto__action.is-done:hover,
.eaaf-mailto .eaaf-mailto__action.is-done:focus {
	color: #1a7f37;
}

.eaaf-mailto .eaaf-mailto__close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--eaaf-ml-text);
	font: inherit;
	font-size: 20px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
}

.eaaf-mailto .eaaf-mailto__close:focus,
.eaaf-mailto .eaaf-mailto__close:active {
	background: none;
	color: var(--eaaf-ml-text);
	box-shadow: none;
}

.eaaf-mailto .eaaf-mailto__close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: var(--eaaf-ml-text);
}

.eaaf-mailto .eaaf-mailto__action:focus-visible,
.eaaf-mailto .eaaf-mailto__close:focus-visible {
	outline: 2px solid var(--eaaf-ml-accent);
	outline-offset: 2px;
}

.eaaf-mailto__status:empty {
	display: none;
}

.eaaf-mailto__status {
	display: block;
	margin-top: 6px;
	font-size: 14px;
}

/* El aviso de "¡Copiado!" ya se ve en el botón: el texto queda solo para lectores de pantalla. */
.eaaf-mailto .is-done ~ .eaaf-mailto__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
