/* Panoraven share bar: end-of-article band, left column on wide screens, bar docked at the bottom of phones. */

.pano-share-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}
.pano-share-btn svg {
	display: block;
}
/* Optical balance between the filled brand icons and the line icons: thicker lines, a slightly smaller Facebook. */
.pano-share-btn--email svg,
.pano-share-btn--copy svg,
.pano-share-btn--native svg {
	stroke-width: 2.25;
}

/* The phone's share sheet button: phones only, where the browser has one, with the icon of the phone's system. */
[data-pano-share-native] {
	display: none !important;
}
@media (max-width: 767px) {
	.pano-share-can-share .pano-share-band [data-pano-share-native],
	.pano-share-can-share .pano-share-bar .pano-share-btn[data-pano-share-native] {
		display: inline-flex !important;
	}
	.pano-share-can-share .pano-share-bar .pano-share-sep[data-pano-share-native] {
		display: block !important;
	}
}
.pano-share-btn--native .pano-share-glyph--android,
.pano-share-android .pano-share-btn--native .pano-share-glyph--ios {
	display: none;
}
.pano-share-android .pano-share-btn--native .pano-share-glyph--android {
	display: flex;
}
.pano-share-btn--whatsapp svg path {
	stroke: currentColor;
	stroke-width: .5px;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}
.pano-share-btn--facebook svg {
	transform: scale(.86);
}
.pano-share-btn:focus-visible {
	outline: 2px solid #526ADD;
	outline-offset: 3px;
}

/* Teal discs with white icons: the band and the left column. */
.pano-share-band .pano-share-btn,
.pano-share-rail .pano-share-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #69D3C2;
	color: #FFFFFF !important;
	transition: transform .15s, box-shadow .15s;
}
.pano-share-band .pano-share-btn svg,
.pano-share-rail .pano-share-btn svg {
	width: 18px;
	height: 18px;
}
.pano-share-band .pano-share-btn:hover,
.pano-share-band .pano-share-btn:focus-visible,
.pano-share-rail .pano-share-btn:hover,
.pano-share-rail .pano-share-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(82, 106, 221, .28);
}
.pano-share-band .pano-share-btn:active,
.pano-share-rail .pano-share-btn:active {
	transform: scale(.94);
}

