.ml2ss
{
	position: fixed;
	z-index: 999;
	width: 370px;
	height: 520px;
	transition: transform 0.5s 0.2s;
}

.ml2ss--right
{
	right: -370px;
}

.ml2ss--left
{
	left: -370px;
}

.ml2ss--right:hover
{
	transform: translateX(-370px);
}

.ml2ss--left:hover
{
	transform: translateX(370px);
}

/* Keyboard users open the box too. These stay separate rules, so a browser without :has keeps the hover rules. */
.ml2ss--right:has(:focus-visible)
{
	transform: translateX(-370px);
}

.ml2ss--left:has(:focus-visible)
{
	transform: translateX(370px);
}

/* The radio buttons are invisible but still reachable with the keyboard. */
.ml2ss__radio
{
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ml2ss__tabs
{
	position: absolute;
	top: 50px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ml2ss--right .ml2ss__tabs
{
	right: 100%;
}

.ml2ss--left .ml2ss__tabs
{
	left: 100%;
}

.ml2ss__tab
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 32px;
	height: 115px;
	margin: 0;
	overflow: hidden;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 0 20px -7px #000;
	transition: transform 0.2s ease;
}

.ml2ss__tab:hover
{
	transform: scale(1.07);
}

.ml2ss--rounded.ml2ss--right .ml2ss__tab
{
	border-radius: 7px 0 0 7px;
}

.ml2ss--rounded.ml2ss--left .ml2ss__tab
{
	border-radius: 0 7px 7px 0;
}

.ml2ss__tab-text
{
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 24px;
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.ml2ss__tab-icon
{
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 30px;
	background: rgba(0, 0, 0, 0.1);
}

.ml2ss__tab-icon svg
{
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.ml2ss__tab--facebook
{
	background: #3289d9;
}

.ml2ss__tab--tiktok
{
	background: #010101;
}

.ml2ss__tab--youtube
{
	background: #cc0000;
}

.ml2ss__radio--facebook:focus-visible ~ .ml2ss__tabs .ml2ss__tab--facebook,
.ml2ss__radio--tiktok:focus-visible ~ .ml2ss__tabs .ml2ss__tab--tiktok,
.ml2ss__radio--youtube:focus-visible ~ .ml2ss__tabs .ml2ss__tab--youtube
{
	outline: 2px solid #fff;
	outline-offset: -4px;
}

/* Inactive panels stay laid out and only invisible, because the TikTok card stays blank when it loads inside `display: none`. */
.ml2ss__panel
{
	position: absolute;
	top: 0;
	left: 0;
	visibility: hidden;
	box-sizing: border-box;
	width: 370px;
	height: 520px;
	overflow: hidden;
	background: #fff;
	border: 10px solid;
	border-radius: 8px;
}

.ml2ss__panel--facebook
{
	display: flex;
	flex-direction: column;
	border-color: #3289d9;
}

.ml2ss__panel--facebook > iframe
{
	flex-shrink: 0;
}

.ml2ss__posts
{
	flex: 1;
	min-height: 0;
	padding: 8px;
	overflow-y: auto;
	background: #f0f2f5;
}

/* The cards set their own colours, so a dark site template cannot make the text unreadable. */
.ml2ss__panel .ml2ss__post,
.ml2ss__panel .ml2ss__post:hover,
.ml2ss__panel .ml2ss__post:focus
{
	display: block;
	margin: 0 0 8px;
	padding: 10px;
	color: #1c1e21;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
	text-shadow: none;
	background: #fff;
	border-radius: 8px;
}

.ml2ss__post-date
{
	display: block;
	color: #65676b;
	font-size: 11px;
}

.ml2ss__post-text
{
	display: block;
	margin-top: 4px;
	overflow-wrap: anywhere;
}

.ml2ss__post img
{
	display: block;
	width: 100%;
	height: auto;
	margin-top: 8px;
}

.ml2ss__post-bar
{
	display: flex;
	gap: 18px;
	align-items: center;
	margin-top: 8px;
	padding-top: 8px;
	color: #65676b;
	font-size: 13px;
	border-top: 1px solid #e4e6eb;
}

.ml2ss__stat
{
	display: flex;
	gap: 6px;
	align-items: center;
	min-height: 22px;
}

.ml2ss__panel .ml2ss__stat svg
{
	width: 18px;
	height: 18px;
	overflow: visible;
	fill: currentColor;
}

/* The share arrow is drawn as an outline, like the two icons beside it. */
.ml2ss__panel .ml2ss__stat--shares svg
{
	fill: none;
	stroke: currentColor;
	stroke-width: 40;
}

.ml2ss__badges
{
	display: flex;
	margin-left: auto;
}

.ml2ss__badge
{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-left: -3px;
	font-size: 15px;
	line-height: 1;
	border: 2px solid #fff;
	border-radius: 50%;
}

.ml2ss__badge--like
{
	background: #1877f2;
}

.ml2ss__badge--love
{
	background: #f33e58;
}

.ml2ss__panel .ml2ss__badge svg
{
	width: 10px;
	height: 10px;
	fill: #fff;
}

/* The blue shows behind the name when the Page has no cover picture. */
.ml2ss__header
{
	position: relative;
	flex-shrink: 0;
	height: 133px;
	overflow: hidden;
	font-family: Helvetica, Arial, sans-serif;
	background: #3289d9;
}

/* Both pictures set their sizes with the panel class, so image rules of the site template cannot resize them. */
.ml2ss__panel .ml2ss__cover
{
	position: absolute;
	top: 0;
	left: 0;
	width: 350px;
	max-width: none;
	height: 133px;
	margin: 0;
	object-fit: cover;
}

.ml2ss__profile
{
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 24px 10px 8px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.ml2ss__panel .ml2ss__avatar
{
	flex-shrink: 0;
	width: 56px;
	max-width: none;
	height: 56px;
	margin: 0;
	border: 2px solid #fff;
	border-radius: 50%;
}

.ml2ss__title
{
	flex: 1;
	min-width: 0;
	color: #fff;
	text-align: left;
	text-shadow: 0 1px 3px #000;
}

.ml2ss__name
{
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.ml2ss__followers
{
	display: block;
	font-size: 12px;
}

.ml2ss__panel .ml2ss__follow,
.ml2ss__panel .ml2ss__follow:hover,
.ml2ss__panel .ml2ss__follow:focus
{
	flex-shrink: 0;
	padding: 6px 10px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	background: #1877f2;
	border-radius: 6px;
}

.ml2ss__panel .ml2ss__more,
.ml2ss__panel .ml2ss__more:hover,
.ml2ss__panel .ml2ss__more:focus
{
	display: block;
	padding: 10px;
	color: #fff;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	background: #1877f2;
	border-radius: 6px;
}

.ml2ss__panel--tiktok
{
	overflow-y: auto;
	border-color: #010101;
}

.ml2ss__panel--youtube
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #000;
	border-color: #cc0000;
}

.ml2ss__panel > iframe
{
	display: block;
	border: 0;
}

.ml2ss__panel blockquote
{
	margin: 0;
	padding: 0;
	border: 0;
}

/* The TikTok frame takes the height of its blockquote. Without a height it stays 150px tall and cuts off the videos. */
.ml2ss__panel--tiktok blockquote
{
	height: 500px;
}

.ml2ss__panel .ml2ss__open,
.ml2ss__panel .ml2ss__open:hover,
.ml2ss__panel .ml2ss__open:focus
{
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #fff;
	font-weight: 600;
}

.ml2ss__open svg
{
	width: 72px;
	height: 72px;
	fill: #cc0000;
}

.ml2ss__radio--facebook:checked ~ .ml2ss__panel--facebook,
.ml2ss__radio--tiktok:checked ~ .ml2ss__panel--tiktok,
.ml2ss__radio--youtube:checked ~ .ml2ss__panel--youtube
{
	visibility: visible;
}

.ml2ss-bar
{
	display: none;
}

.ml2ss-bar__button
{
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	height: 48px;
}

.ml2ss-bar .ml2ss-bar__button,
.ml2ss-bar .ml2ss-bar__button:hover,
.ml2ss-bar .ml2ss-bar__button:focus
{
	color: #fff;
}

.ml2ss-bar__button svg
{
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.ml2ss-bar__button--facebook
{
	background: #3289d9;
}

.ml2ss-bar__button--facebook:hover
{
	background: #226fb6;
}

.ml2ss-bar__button--tiktok
{
	background: #010101;
}

.ml2ss-bar__button--tiktok:hover
{
	background: #333;
}

.ml2ss-bar__button--youtube
{
	background: #cc0000;
}

.ml2ss-bar__button--youtube:hover
{
	background: #990000;
}

@media (max-width: 767.98px)
{
	.ml2ss
	{
		display: none;
	}

	.ml2ss-bar
	{
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 10000;
		display: flex;
		width: 100%;
	}
}
