/* disable responsive button up */
.no-responsive {
	display: block;
}
/* emoji line view */
.post_react_display {
	display: flex;
	width: 100%;
	margin: 10px 0;
	overflow: hidden;
	justify-content: flex-start;
}
.post_react_display.right {
	flex-direction: row-reverse;
}
.post_react_display.left {
	flex-direction: row;
}
/* colour change button while hovering */
a.react-toggle:hover .pr_smile_svg_plus {
	fill: #0A8ED0 !important;
	stroke: #0ad00e !important;
}
a.react-toggle:hover .pr_smile_svg {
	fill: #0A8ED0 !important;
}
/* */
.img_post_react_display_memberlist {
	float: left;
	position: relative;
	margin-right: 5px;
}
.img_post_react_display {
	position: relative;
	margin-right: -8px;
	transition: margin-right 0.5s ease;
}
.img_post_react_display:first-child {
	margin-right: 0;
}
.post_react_display:hover .img_post_react_display {
	margin-right: 8px;
}

.img_post_react_display.left {
	margin-right: 0;
	margin-left: -8px;
	transition: margin-left 0.5s ease;
}
.img_post_react_display.left:first-child {
	margin-left: 0;
}
.post_react_display:hover .img_post_react_display.left {
	margin-right: 0;
}
/* hide the container when it has no icons to show, so it doesn't reserve vertical space */
.post_react_display.pr-empty {
	display: none;
}

.bubble_post_react_display,
.bubble_post_react_display_b,
.bubble_post_react_display_bb {
	position: absolute;
	top: 0;
	right: 0;
	background-color: red;
	border: 1px solid #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	border-radius: 50%;
	color: white;
	font-size: 8px;
}
.bubble_post_react_display    { width: 12px; height: 12px; }
.bubble_post_react_display_b  { width: 16px; height: 14px; }
.bubble_post_react_display_bb { width: 18px; height: 14px; }

.already_reacted_pr {
	position: relative;
	display: inline-flex;
	background-color: rgba(92, 193, 138, 0.18);
	border: 1px solid rgba(92, 193, 138, 0.45);
	border-radius: 10px;
}
.already_reacted_pr_txt {
	position: relative;
	display: block;
	background-color: rgba(92, 193, 138, 0.14);
	border: 1px solid rgba(92, 193, 138, 0.35);
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 11px;
}
/* viewforum */
.f_post_react_display {
	display: inline-block;
	position: relative;
	left: 15px;
}
.f_post_react_display img{
	margin-right: -7px;
	transition: margin-right 0.5s ease;
}
.f_post_react_display:hover img{
	margin-right: 1px;
	transition: margin-right 0.5s ease;
}
/* responsive */
@media (max-width: 870px) {
	.f_post_react_display {
		display: none;
	}	
}
@media (max-width: 700px) {
	.f_post_react_display {
		display: block;
		position: sticky;
		float: right;
		right: 20px;
	}	
}
@media (max-width: 380px) {
	.f_post_react_display {
		display: none;
	}	
}
/* Close button - no external image needed */
.alert_close,
.pr-alert-close {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: #6b7c8f;
	background: transparent;
	text-decoration: none !important;
	cursor: pointer;
	z-index: 10052;
	transition: background 0.15s, color 0.15s;
}
.alert_close:hover,
.pr-alert-close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #1f2937;
	text-decoration: none !important;
}
/* Overlay - single instance, body-level */
.pr-darken-overlay,
#pr-darken {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.55) !important;
    z-index: 100050 !important;
    cursor: pointer;
}
.pr-darken-overlay.is-open,
#pr-darken.is-open,
.pr-darken-overlay[style*="block"],
#pr-darken[style*="block"] {
    display: block !important;
}

