/* PostReaction picker - Milk_v2 light + fd_dark */
.popup-container_pr summary {
	list-style: none;
	cursor: pointer;
	border: none;
	outline: none;
}
.pr_svg_style {
	width: 18px;
	vertical-align: bottom;
}
.react-toggle {
	position: relative;
}
.react-toggle.spaced {
	margin-top: 10px;
}
.container_pr {
	position: relative;
}

.popup_pr {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 10px;
	width: max-content;
	max-width: min(420px, 92vw);
	min-width: 200px;
	background: #FFFFFF;
	border: 1px solid #e1e7ee;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(16, 18, 22, 0.14);
	z-index: 999;
	padding: 10px;
}
.popup_pr--low { margin-top: 30px; }
.popup_pr--low.left { margin-top: 5px; }
.popup_pr--emoji-level { margin-top: 45px; }
.popup_pr.left {
	right: inherit !important;
	left: 0 !important;
}

.arrow_pr {
	position: absolute;
	top: -7px;
	right: 14px;
	width: 12px;
	height: 12px;
	background: #FFFFFF;
	border-left: 1px solid #e1e7ee;
	border-top: 1px solid #e1e7ee;
	transform: rotate(45deg);
	border-bottom: none;
	border-right: none;
}
.arrow_pr.left {
	left: 14px !important;
	right: auto !important;
}

.popup-content_pr {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.pr-picker-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: flex-start;
}
.popup-content_pr a.post-react {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #f7f9fb;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
	text-decoration: none !important;
}
.popup-content_pr a.post-react:hover {
	background: #eef2f6;
	border-color: #e1e7ee;
	transform: translateY(-1px);
}
.popup-content_pr a.post-react img {
	margin: 0 !important;
	width: 24px;
	height: 24px;
	object-fit: contain;
}
.already_reacted_pr {
	display: inline-flex !important;
	border-radius: 10px !important;
	background: rgba(92, 193, 138, 0.18) !important;
	border: 1px solid rgba(92, 193, 138, 0.45) !important;
	padding: 0 !important;
}
.already_reacted_pr a.post-react {
	background: transparent;
	border-color: transparent;
}
.already_reacted_pr_txt {
	position: static !important;
	display: block !important;
	left: auto !important;
	transform: none !important;
	background: rgba(92, 193, 138, 0.14) !important;
	border: 1px solid rgba(92, 193, 138, 0.35) !important;
	border-radius: 8px !important;
	padding: 6px 10px !important;
	font-size: 11px;
	color: #2c3e50;
	text-align: center;
}

.popup-container_pr[open] .popup_pr { display: block; }
.link-image_pr { cursor: pointer; }
.dropdown-contents { z-index: 4 !important; }

@media (max-width: 700px) {
	.popup_pr--emoji-level,
	.popup_pr--low { margin-right: 60px !important; }
	.popup_pr { margin-right: 30px; transform: translateX(60px); }
	.arrow_pr { right: 35px; }
	.arrow_pr--low,
	.arrow_pr--emoji-level { right: 15px; }
}

html.fd_dark .popup_pr,
body.fd_dark .popup_pr,
.fd_dark .popup_pr,
html.phpbb-dark-mode .popup_pr,
body.dark-mode .popup_pr {
	background: #171b24;
	border-color: #353457;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}
html.fd_dark .arrow_pr,
body.fd_dark .arrow_pr,
.fd_dark .arrow_pr,
html.phpbb-dark-mode .arrow_pr,
body.dark-mode .arrow_pr {
	background: #171b24;
	border-left-color: #353457;
	border-top-color: #353457;
}
html.fd_dark .popup-content_pr a.post-react,
body.fd_dark .popup-content_pr a.post-react,
.fd_dark .popup-content_pr a.post-react,
html.phpbb-dark-mode .popup-content_pr a.post-react,
body.dark-mode .popup-content_pr a.post-react {
	background: #2d2b4d;
	border-color: transparent;
}
html.fd_dark .popup-content_pr a.post-react:hover,
body.fd_dark .popup-content_pr a.post-react:hover,
.fd_dark .popup-content_pr a.post-react:hover,
html.phpbb-dark-mode .popup-content_pr a.post-react:hover,
body.dark-mode .popup-content_pr a.post-react:hover {
	background: #352f66;
	border-color: #353457;
}
html.fd_dark .already_reacted_pr,
body.fd_dark .already_reacted_pr,
.fd_dark .already_reacted_pr,
html.phpbb-dark-mode .already_reacted_pr,
body.dark-mode .already_reacted_pr {
	background: rgba(92, 193, 138, 0.16) !important;
	border-color: rgba(92, 193, 138, 0.4) !important;
}
html.fd_dark .already_reacted_pr_txt,
body.fd_dark .already_reacted_pr_txt,
.fd_dark .already_reacted_pr_txt,
html.phpbb-dark-mode .already_reacted_pr_txt,
body.dark-mode .already_reacted_pr_txt {
	background: rgba(92, 193, 138, 0.12) !important;
	border-color: rgba(92, 193, 138, 0.3) !important;
	color: #CCCCCC !important;
}
