/*Красивый курсив в постах*/
.mycode_i { font-family: LoraItalic;}

/*Вкладки в профиле*/
.userinfomt, 
.tab-content2, ul.tabs li {
background: #eddbb1 url(../../../rusmagic/images/bgtexture.jpg);
border: 1px solid rgba(169, 148, 104, 0.8);}

.container2 {
			margin: 0 auto;
		}

		ul.tabs{
			margin: 0px;
			padding: 0px;
			list-style: none;
		}
		ul.tabs li{
			display: inline-block;
			padding: 10px 15px;
			cursor: pointer;
			border-bottom: none;
                        color: #371c04;
		}

		ul.tabs li.current {
                color: #ecd9af;
                 background: rgba(169, 148, 104, 0.3);
                 border: 1px solid rgba(169, 148, 104, 0.8);
                 border-bottom: none;}

		.tab-content2{
			display: none;
			padding: 15px;
		}

		.tab-content2.current {display: inherit;}

/* Свои BB-коды в быстром ответе. */
.custom_bbcodes {
	padding: 5px;
}

.button-container {
	display: flex;
	flex-wrap: wrap; /* Автоматически переносит кнопки на новую строку, если не хватает места */
	gap: 6px; /* Расстояние между кнопками */
	align-items: center; /* Центрирует кнопки по вертикали */
        justify-content: center;  /* Центрирует кнопки по horzontal */
}

.custom-bbcode-button {
	padding: 3px;
	margin: 0;
	box-sizing: border-box; /* Учитывает паддинг и бордер в общей ширине */
	height: 30px;
	vertical-align: middle;
	position: relative;
        background: #a994684d;
    border: 1px solid rgba(169, 148, 104, 0.8);
}

.custom-bbcode-span {
	padding: 3px;
	margin: 0;
	box-sizing: border-box; /* Учитывает паддинг и бордер в общей ширине */
	vertical-align: middle;
	background: #856e42;
	color: #e6dbc6;
	display: block;
}

.custom-bbcode-select {
	display: block;
	padding: 3px;
	margin: 0;
	box-sizing: border-box; /* Учитывает паддинг и бордер в общей ширине */
}

.custom-bbcode-span:hover {
	background:#55432f;
	cursor: pointer;
}

.custom-bbcode-popup-menu {
	cursor: default;
}

.custom-bbcode-popup-menu, .custom-bbcode-dropdown-menu {
	flex-direction: column; /* Если нужно вертикальное размещение */
	gap: 10px; /* Отступ между элементами */
	display: none;
	position: absolute;
        right: -200px;
	background-color: #a99468;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
	padding: 10px;
	margin-top: 5px;
	min-width: 200px;
	max-height:250px;
	overflow:auto;
	border: 1px solid #55432f;
}

.custom-bbcode-popup-menu > button {
	width: 100%;
}

.custom-bbcode-dropdown-menu > button {
	display: block;
	background-color: #4CAF50;
	color: white;
	padding: 5px;
	width: 100%;
	border: none;
	cursor: pointer;
	text-align: left;
}

/* Кастомные ББ-коды в плюсике*/

.custom-bbcode-popup-menu-embeded {
    position: relative;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-bottom: 5px;
	margin-top: 5px;
}

.size-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.size-inputs > * {
    flex: 1;
    min-width: 0; /* чтобы корректно сжимались */
}

/* Репутация */
.achv_row:hover {
    background-color: #f9f9f9; /* Слегка изменяем фон */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Увеличиваем тень */
    cursor: pointer; /* Меняем курсор на указатель (если это кликабельный элемент) */
}
/* При нажатии (активном состоянии) */
.achv_row:active {
    background-color: #f0f0f0; /* Делаем фон темнее */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Уменьшаем тень, создавая эффект вдавливания */
}

.card_achv_description {
	margin-top: 10px;
	flex-basis: 100%;
}

.card_achv {
	margin-right: 10px;
	width: 40px;	
}

.total_rep {
	cursor: pointer;
	color: #1d1d1d;
        font-weight: bold;
}

.reputation-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0;
}

.reputation-item {
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: 250px;
}

.reputation-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.reputation-userinfo {
	display: flex;
	flex-direction: column;
}

.reputation-username {
	font-weight: bold;
	font-size: 0.9em;
}

.reputation-value {
	font-size: 0.8em;
	text-align: center;
}

.reputation-value.positive {
	color: green;
}

.reputation-value.negative {
	color: red;
}