/* End-of-article band, between the theme's two rules: the counters and the old buttons give way to it. */
.single-post .saxon-post-bottom {
	margin-top: 40px;
}
.single-post .saxon-post.saxon-post-bottom .post-details-bottom {
	display: block;
	padding: 14px 0;
}
.single-post .saxon-post.saxon-post-bottom .post-details-bottom .post-info-tags,
.single-post .saxon-post.saxon-post-bottom .post-details-bottom .post-info-wrapper {
	display: none;
}
.single-post .saxon-post.saxon-post-bottom .post-details-bottom .post-info-share {
	width: auto;
	padding: 0;
}
.pano-share-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.pano-share-band__label {
	margin: 0 !important;
	font: 600 17px/1.3 Nunito, sans-serif;
	color: #4E5983;
}
.pano-share-band__buttons {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Left column while reading: inside the theme's floating column, which its own script moves along the article. */
.pano-share-rail {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Bar docked at the bottom of phones while reading: teal with white icons, like the discs, and tall enough to stay
   clear of the rounded bottom corners of the browsers' page view. */
.pano-share-bar {
	display: none;
}
@media (max-width: 767px) {
	.single-post .saxon-post.saxon-post-bottom .post-details-bottom {
		padding: 16px 0;
	}
	.pano-share-band {
		justify-content: center;
	}
	.pano-share-band__label {
		display: none;
	}
	.pano-share-band__buttons {
		gap: 16px;
	}
	.pano-share-band .pano-share-btn {
		width: 44px;
		height: 44px;
	}
	.pano-share-band .pano-share-btn svg {
		width: 20px;
		height: 20px;
	}
	/* No email nor WhatsApp on phones: the share sheet covers them. */
	.pano-share-band .pano-share-btn--email,
	.pano-share-band .pano-share-btn--whatsapp,
	.pano-share-bar .pano-share-btn--email,
	.pano-share-bar .pano-share-btn--email + .pano-share-sep,
	.pano-share-bar .pano-share-btn--whatsapp,
	.pano-share-bar .pano-share-btn--whatsapp + .pano-share-sep {
		display: none;
	}

	.single-post .pano-share-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9000;
		display: flex;
		align-items: center;
		justify-content: center;
		height: calc(53px + env(safe-area-inset-bottom));
		padding: 0 12px env(safe-area-inset-bottom);
		background: #69D3C2;
		box-shadow: 0 0 50px 0 rgba(0, 0, 0, .15);
		transform: translateY(110%);
		opacity: 0;
		pointer-events: none;
		transition: transform .25s ease, opacity .25s ease;
	}
	.pano-share-floating:not(.pano-share-consent-open):not(.pano-share-menu-open) .pano-share-bar {
		transform: none;
		opacity: 1;
		pointer-events: auto;
	}
	.pano-share-bar .pano-share-btn {
		flex: 0 0 76px;
		height: 53px;
		background: transparent;
		color: #FFFFFF !important;
		transition: transform .12s;
	}
	.pano-share-bar .pano-share-btn svg {
		width: 23px;
		height: 23px;
	}
	.pano-share-bar .pano-share-btn:active {
		transform: scale(.88);
	}
	/* Safari keeps its own toolbar area under the bar: a lower bar there. */
	.pano-share-ios-safari .pano-share-bar {
		height: calc(44px + env(safe-area-inset-bottom));
		background: #FFFFFF;
	}
	.pano-share-ios-safari .pano-share-bar .pano-share-btn {
		height: 44px;
	}
	.pano-share-ios-safari.pano-share-floating:not(.pano-share-consent-open):not(.pano-share-menu-open) .scroll-to-top {
		bottom: 60px !important;
	}
	.pano-share-ios-safari .pano-share-bar .pano-share-btn {
		color: #69D3C2 !important;
	}
	.pano-share-ios-safari .pano-share-bar .pano-share-sep {
		background: #E2E3E7;
	}
	.pano-share-sep {
		flex: none;
		width: 1px;
		height: 24px;
		background: rgba(255, 255, 255, .45);
	}

	/* The theme's back-to-top disc stays 16 px above the bar while it shows. */
	.single-post .scroll-to-top {
		transition: bottom .25s ease, background-color .25s ease, color .25s ease;
	}
	.pano-share-floating:not(.pano-share-consent-open):not(.pano-share-menu-open) .scroll-to-top {
		bottom: 69px !important;
	}
	/* Room for the bar under the page: at the very end, the footer stops just above it instead of passing under it. */
	body.single-post {
		padding-bottom: calc(53px + env(safe-area-inset-bottom));
	}
	body.single-post.pano-share-ios-safari {
		padding-bottom: calc(44px + env(safe-area-inset-bottom));
	}
}

/* Copy link: the link turns into a check that pops in, a ring spreads out, then the link comes back. */
.pano-share-glyph {
	display: flex;
}
.pano-share-glyph--check {
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	opacity: 0;
}
.pano-share-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}
.pano-share-bar .pano-share-ring {
	border-color: #FFFFFF;
}
.pano-share-ios-safari .pano-share-bar .pano-share-ring {
	border-color: #69D3C2;
}
@media (max-width: 767px) {
	.pano-share-band .pano-share-ring {
		width: 44px;
		height: 44px;
		margin: -22px 0 0 -22px;
	}
}
.pano-share-btn--copy.is-copied .pano-share-glyph--link {
	opacity: 0;
}
.pano-share-btn--copy.is-copied .pano-share-glyph--check {
	opacity: 1;
	animation: pano-share-pop .45s cubic-bezier(.3, 1.6, .5, 1);
}
.pano-share-btn--copy.is-copied .pano-share-ring {
	animation: pano-share-ring .6s ease-out;
}
.pano-share-btn--copy.is-back .pano-share-glyph--link {
	animation: pano-share-in .25s ease-out;
}
@keyframes pano-share-ring {
	0% { transform: scale(1); opacity: .9; }
	100% { transform: scale(1.75); opacity: 0; }
}
@keyframes pano-share-pop {
	0% { transform: scale(.3) rotate(-25deg); opacity: 0; }
	100% { transform: none; opacity: 1; }
}
@keyframes pano-share-in {
	from { transform: scale(.6); opacity: 0; }
	to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.pano-share-btn,
	.pano-share-rail,
	.pano-share-bar {
		transition: none !important;
	}
	.pano-share-btn--copy .pano-share-glyph,
	.pano-share-btn--copy .pano-share-ring {
		animation: none !important;
	}
}

.pano-share-live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