.phpbb_confirm[id^="phpbb_confirm_"] {
    display: none !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    background-color: #ffffff !important;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    padding: 20px 24px;
    z-index: 100051 !important;
    width: min(520px, 92vw) !important;
    max-width: 92vw !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    margin: 0 !important;
}
.phpbb_confirm[id^="phpbb_confirm_"].is-open,
.phpbb_confirm[id^="phpbb_confirm_"][style*="block"] {
    display: block !important;
}

/* Count + icon share one click target */
a.toggle-react-summary {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    text-decoration: none !important;
}
a.toggle-react-summary .bubble_post_react_display,
a.toggle-react-summary .bubble_post_react_display_b,
a.toggle-react-summary .bubble_post_react_display_bb {
    position: relative;
    float: none;
}



.alert_text h3 {
    margin-top: 0;
}

.post_react_explain_container {
    display: flex;
    align-items: center;
    width: 98%;
    padding: 5px;
    border-radius: 5px;
}
.post_react_explain_container:hover {
    background-color: #F6F4D0;
}

.post_react_explain {
    flex: 0 1 auto; 
    margin-right: 10px; 
}

.post_react_list {
    flex: 1 1 auto; 
}

.post_react_button.right {
	float: right;
}

/* Prepare the text for a smooth transition */
.postreact-button-hover-text
{
	display: inline-block;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: middle;
	margin-left: 0;
	transition: max-width 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-left 0.3s ease-in-out;
}

/* hover label disabled — GTAForums-style icon-only */

/* Set the button to inline-flex to remove HTML whitespace gaps */
.react-toggle
{
	display: inline-flex;
	align-items: flex-end;
}
/* br line between low button and emoji-line */
.clear_pr {
	clear: both;
	margin-bottom: 5px;
}
/* big button emoji-inline — size overridden by 28x28 react-toggle rules below */
/* highlight the react-toggle button when the user has already reacted to this post */
a.react-toggle.has-reacted .pr_smile_svg {
	fill: #0A8ED0 !important;
	border-color: #0A8ED0 !important;
}
a.react-toggle.has-reacted .pr_smile_svg_plus {
	fill: #0A8ED0 !important;
	stroke: #0ad00e !important;
}

/* =========================================================
   Reactor names summary â€” e.g. "Alice, Bob and 3 others"
   ========================================================= */
.pr-names-summary {
	display: inline-flex;
	align-items: center;
	max-width: min(360px, 70%);
	margin: 0;
	padding: 2px 0;
	vertical-align: middle;
	font-size: 12px;
	line-height: 1.35;
	color: #5b6b7c;
}
.pr-names-link {
	display: inline;
	color: inherit;
	text-decoration: none !important;
	cursor: pointer;
}
.pr-names-link:hover {
	color: #1f2937;
	text-decoration: underline !important;
}
.pr-name-src { display: none !important; }
.pr-reactor-name {
	white-space: nowrap;
}
.pr-others {
	white-space: nowrap;
	opacity: 0.85;
	font-weight: 500;
}
html.phpbb-dark-mode .pr-names-summary,
body.dark-mode .pr-names-summary {
	color: #b6c2cf;
}
html.phpbb-dark-mode .pr-names-link:hover,
body.dark-mode .pr-names-link:hover {
	color: #f3f4f6;
}
html.phpbb-dark-mode .pr-others,
body.dark-mode .pr-others {
	opacity: 0.9;
	color: #94a3b8;
}
@media (max-width: 520px) {
	.pr-names-summary {
		display: block;
		max-width: 100%;
		margin: 6px 0 0;
	}
}


/* Modal dark mode */
html.phpbb-dark-mode .phpbb_confirm,
body.dark-mode .phpbb_confirm {
	background-color: #171b24;
	border-color: #353457;
	color: #CCCCCC;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
html.phpbb-dark-mode .alert_close,
html.phpbb-dark-mode .pr-alert-close,
body.dark-mode .alert_close,
body.dark-mode .pr-alert-close {
	color: #94a3b8;
}
html.phpbb-dark-mode .alert_close:hover,
html.phpbb-dark-mode .pr-alert-close:hover,
body.dark-mode .alert_close:hover,
body.dark-mode .pr-alert-close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #CCCCCC;
}
html.phpbb-dark-mode .post_react_explain_container:hover,
body.dark-mode .post_react_explain_container:hover {
	background-color: #243039;
}


