/* =========================================================
   Applicore Encrypted Addresses – [cell] links
   Pill-shaped outline buttons with an icon after the text. The icon follows the link's data-type
   (set by js/cell.js): phone → phone, email → envelope. The href is only "#" until the link is clicked. Colours from the Ollie palette, with fallbacks for other themes.
   ========================================================= */
.cell-contact-link {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .5em 1.15em;
	border: 1px solid var(--wp--preset--color--border-dark, currentColor);
	border-radius: 999px;
	color: var(--wp--preset--color--main, inherit);
	line-height: 1.2;
	text-decoration: none !important;
	transition: border-color .2s ease, color .2s ease;
}
.cell-contact-link:hover,
.cell-contact-link:focus-visible {
	border-color: var(--ac-accent, var(--wp--preset--color--primary, currentColor)); /* Applicore Helpers' interface colour */
	color: var(--ac-accent, var(--wp--preset--color--primary, inherit));
}

/* The icon: an SVG used as a mask, so it takes the link's colour (also on hover) */
.cell-contact-link::after {
	content: "";
	flex-shrink: 0;
	width: 1.1em;
	height: 1.1em;
	background-color: currentColor;
	-webkit-mask: var(--cell-icon) no-repeat center / contain;
	mask: var(--cell-icon) no-repeat center / contain;
}
.cell-contact-link[data-type="phone"] { --cell-icon: url('images/phone.svg'); }
.cell-contact-link[data-type="email"] { --cell-icon: url('images/envelope.svg'); }

@media (prefers-reduced-motion: reduce) {
	.cell-contact-link {
		transition: none;
	}
}
