/**
 * Share-this-page buttons. Used by parts/share.php.
 * Icons: currentColor so hover can flip them to cream.
 */

.interfor-share {
	--interfor-share-btn: var(--color-red-primary);
	--interfor-share-btn-hover-bg: var(--color-red-primary);
	--interfor-share-btn-hover-color: var(--color-cream-text);
	--interfor-share-gap: 14px;
	--interfor-share-align: left;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: var(--interfor-share-align);
}

.interfor-share--center {
	--interfor-share-align: center;
}

.interfor-share--right {
	--interfor-share-align: right;
}

.interfor-share__title {
	margin: 0 0 24px;
	font-family: var(--font-display);
	letter-spacing: -0.36px;
	color: var(--color-dark-text);
	text-align: var(--interfor-share-align);
}

.interfor-share__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	justify-content: var(--interfor-share-align);
}

.interfor-share__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--interfor-share-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.interfor-share__btn,
a.interfor-share__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid var(--interfor-share-btn);
	border-radius: 0;
	background: transparent;
	background-color: transparent;
	color: var(--interfor-share-btn);
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.interfor-share--lg .interfor-share__btn {
	width: 48px;
	height: 48px;
}

.interfor-share--md .interfor-share__btn {
	width: 36px;
	height: 36px;
}

.interfor-share__btn:hover,
.interfor-share__btn:focus-visible,
a.interfor-share__btn:hover,
a.interfor-share__btn:focus-visible {
	background: var(--interfor-share-btn-hover-bg);
	background-color: var(--interfor-share-btn-hover-bg);
	color: var(--interfor-share-btn-hover-color);
}

.interfor-share__btn:focus {
	outline: 2px solid var(--interfor-share-btn);
	outline-offset: 3px;
}

.interfor-share__btn:focus:not(:focus-visible) {
	outline: none;
}

.interfor-share__btn:focus-visible {
	outline: 2px solid var(--interfor-share-btn);
	outline-offset: 3px;
}

.interfor-share__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.interfor-share--lg .interfor-share__icon,
.interfor-share--lg .interfor-share__icon svg {
	width: 22px;
	height: 22px;
}

.interfor-share--md .interfor-share__icon,
.interfor-share--md .interfor-share__icon svg {
	width: 18px;
	height: 18px;
}

.interfor-share__icon svg {
	display: block;
	fill: currentColor;
}

.interfor-share__icon svg [stroke]:not([stroke='none']) {
	stroke: currentColor;
	fill: none;
}

.interfor-share__btn.is-copied,
a.interfor-share__btn.is-copied {
	background: var(--interfor-share-btn-hover-bg);
	background-color: var(--interfor-share-btn-hover-bg);
	color: var(--interfor-share-btn-hover-color);
}

.interfor-share__status {
	margin: 0;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--interfor-share-btn);
}

.interfor-share__status:empty {
	display: none;
}

.interfor-share__empty {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-dark-text);
}
