.joinchat--show {
	display: block;
	transform: scaleX(1);
}

.joinchat--left {
	right: auto;
	left: var(--sep);
}

.joinchat--noanim {
	animation: none;
}

.joinchat--left .joinchat__button {
	right: auto;
	left: 8px;
}

.joinchat__button__ico {
	position: absolute;
	inset: 0;
	display: flex;
	border-radius: 50%;
	overflow: hidden;
	color: hsla(0deg, 0%, clamp(0%, var(--bw) * 1000%, 100%), clamp(70%, var(--bw) * 1000%, 100%)) !important;
}

.joinchat__button__ico svg {
	width: var(--ico-size, 100%);
	height: var(--ico-size, 100%);
	margin: calc(( 100% - var(--ico-size, 1) ) / 2);
}

.joinchat__button:has(.joinchat__button__ico) {
	background: hsl(var(--ch), var(--cs), var(--cl));
	box-shadow: 1px 6px 24px 0 hsla(var(--ch), var(--cs), calc(var(--cl) - 10%), 24%);
}

.joinchat__button:has(.joinchat__button__ico):active, .joinchat__button:has(.joinchat__button__ico):hover {
	background: hsl(var(--ch), var(--cs), calc(var(--cl) + 20%));
}

.joinchat__button__image {
	position: absolute;
	inset: 1px;
	border-radius: 50%;
	overflow: hidden;
	opacity: 0;
}

.joinchat__button__image img, .joinchat__button__image video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.joinchat--show .joinchat__button__image {
	animation: joinchat_image_loop 20s linear 5s infinite normal both;
}

.joinchat--img .joinchat__button__image {
	opacity: 1;
	animation: none;
}

.joinchat__tooltip {
	position: absolute;
	top: calc(var(--h) - 16px);
	right: calc(var(--s) + 16px);
	max-width: calc(100vw - var(--s) - 45px);
	height: 32px;
	padding: 0 14px;
	border: none;
	border-radius: 16px;
	background: #fff;
	color: rgba(0, 0, 0, .8);
	line-height: 31px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity .3s ease-out .4s;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4));
	pointer-events: none;
}

.joinchat__tooltip:after {
	content: "";
	display: block;
	position: absolute;
	top: 10px;
	right: -6px;
	border: 8px solid transparent;
	border-width: 6px 0 6px 8px;
	border-left-color: #fff;
}

.joinchat__tooltip div {
	width: -moz-max-content;
	width: max-content;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.joinchat--tooltip .joinchat__tooltip {
	animation: joinchat_tootlip 20s linear 5s 1 normal both;
}

.joinchat--left .joinchat__tooltip {
	right: auto;
	left: calc(var(--s) + 16px);
}

.joinchat--left .joinchat__tooltip:after {
	left: -6px;
	right: auto;
	border-color: transparent;
	border-width: 6px 8px 6px 0;
	border-right-color: #fff;
}

.joinchat__qr {
	position: absolute;
	z-index: 2;
	bottom: calc(var(--s) + 24px);
	right: 8px;
	display: none;
	flex-direction: column-reverse;
	width: 228px;
	min-height: 200px;
	padding: 14px 14px 10px;
	border: none;
	border-radius: 16px;
	background: #fff;
	color: rgba(0, 0, 0, .8);
	text-align: center;
	white-space: nowrap;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4));
	animation: joinchat_badge_in .4s cubic-bezier(.11, .84, .83, 1.01) .5s both;
	pointer-events: none;
}

.joinchat__qr:after {
	content: "";
	display: block;
	position: absolute;
	bottom: -6px;
	right: calc(var(--h) - 6px);
	border: 8px solid transparent;
	border-width: 8px 6px 0;
	border-top-color: #fff;
}

.joinchat--left .joinchat__qr {
	left: 8px;
	right: auto;
}

.joinchat--left .joinchat__qr:after {
	left: calc(var(--h) - 6px);
	right: auto;
}

.joinchat__qr div {
	font-size: 14px;
	color: #4a4a4a;
	overflow: hidden;
	text-overflow: ellipsis;
}

.joinchat__qr canvas {
	display: block;
	width: 200px;
	height: 200px;
	margin: 0;
	image-rendering: pixelated;
}

.joinchat__woo-btn__wrapper {
	clear: both;
}

.joinchat__woo-btn {
	--s: 40px;
	display: inline-block;
	box-sizing: border-box;
	height: var(--s);
	max-width: 100%;
	padding: 0 calc(var(--s) / 2) 0 var(--s);
	background: #25d366 var(--joinchat-ico) calc(var(--s) * .2) 50% no-repeat;
	background-size: calc(var(--s) * .6);
	color: #fff;
	border-radius: calc(var(--s) / 2);
	font: 700 normal calc(var(--s) * .35)/var(--s) var(--joinchat-font);
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	cursor: pointer;
	transition: background-color .2s;
}

.joinchat__woo-btn:empty {
	padding-right: 0;
}

.joinchat__woo-btn:hover {
	background-color: #128c7e;
}

@media (orientation:landscape) and (height >= 481px),(orientation:portrait) and (width >= 481px) {
	.joinchat--mobile {
		display: none !important;
	}
}

@media (width <= 767px) {
	.joinchat--footer-bar {
		--bottom: 76px !important;
	}
}

@media (orientation:landscape) and (height <= 480px),(width <= 480px) {}

@media (hover:hover) {
	.joinchat__button:hover .joinchat__tooltip {
		opacity: 1;
		animation: none;
		transition: opacity .2s;
	}
}

@media (prefers-reduced-motion) {}