/* Иконки соцсетей в блоке .copyright
 * left  → иконки справа
 * right → иконки слева
 * center → иконки в самом низу copyright
 * Цвета FA инлайнятся из listener в <head>.
 */
.copyright {
	position: relative;
}

.copyright .acpmod-footer-social-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;
	height: auto;
}

/* copyright слева → иконки справа, по вертикали по центру блока */
body.acpmod-copyright-align-left .copyright .acpmod-footer-social-icons {
	position: absolute;
	top: 50%;
	right: 15px;
	left: auto;
	transform: translateY(-50%);
	justify-content: flex-end;
	margin: 0;
	z-index: 2;
}

/* copyright справа → иконки слева, по вертикали по центру блока */
body.acpmod-copyright-align-right .copyright .acpmod-footer-social-icons {
	position: absolute;
	top: 50%;
	left: 15px;
	right: auto;
	transform: translateY(-50%);
	justify-content: flex-start;
	margin: 0;
	z-index: 2;
}

/* copyright по центру → иконки в самом низу блока */
body.acpmod-copyright-align-center .copyright {
	display: flex;
	flex-direction: column;
}

body.acpmod-copyright-align-center .copyright .acpmod-footer-social-icons {
	position: static;
	order: 9999;
	justify-content: center;
	margin-top: 8px;
	width: 100%;
}

.copyright .acpmod-footer-social-icons__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 4px;
	line-height: 1;
	color: inherit;
	opacity: 0.85;
	text-decoration: none;
	width: 14px;
	height: 14px;
}

.copyright .acpmod-footer-social-icons__link:hover,
.copyright .acpmod-footer-social-icons__link:focus {
	opacity: 1;
	text-decoration: none;
}

.copyright .acpmod-footer-social-icons__link .icon {
	font-size: 1.95em;
}

/* Палитра FA: переменные задаются style="..." на контейнере */
.acpmod-footer-social-icons--palette .acpmod-footer-social-icons__link .icon,
.acpmod-footer-social-icons--palette .acpmod-footer-social-icons__link .icon::before {
	color: var(--acpmod-social-fa-color, inherit) !important;
}

.acpmod-footer-social-icons--palette .acpmod-footer-social-icons__link:hover,
.acpmod-footer-social-icons--palette .acpmod-footer-social-icons__link:focus,
.acpmod-footer-social-icons--palette .acpmod-footer-social-icons__link:hover .icon,
.acpmod-footer-social-icons--palette .acpmod-footer-social-icons__link:focus .icon,
.acpmod-footer-social-icons--palette .acpmod-footer-social-icons__link:hover .icon::before,
.acpmod-footer-social-icons--palette .acpmod-footer-social-icons__link:focus .icon::before {
	color: var(--acpmod-social-fa-hover-color, var(--acpmod-social-fa-color, inherit)) !important;
	text-shadow: var(--acpmod-social-fa-hover-shadow, none) !important;
}

.copyright .acpmod-footer-social-icons__link .acpmod-footer-social-icons__img {
	display: block;
	width: 16px;
	height: 16px;
	max-width: 16px;
	max-height: 16px;
	object-fit: contain;
}