/* =========================================================
   IPS-style reaction bar (GTAForums-like)
   names first, then stacked icons + total count pill
   ========================================================= */
.post_react_display.pr-ips-style {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	width: 100%;
	margin: 8px 0 4px;
	overflow: visible;
}
.post_react_display.pr-ips-style.right {
	flex-direction: row;
	justify-content: flex-end;
}
.post_react_display.pr-ips-style.left {
	flex-direction: row;
	justify-content: flex-start;
}
.post_react_display.pr-ips-style .pr-names-summary {
	margin: 0;
	max-width: min(420px, 65%);
	order: 1;
}
.post_react_display.pr-ips-style .pr-react-pill {
	order: 2;
}
.post_react_display.pr-ips-style .pr-react-btn-wrap {
	order: 0;
	margin: 0;
}
.pr-react-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px 3px 4px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.06);
	text-decoration: none !important;
	color: #445566;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.pr-react-pill:hover {
	background: rgba(0, 0, 0, 0.1);
	border-color: rgba(0, 0, 0, 0.1);
	color: #1f2937;
}
.pr-react-pill-icons {
	display: inline-flex;
	align-items: center;
}
.pr-react-pill-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
	margin-left: -6px;
	object-fit: contain;
}
.pr-react-pill-icon:first-child {
	margin-left: 0;
}
.pr-react-pill-count {
	font-size: 12px;
	font-weight: 600;
	min-width: 0.75em;
	padding: 0 2px;
}
html.phpbb-dark-mode .pr-react-pill,
body.dark-mode .pr-react-pill,
.fd_dark .pr-react-pill {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.08);
	color: #c9d4e0;
}
html.phpbb-dark-mode .pr-react-pill:hover,
body.dark-mode .pr-react-pill:hover,
.fd_dark .pr-react-pill:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #f3f4f6;
}
html.phpbb-dark-mode .pr-react-pill-icon,
body.dark-mode .pr-react-pill-icon,
.fd_dark .pr-react-pill-icon {
	background: #1c252c;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

/* Thumbs-up react button */
a.react-toggle .pr-thumb-btn {
	display: block;
	vertical-align: middle;
}
a.react-toggle:hover .pr_thumb_hand,
a.react-toggle:hover .pr_thumb_up,
a.react-toggle.has-reacted .pr_thumb_hand,
a.react-toggle.has-reacted .pr_thumb_up {
	fill: #0A8ED0 !important;
}
a.react-toggle:hover .pr_thumb_bg,
a.react-toggle.has-reacted .pr_thumb_bg {
	fill: #D6EBFF !important;
}




/* GTAForums-like react trigger: 28x28 icon only, no hover label */
a.react-toggle,
a.button.react-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	border-radius: 8px !important;
	line-height: 0 !important;
	vertical-align: middle;
	overflow: hidden;
}
a.react-toggle .postreact-button-hover-text {
	display: none !important;
	max-width: 0 !important;
	opacity: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}
a.react-toggle .pr-thumb-btn,
a.react-toggle .pr_svg_style,
a.react-toggle .pr-svg-style-big {
	display: block !important;
	width: 28px !important;
	height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	border-radius: 8px !important;
	box-sizing: border-box !important;
	vertical-align: middle;
}
a.react-toggle:hover .pr-thumb-btn,
a.react-toggle:hover .pr-svg-style-big {
	background: rgba(0, 0, 0, 0.05) !important;
}
.fd_dark a.react-toggle:hover .pr-thumb-btn,
.fd_dark a.react-toggle:hover .pr-svg-style-big,
html.fd_dark a.react-toggle:hover .pr-thumb-btn,
body.fd_dark a.react-toggle:hover .pr-thumb-btn,
html.phpbb-dark-mode a.react-toggle:hover .pr-thumb-btn,
body.dark-mode a.react-toggle:hover .pr-thumb-btn {
	background: rgba(255, 255, 255, 0.08) !important;
}
.pr-svg-style-big {
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	vertical-align: middle;
	background-color: transparent;
	padding: 0;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}