.reputation-comment {
	font-size: 0.8em;
	color: #666;
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.reputation_info {
background: #dac79b;
    border: 1px solid #a99468;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    max-height: 300px;
    overflow-y: auto;
    width: 200px;
}
}


.reputation-container {
	display: flex;
	flex-direction: column; /* Элементы в столбик */
	gap: 10px;
	margin: 10px 0;
	max-height: 100%;      /* Наследует max-height родителя */
	overflow-y: auto;      /* Прокрутка внутри контейнера (если нужно) */
}

.reputation-item {
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;       /* Занимает всю ширину */
	padding: 5px;
}

.reputation-item img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;        /* Чтобы аватарка не сжималась */
}

.reputation-comment {
	font-size: 0.8em;
	color: #666;
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}



/* 18+ плашка */
#age_verifier_main_wrapper {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.78);
	display: flex;
	justify-content: center;
	align-items: center;
}

#age_verifier_sub_wrapper {
	background: #23222a;
	padding: 32px 28px 24px 28px;
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 280px;
	max-width: 90vw;
	color: #fff;
	font-family: sans-serif;
}

#age_verifier_text {
	margin-bottom: 22px;
	font-size: 1.17em;
	text-align: center;
	line-height: 1.4;
}


/*Изменение размера шрифта и уведомления */
#font_size_changer, .font_size_changer_button, .font_size_changer_view,
#user_notifications_button {
	background: #a99468;
	border: 1px solid #371c04a8;
	color: #371c04;
}

#user_notifications, #font_size_changer {
width: 36px;
	position: fixed;
	right: 20px;
}


#font_size_changer {
	top: 20%;
	transform: translateY(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 0;
}

.font_size_changer_button {
	width: 100%;  /* ← Занимают всю ширину родителя */
	height: 36px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: all 0.2s ease;
	margin: 0;  /* ← Убираем внешние отступы */
	padding: 0; /* ← Убираем внутренние отступы */
}

.font_size_changer_view {
	width: 100%;  /* ← Совпадает с кнопками */
	height: 36px; /* ← Фиксированная высота как у кнопок */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	border-top: 1px solid #371c04a8;
	border-bottom: 1px solid #371c04a8;
	margin: 0;  /* ← Убираем отступы */
	box-sizing: border-box; /* ← Учитываем границы в ширине */
}


/* Уведомления */
#user_notifications {display: none; top: 30%;}

#user_notifications_mark_all {
 color: #280f08;
text-align: center;
    width: 100%;
    display: block;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

#user_notifications_wrapper {
	position: absolute;
	right: 0;
	top: 100%;
	width: 300px;
	max-height: 400px;
	overflow-y: auto;
background: #c4ad82;
    border: 1px solid #55432fba;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 1000;
	display: none;
	padding: 5px 0;
}

#user_notifications_list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#user_notifications_list li {
	padding: 8px 12px;
	border-bottom: 1px solid #55432fba;
}

#user_notifications_list li:last-child {border-bottom: none;}
#user_notifications_list li.notification_0 {background-color: #a99468;}
#user_notifications_list li.notification_1 {background-color: #a99468;}

#user_notifications_list li a {
        color: #55432f;
	text-decoration: none;
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	text-overflow: clip;
}

#user_notifications_list li a:hover {color: #371c04;}

#user_notifications_counter {
    background-color: #d9534f;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    margin: 3.5px;
}


/*Дни рождения*/
.birthday_alert {
	background: #DCE6F2;
	border-left: 3px solid #39415E;
	border-right: 1px solid rgba(162, 235, 255, 0.5);
	border-top: 1px solid rgba(162, 235, 255, 0.5);
	border-bottom: 1px solid rgba(162, 235, 255, 0.5);
	padding: 6px 10px;
	margin: 0px 0px 10px 0px;
	border-radius: 3px;
	font-size: 13px;
	line-height: 1.4;
}
.birthday-title {
	font-weight: bold;
	color: #333;
}
.birthday-user {
	color: #428bca;
	text-decoration: none;
	margin-right: 3px;
}
.birthday-user:hover {
	text-decoration: underline;
}
.birthday-user+a.birthday-user:before {
	content: ", ";
	color: #333;
}
.birthday-users {
	white-space: break-spaces;
}
.birthday-message {
	display: block;
	margin-top: 5px;
	font-style: italic;
	color: #666;
}

/*Загрузка изображений с фиксированным размером*/
#custom-bbcode-image-number-wrapper {
	display: flex;
}

#custom-bbcode-image-number-wrapper > input {
	width: 125px;
}