/* Social Header Icons */
.shi-icons {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--shi-size, 20px) * 0.6);
	line-height: 1;
	vertical-align: middle;
}

.shi-icons .shi-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px !important;
	margin: 0 !important;
	background: none !important;
	border: 0 !important;
	line-height: 1 !important;
	/* No colour here: inside the menu the theme's link colour applies; a custom colour comes from the settings (inline CSS). */
	text-decoration: none !important;
	transition: color .2s ease, transform .2s ease;
}

/* Theme menus often draw underlines/dots with pseudo-elements – hide them on icons. */
.shi-icons .shi-link::before,
.shi-icons .shi-link::after {
	display: none !important;
}

.shi-icons .shi-link:hover,
.shi-icons .shi-link:focus-visible {
	transform: translateY(-1px);
}

.shi-icons--fixed .shi-link,
.shi-icons--inline .shi-link {
	color: inherit;
}

.shi-icons .shi-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 4px;
}

.shi-icons .shi-icon {
	display: block;
	width: var(--shi-size, 20px);
	height: var(--shi-size, 20px);
}

/* Placement: inside the header menu */
li.shi-menu-item {
	display: inline-flex !important;
	align-items: center;
	align-self: center;
	margin-left: 12px;
}

/* Placement: fixed bar in the top-right corner */
.shi-icons--fixed {
	position: fixed;
	top: var(--shi-top, 20px);
	right: 16px;
	z-index: 9999;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
	color: #1d2327;
}

body.admin-bar .shi-icons--fixed {
	top: calc(var(--shi-top, 20px) + 32px);
}

@media (max-width: 991px) {
	/* In the theme's mobile (hamburger) menu the items are stacked – keep icons in one row. */
	li.shi-menu-item {
		display: flex !important;
		margin: 8px 0 0;
		padding: 8px 15px;
	}
}

/* Elementor Pro Nav Menu – burger dropdown: line icons up with the item text (14px = 10px + 4px link padding). */
.elementor-nav-menu--dropdown li.shi-menu-item {
	display: flex !important;
	margin: 0 !important;
	padding: 6px 10px 16px !important;
}

@media (max-width: 782px) {
	body.admin-bar .shi-icons--fixed {
		top: calc(var(--shi-top, 20px) + 46px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.shi-icons .shi-link {
		transition: none;
	}
	.shi-icons .shi-link:hover {
		transform: none;
	}
}
