a.jetpack-sharing-button__button {
	color: inherit;
}

.jetpack-sharing-button__button {
	display: flex;
	flex-direction: row;
	margin: 4px 4px 0;
	cursor: default;
	font-size: inherit;
	font-weight: 500;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.12);
	line-height: 23px;
	padding: 4px 9px 3px;
	justify-content: center;
	text-decoration: none;
	height: auto;
	align-items: center;
	color: inherit;

	svg {
		width: 1.5em;
		height: 1.5em;
		fill: currentColor;
	}

	&:hover {
		cursor: pointer;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.22);
	}

	&.components-button {
		font-size: inherit;
		padding: 4px 11px 3px 9px;
	}

	&.style-icon {
		border-radius: 50%;
		border: 0;
		box-shadow: none;
		padding: 7px;
		position: relative;
		top: -2px;
		line-height: 1;
		width: auto;
		height: auto;
		margin-bottom: 0;
		color: #fff;

		&.share-bluesky {
			background: var(--color-bluesky);
		}

		&.share-x {
			background: #000;
		}

		&.share-print {
			background: #c5c2c2;
		}

		&.share-reddit {
			background: var(--color-reddit);
		}

		&.share-facebook {
			background: var(--color-facebook);
		}

		&.share-linkedin {
			background: var(--color-linkedin);
		}

		&.share-mail {
			background: #c5c2c2;
		}

		&.share-twitter {
			background: var(--color-twitter);
		}

		&.share-tumblr {
			background: var(--color-tumblr);
		}

		&.share-pinterest {
			background: var(--color-pinterest);
		}

		&.share-pocket {
			background: var(--color-pocket);
		}

		&.share-telegram {
			background: var(--color-telegram);
		}

		&.share-threads {
			background: var(--color-threads);
		}

		&.share-whatsapp {
			background: var(--color-whatsapp);
		}

		&.share-mastodon {
			background: var(--color-mastodon);
		}

		&.share-nextdoor {
			background: var(--color-nextdoor);
		}

		&.share-share {
			background: #000;
		}
	}

	&.style-icon.is-custom {
		padding: 8px;
		top: 2px;
	}

	&.style-icon-text {
		margin-inline-end: 4px;
		padding-inline-end: 11px;
	}
}

.style-text .social-logo,
.style-text .sharing-buttons-preview-button__custom-icon,
.style-icon .jetpack-sharing-button__service-label {
	display: none;
}

.jetpack-sharing-button__list-item {
	list-style-type: none;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 5px;

	&:first-child {

		.jetpack-sharing-button__button {
			margin-inline-start: 0;
		}
	}
}

.style-icon-text .jetpack-sharing-button__service-label {
	margin-inline-start: 5px;
}
