/* astra-child 1.6.12 – share buttons (no plugin, no third-party files). Brand = header C: blue #1D3E63 / #15304D, gold #E3B54A. */
html body .fg-share {
	--fgs-blue: #1D3E63;
	--fgs-deep: #15304D;
	--fgs-gold: #E3B54A;
	--fgs-cream: #FFFEF9;
	position: relative;
	clear: both;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	font-size: 14px;
	line-height: 1.2;
}
html body .fg-share__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fgs-blue);
}
html body .fg-share__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }

/* buttons + links: one look; resets beat Astra's button/link colours */
html body .fg-share .fg-share__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-width: 40px;
	min-height: 40px;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid rgba(29, 62, 99, .30) !important;
	border-radius: 999px !important;
	background: var(--fgs-cream) !important;
	color: var(--fgs-blue) !important;
	font: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
html body .fg-share .fg-share__btn svg { flex: 0 0 auto; display: block; }
html body .fg-share .fg-share__btn:hover {
	background: var(--fgs-blue) !important;
	border-color: var(--fgs-blue) !important;
	color: #F5F0E8 !important;
}
html body .fg-share .fg-share__btn:focus { outline: none; }
html body .fg-share .fg-share__btn:focus-visible {
	outline: 2px solid var(--fgs-blue) !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px rgba(227, 181, 74, .55) !important;
}

/* native "Share…": only where navigator.share exists (class set in <head>, so no shift) */
html body .fg-share .fg-share__btn--native { display: none !important; }
html.fg-can-share body .fg-share .fg-share__btn--native {
	display: inline-flex !important;
	background: var(--fgs-blue) !important;
	border-color: var(--fgs-blue) !important;
	color: #F5F0E8 !important;
}
html.fg-can-share body .fg-share .fg-share__btn--native svg { color: var(--fgs-gold); }
html.fg-can-share body .fg-share .fg-share__btn--native:hover { background: var(--fgs-deep) !important; }

/* "Link copied" note: absolutely placed under the row → never moves the page */
html body .fg-share__status {
	position: absolute;
	left: 0;
	top: 100%;
	margin-top: 6px;
	font-size: 13px;
	color: var(--fgs-blue);
	white-space: nowrap;
	pointer-events: none;
}
html body .fg-share__status:not(:empty)::before { content: "\2713\00a0"; color: #8A6A16; }

/* compact: icons only (top of posts) */
html body .fg-share--compact { margin: 0 0 1.8em; gap: 8px 12px; }
html body .fg-share--compact .fg-share__btn { width: 40px; padding: 0 !important; }
html body .fg-share--compact .fg-share__txt,
html body .fg-share .fg-share__txt.is-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
html.fg-can-share body .fg-share--compact .fg-share__btn--native { width: auto; padding: 0 14px !important; }
html.fg-can-share body .fg-share--compact .fg-share__btn--native .fg-share__txt { position: static !important; width: auto; height: auto; clip: auto; }

/* full: "Share this" row at the end of posts / pages, and in the product summary */
html body .fg-share--full {
	margin: 2.4em 0 1.6em;
	padding-top: 1.2em;
	border-top: 1px solid rgba(227, 181, 74, .6);
}
html body .fg-share--full .fg-share__label { flex: 0 0 100%; }
html body .fg-share--product.fg-share--full { margin: 1.4em 0 1.2em; padding-top: 1em; }

/* phones */
@media (max-width: 599px) {
	html body .fg-share--full .fg-share__btn { width: 42px; min-height: 42px; padding: 0 !important; }
	html body .fg-share--full .fg-share__txt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	html.fg-can-share body .fg-share--full .fg-share__btn--native { width: auto; padding: 0 16px !important; }
	html.fg-can-share body .fg-share--full .fg-share__btn--native .fg-share__txt { position: static !important; width: auto; height: auto; clip: auto; }
	/* with the phone share sheet, the top row is just "Share…" + copy link */
	html.fg-can-share body .fg-share--compact .fg-share__btn:not(.fg-share__btn--native):not(.fg-share__btn--copy) { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	html body .fg-share .fg-share__btn { transition: none; }
}
@media print {
	html body .fg-share { display: none !important; }
}
/* phones with the share sheet: "Share…" already says it, so the small "SHARE" label goes */
@media (max-width: 599px) {
	html.fg-can-share body .fg-share--compact .fg-share__label { display: none; }
}
/* phones with the share sheet, end-of-content row: a full-width "Share…" button, then one line of icons */
@media (max-width: 599px) {
	html.fg-can-share body .fg-share--full .fg-share__btns { width: 100%; }
	html.fg-can-share body .fg-share--full .fg-share__btn--native { flex: 0 0 100%; width: 100%; min-height: 46px; }
}
