/*
 * AiProfile Inside: the "AiProfile" link in the footer (since 1.3.0).
 *
 * The AiProfile mark (cdot.svg on the AiProfile blue) in front of the link,
 * in a footer menu (.aiprofile-footer-link on the menu item) and in the
 * plugin's own line (.aiprofile-footer). The link keeps the theme's font,
 * size and colour.
 *
 * Since 1.4.0 the link shows the logo as an image (img.aiprofile-logo, with
 * its own inline style) and the link gets the class aiprofile-has-logo; the
 * mark below then stays away. It is only for a label the owner changed,
 * which stays text.
 */

.aiprofile-footer-link > a::before,
.aiprofile-footer > a::before {
	content: "";
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-right: 0.4em;
	vertical-align: -0.2em;
	border-radius: 50%;
	background: #2e5a8f url("cdot.svg") center / 62% 62% no-repeat;
}

/* The plugin adds this class to a link that shows the logo (since 1.4.0). */
.aiprofile-footer-link > a.aiprofile-has-logo::before,
.aiprofile-footer > a.aiprofile-has-logo::before {
	content: none;
	display: none;
}

.aiprofile-footer-link .aiprofile-logo,
.aiprofile-footer .aiprofile-logo {
	display: inline-block;
	width: auto;
	height: 20px;
	max-width: none;
	vertical-align: middle;
	/* Dark modes that dim images (Twenty Twenty-One) would grey the white label. */
	filter: none !important;
}

/* The plugin's own line, when the theme has no footer menu. */
.aiprofile-footer {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 1em 16px 1.25em;
	font-size: 0.875em;
	line-height: 1.4;
	text-align: center;
}

.aiprofile-footer > a {
	color: inherit;
	text-decoration: none;
}

.aiprofile-footer > a:hover,
.aiprofile-footer > a:focus {
	text-decoration: underline;
}
