.cs2772-emoji-popover {
	position: fixed;
	z-index: 1095;
	display: none;
	width: min(352px, calc(100vw - 24px));
	min-height: 160px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(201, 0, 53, .14);
	border-radius: 18px;
	box-shadow: 0 20px 55px rgba(32, 28, 38, .22);
}

.cs2772-emoji-popover.is-open { display: block; }

.cs2772-emoji-popover emoji-picker {
	width: 350px;
	max-width: 100%;
	height: 410px;
	--background: #fff;
	--border-color: transparent;
	--border-radius: 18px;
	--button-active-background: #fce9ef;
	--button-hover-background: #fff2f6;
	--category-emoji-padding: .3rem;
	--indicator-color: #c90035;
	--input-border-color: #e4dce0;
	--input-border-radius: 12px;
	--input-font-color: #282333;
	--input-placeholder-color: #817987;
	--outline-color: rgba(201, 0, 53, .28);
	--text-color: #282333;
}

.cs2772-emoji-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 160px;
}

.cs2772-emoji-loading span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #c90035;
	animation: cs2772EmojiPulse .9s ease-in-out infinite alternate;
}

.cs2772-emoji-loading span:nth-child(2) { animation-delay: .15s; }
.cs2772-emoji-loading span:nth-child(3) { animation-delay: .3s; }

.cs2772-emoji-error {
	display: grid;
	place-items: center;
	min-height: 160px;
	margin: 0;
	padding: 24px;
	color: #6d6571;
	font-size: 14px;
	text-align: center;
}

@keyframes cs2772EmojiPulse {
	from { opacity: .3; transform: translateY(2px); }
	to { opacity: 1; transform: translateY(-2px); }
}

.cs2766-comment-composer .cs2772-comment-emoji {
	flex: 0 0 42px;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: #625a68;
	background: #fff7f9;
	border: 1px solid #eadde2;
	border-radius: 12px;
	box-shadow: none;
	font-size: 18px;
	line-height: 1;
}

.cs2766-comment-composer.cs2766-comment-composer--detail button.cs2772-comment-emoji {
	width: 42px;
	padding: 0;
	gap: 0;
}

.cs2766-comment-composer.cs2766-comment-composer--detail button.cs2772-comment-emoji span { display: none; }

.cs2766-comment-composer .cs2772-comment-emoji:hover,
.cs2766-comment-composer .cs2772-comment-emoji:focus-visible {
	color: #c90035;
	background: #fce9ef;
	border-color: rgba(201, 0, 53, .35);
	outline: 3px solid rgba(201, 0, 53, .13);
	outline-offset: 2px;
}

@media (max-width: 575px) {
	.cs2772-emoji-popover {
		top: auto !important;
		right: 8px;
		bottom: max(8px, env(safe-area-inset-bottom));
		left: 8px !important;
		width: auto;
		border-radius: 20px;
	}

	.cs2772-emoji-popover emoji-picker {
		width: 100%;
		height: min(62vh, 430px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cs2772-emoji-loading span { animation: none; }
}
