/* Social Share Buttons - front-end styles. Scoped under .ssb to stay theme-safe. */

.ssb {
	margin: 2em 0;
	clear: both;
}

.ssb * {
	box-sizing: border-box;
}

.ssb__heading {
	margin: 0 0 .7em;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.3;
}

.ssb__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin: 0;
	padding: 0;
}

.ssb--align-center .ssb__list {
	justify-content: center;
}

.ssb--align-right .ssb__list {
	justify-content: flex-end;
}

.ssb__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ssb__btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .55em .9em;
	border: 0;
	border-radius: 6px;
	background: #3f4756;
	color: #fff;
	font: inherit;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .15s ease, transform .15s ease;
}

.ssb__btn:hover,
.ssb__btn:focus {
	color: #fff;
	opacity: .88;
	transform: translateY(-1px);
	text-decoration: none;
}

.ssb__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ssb__icon {
	display: inline-flex;
	width: 1.15em;
	height: 1.15em;
}

.ssb__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ssb__label {
	white-space: nowrap;
}

/* Icon-only style: round buttons + visually hidden (but accessible) labels. */
.ssb--style-icon .ssb__btn {
	padding: 0;
	width: 2.6em;
	height: 2.6em;
	justify-content: center;
	border-radius: 50%;
}

.ssb--style-icon .ssb__label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Brand colors. */
.ssb__btn--facebook  { background: #1877f2; }
.ssb__btn--twitter   { background: #000000; }
.ssb__btn--linkedin  { background: #0a66c2; }
.ssb__btn--whatsapp  { background: #25d366; }
.ssb__btn--pinterest { background: #e60023; }
.ssb__btn--email     { background: #555555; }
.ssb__btn--copy      { background: #3f4756; position: relative; }

/* "Copied!" confirmation tooltip on the copy button. */
.ssb__btn--copy.is-copied::after {
	content: attr(data-ssb-copied);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	padding: 3px 8px;
	border-radius: 4px;
	background: #1e2430;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	pointer-events: none;
}
