/**
 *
 * Topic/Post Reactions. An extension for the phpBB 3.2.0 Forum Software package.
 * @author Steve <http://steven-clark.online>
 * @copyright (c) phpBB Limited <https://phpbb.com>
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 */

.centered {
	text-align: center;
}

.reactions {
	margin-top: 5px;
	padding: 3px 0;
	border-top: 1px dashed #CCCCCC;
}

.reaction-avatar img {
	max-height: 30px;
	vertical-align: middle;
	width: auto;
	margin-left: 5px;
}

.reaction_count {
	margin-left: -5px;
	background-color: #faebd700;
	color: #12a3eb;
	font-size: larger;
}

.reaction_disabled, .reaction_enabled {
	margin: 2px;
	border-radius: 10px;
	padding: 5px 7px;
	text-align: center;
}

.reaction_disabled, .reaction_delete {
	background-color: #ECD5D8 !important;
}

.reaction_enabled {
	background-color: #80FF40 !important;
}

.reaction-image-pages {
	width: 35px;
	height: 35px;
	vertical-align: middle;
	padding: 3px;
}

img.reaction-notification {
	max-width: 30px !important;
	max-height: 30px !important;
	border-radius: 15px;
}

.reaction_image {
	vertical-align: middle;
	float: right;
	border-radius: 20px;
}

.reaction_image_size, .reaction_image_select {
	width: 40px;
	height: 40px;
	border-radius: 20px;
}

.reaction_inner {
	background-color: #fffefc !important;
}

.user_alert {
	padding-bottom: 1px;
	border-bottom: 2px dashed #D31141;
	margin-bottom: 2px;
	float: right;
}

.resync {
	padding: 2px 1px 3px 3px;
	margin-top: 2px;
}

.icon-tpr {
	padding: 3px;
	margin: 0 1px 0 2px;
	float: right;
	color: #fff;
}

.icon-tpr-resync {
	padding: 0 1px 0 2px;
}

.tpr-font, .tpr-font:active a, .tpr-font:hover a, .tpr-font a {
	font-size: 15px;
	color: #12a3ebd9;
	background-color: #cabda600;
}

.user_alert_new {
	padding-bottom: 1px;
	float: right;
}

.has-profile .post-buttons .tpr-button{
	right: 70px !important;
}

/*  network */
.reaction-panel {
	background: #fff;
	float: right;
	border-radius: 3px;
	margin-top: -5px;
	padding: 3px;	
}

.reaction-count { 
	margin-top: -9px;
	margin-right: -12px;
	border-radius: 25% !important;
}

/* Responsive */

/* Фикс ТОЛЬКО для iPhone/iPad (Safari/WebKit iOS 18+) */
@supports (-webkit-touch-callout: none) {
	/* Ваш любимый рабочий зеркальный ряд */
	.reactions {
		display: flex !important;
		flex-direction: row-reverse !important; 
		flex-wrap: nowrap !important; 
		align-items: center !important;
		justify-content: flex-start !important; 
		width: 100% !important;               
		box-sizing: border-box !important;
	}

	.reaction-panel {
		display: flex !important;
		flex-direction: row-reverse !important; 
		flex-wrap: nowrap !important; 
		align-items: center !important;
		justify-content: flex-start !important; 
		margin-left: auto !important;           
		float: right !important;
	}
	
	.reactions *, 
	.reaction-panel *,
	.reaction-button-show { 
		display: inline-flex !important; 
		flex-direction: row-reverse !important; 
		white-space: nowrap !important;
		float: none !important;
	}
	
	/* ЖЕСТКОЕ СКРЫТИЕ ПОЛЕТЕВШЕГО СЧЕТЧИКА ПОЛЬЗОВАТЕЛЯ "0>" ИЛИ "1>" НА IPHONE */
	/* Находим этот класс в разметке и полностью выключаем его отображение на мобильных Apple */
	.reactions .tpr-font,
	.reactions span.tpr-font,
	.reactions a.tpr-font {
		display: none !important;
		font-size: 0 !important;
		width: 0 !important;
		height: 0 !important;
		opacity: 0 !important;
		visibility: hidden !important;
	}
	
	.reactions img, 
	.reaction-panel img {
		display: inline-block !important;
		float: none !important; 
	}
}

/* Изменение размеров иконок на маленьких экранах (для всех устройств) */
@media (max-width: 430px) {
	.reaction_image {
		width: 25px !important;
		height: 25px !important;
	}
	.reaction_image_select {
		width: 30px !important;
		height: 30px !important;
	}
}