.pr-svg-style-big:hover {
	background-color: rgba(0, 0, 0, 0.05);
	cursor: pointer;
}

/* Who reacted modal - Milk_v2 light + fd_dark (forum colors, not GTAForums) */
.phpbb_confirm.pr-who-reacted {
	width: min(640px, 94vw) !important;
	max-width: 94vw !important;
	padding: 0 !important;
	overflow: hidden !important;
	border-radius: 12px !important;
	background-color: #FFFFFF !important;
	border: 1px solid #e1e7ee !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
	color: #2c3e50 !important;
}
.pr-who-reacted .pr-who-body { padding: 16px 16px 12px; }
.pr-who-title {
	margin: 0 36px 12px 0 !important;
	padding: 0 !important;
	border: none !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #28313F !important;
}
.pr-who-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 10px;
	border-bottom: 1px solid #e1e7ee;
}
.pr-who-tab {
	appearance: none;
	border: none;
	background: transparent;
	color: #6b7c8f;
	font-size: 12px;
	padding: 8px 10px;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.2;
}
.pr-who-tab:hover { background: rgba(0,0,0,0.04); color: #28313F; }
.pr-who-tab.is-active { background: #eef2f6; color: #28313F; font-weight: 600; }
.pr-who-tab-icon { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.pr-who-tab-count { opacity: 0.75; font-weight: 500; }
.pr-who-panels { max-height: min(52vh, 420px); overflow-y: auto; padding: 4px 2px 8px; }
.pr-who-panel[hidden] { display: none !important; }
.pr-who-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; }
.pr-who-row:hover { background: rgba(0,0,0,0.03); }
.pr-who-avatar img, .pr-who-avatar .avatar {
	width: 36px !important; height: 36px !important; border-radius: 8px; object-fit: cover; display: block;
}
.pr-who-avatar-fallback { display: block; width: 36px; height: 36px; border-radius: 8px; background: #eef2f6; }
.pr-who-meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pr-who-name { font-weight: 600; font-size: 13px; color: #28313F; }
.pr-who-name a { color: inherit; text-decoration: none; }
.pr-who-time { font-size: 11px; color: #6b7c8f; margin-top: 2px; }
.pr-who-row-react { margin-left: auto; opacity: 0.9; }
.pr-who-empty { margin: 12px 6px; color: #6b7c8f; font-size: 13px; }
.pr-who-reacted .alert_close,
.pr-who-reacted .pr-alert-close { color: #6b7c8f; }
.pr-who-reacted .alert_close:hover,
.pr-who-reacted .pr-alert-close:hover { background: rgba(0,0,0,0.06); color: #28313F; }

/* Milk dark (fd_dark) - forum palette */
html.fd_dark .phpbb_confirm.pr-who-reacted,
body.fd_dark .phpbb_confirm.pr-who-reacted,
.fd_dark .phpbb_confirm.pr-who-reacted {
	background-color: #171b24 !important;
	border-color: #353457 !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
	color: #CCCCCC !important;
}
html.fd_dark .pr-who-title,
body.fd_dark .pr-who-title,
.fd_dark .pr-who-title { color: #CCCCCC !important; }
html.fd_dark .pr-who-tabs,
body.fd_dark .pr-who-tabs,
.fd_dark .pr-who-tabs { border-bottom-color: #353457; }
html.fd_dark .pr-who-tab,
body.fd_dark .pr-who-tab,
.fd_dark .pr-who-tab { color: #838b98; }
html.fd_dark .pr-who-tab:hover,
body.fd_dark .pr-who-tab:hover,
.fd_dark .pr-who-tab:hover {
	background: rgba(255,255,255,0.06);
	color: #CCCCCC;
}
html.fd_dark .pr-who-tab.is-active,
body.fd_dark .pr-who-tab.is-active,
.fd_dark .pr-who-tab.is-active {
	background: #2d2b4d;
	color: #FFFFFF;
}
html.fd_dark .pr-who-name,
body.fd_dark .pr-who-name,
.fd_dark .pr-who-name { color: #CCCCCC; }
html.fd_dark .pr-who-time,
body.fd_dark .pr-who-time,
.fd_dark .pr-who-time,
html.fd_dark .pr-who-empty,
body.fd_dark .pr-who-empty,
.fd_dark .pr-who-empty { color: #838b98; }
html.fd_dark .pr-who-row:hover,
body.fd_dark .pr-who-row:hover,
.fd_dark .pr-who-row:hover { background: rgba(255,255,255,0.04); }
html.fd_dark .pr-who-avatar-fallback,
body.fd_dark .pr-who-avatar-fallback,
.fd_dark .pr-who-avatar-fallback { background: #29283f; }
html.fd_dark .pr-who-reacted .alert_close,
body.fd_dark .pr-who-reacted .alert_close,
.fd_dark .pr-who-reacted .alert_close,
html.fd_dark .pr-who-reacted .pr-alert-close,
body.fd_dark .pr-who-reacted .pr-alert-close,
.fd_dark .pr-who-reacted .pr-alert-close { color: #838b98; }
html.fd_dark .pr-who-reacted .alert_close:hover,
body.fd_dark .pr-who-reacted .alert_close:hover,
.fd_dark .pr-who-reacted .alert_close:hover,
html.fd_dark .pr-who-reacted .pr-alert-close:hover,
body.fd_dark .pr-who-reacted .pr-alert-close:hover,
.fd_dark .pr-who-reacted .pr-alert-close:hover {
	background: rgba(255,255,255,0.08);
	color: #CCCCCC;
}

/* Fallback if board uses phpbb-dark-mode / dark-mode without fd_dark class */
html.phpbb-dark-mode .phpbb_confirm.pr-who-reacted,
body.dark-mode .phpbb_confirm.pr-who-reacted {
	background-color: #171b24 !important;
	border-color: #353457 !important;
	color: #CCCCCC !important;
}
html.phpbb-dark-mode .pr-who-title,
body.dark-mode .pr-who-title { color: #CCCCCC !important; }
html.phpbb-dark-mode .pr-who-tabs,
body.dark-mode .pr-who-tabs { border-bottom-color: #353457; }
html.phpbb-dark-mode .pr-who-tab,
body.dark-mode .pr-who-tab { color: #838b98; }
html.phpbb-dark-mode .pr-who-tab:hover,
body.dark-mode .pr-who-tab:hover { background: rgba(255,255,255,0.06); color: #CCCCCC; }
html.phpbb-dark-mode .pr-who-tab.is-active,
body.dark-mode .pr-who-tab.is-active { background: #2d2b4d; color: #FFFFFF; }
html.phpbb-dark-mode .pr-who-name,
body.dark-mode .pr-who-name { color: #CCCCCC; }
html.phpbb-dark-mode .pr-who-time,
body.dark-mode .pr-who-time,
html.phpbb-dark-mode .pr-who-empty,
body.dark-mode .pr-who-empty { color: #838b98; }
html.phpbb-dark-mode .pr-who-row:hover,
body.dark-mode .pr-who-row:hover { background: rgba(255,255,255,0.04); }
html.phpbb-dark-mode .pr-who-avatar-fallback,
body.dark-mode .pr-who-avatar-fallback { background: #29283f; }
