/* =========== TOPCOR © 2024 Centroarts.com =========== */

/* - DropDown - */
.dropdown {
	position: relative;
}

.dropdown.open .dropdown-box {
	display: block !important;
}

.dropdown-box {
	--scrollbar-bg: var(--dropdown-bg);

	position: absolute;
	top: 100%;
	right: 0;
	z-index: 110;
	width: 280px;
	background-color: var(--dropdown-bg);
	border-radius: var(--dropdown-radius);
	margin-top: var(--dropdown-margin);
	box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* - User Notify - */
@media (min-width: 992px) {
	.notify-drop-btn {
		padding: 8px;
		color: var(--link-head-color);
	}
}

.notify-drop-btn .ic-num {
	color: inherit;
}

.notify-box {
	width: 320px;
	overflow: hidden;
	color: var(--text-color);
}

.notify-box-head {
	display: flex;
	align-items: center;
	padding: 12px;
	border-bottom: var(--border-width) solid var(--border-color);
}

.notify-box-head .notify-box-head-title {
	flex: 1 1 auto;
	pointer-events: none;
	user-select: none;
}

.notify-box-head .notify-del-all,
.notify-box-head .notify-check-all {
	padding: 4px;
	height: 32px;
	width: 32px;
}

.notify-box-head-title:first-child {
	margin-left: 8px;
}

@media (min-width: 460px) {
	.notify-box-cont {
		max-height: 464px;
	}
}

@media (max-width: 459px) {
	.dropdown.open .notify-box {
		display: flex !important;
		flex-direction: column;
	}

	.notify-box-cont {
		flex: 1 1 auto;
		min-height: 0;
	}
}

.notify-list {
	padding: 8px 0;
}

.notify-item {
	padding-left: 52px;
	position: relative;
	font-size: var(--fs-sm);
	line-height: 20px;
}

.notify-item:not(:last-child) .notify-cont {
	border-bottom: var(--border-width) solid var(--border-color);
}

.notify-item:not(.unread) {
	opacity: 0.5
}

.notify-cont {
	padding: 12px;
	padding-left: 0;
}

.notify-cont .checkbox,
.notify-close-btn {
	position: absolute;
	left: 16px;
	top: 12px;
}

.notify-close-btn {
	width: 24px;
	height: 24px;
	border: 0 none !important;
	padding: 0;
	color: inherit !important;
	background: none !important;
	opacity: .2;
}

.notify-close-btn:hover {
	opacity: .4;
}

.notify-meta {
	display: flex;
	line-height: 16px;
	font-size: var(--fs-xsm);
	overflow: hidden;
	min-width: 0;
	pointer-events: none;
	user-select: none;
}

.notify-meta-item {
	display: flex;
	white-space: nowrap;
}

.notify-meta-item+.notify-meta-item {
	margin-left: 6px;
}

.notify-meta-item+.notify-meta-item::before {
	content: "";
	width: 4px;
	height: 4px;
	border: 2px solid;
	align-self: center;
	margin-right: 6px;
	border-radius: 50%;
	opacity: .5;
}

.notify-title {
	display: block;
	font-weight: bold;
	margin-bottom: 4px;
}

a.notify-title {
	color: inherit;
	text-decoration: none;
}

a.notify-title:hover {
	color: var(--primary-color);
}

.notify-box-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	flex-direction: column;
	text-align: center;
	min-height: 200px;
}

.notify-box-empty>svg {
	width: 48px;
	height: 48px;
	display: block;
	margin-bottom: 16px;
	fill: currentColor;
	opacity: .5;
}

.notify-box-empty>span {
	max-width: 200px;
}

/* - User Drop - */
.udrop-box {
	padding: var(--gap);
	background-color: rgba(var(--dark-drop-rgb), 1);
	color: var(--dark-drop-text);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.udrop-first>.btn {
	margin-top: var(--gap);
}

@media (min-width: 992px) {
	.udrop-box {
		padding: 20px;
		background-color: rgba(var(--dark-drop-rgb), 0.8);
	}
}

@media (max-width: 459px) and (max-height: 560px) {
	.udrop-box {
		overflow: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.udrop-head {
	display: flex;
	align-items: center;
	position: relative;
}

.udrop-head>a {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 12px;
	color: inherit !important;
	text-decoration: none !important;
}

.udrop-head>a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.udrop-head>a::after {
	content: attr(title);
	display: block;
	line-height: 16px;
	margin-top: 4px;
	font-size: var(--fs-sm);
}

.udrop-head>a>.fw-b {
	display: block;
	font-size: var(--body-font-size);
	line-height: 20px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.udrop-head>a::after,
.udrop-head>.ic2 {
	opacity: .5;
}

.udrop-head>.ic2 {
	max-width: 24px;
	min-width: 24px;
	transition: var(--opacity-animation);
}

.udrop-head:hover>.ic2 {
	opacity: .7;
}

.udrop-head-avatar {
	min-width: 40px;
	max-width: 40px;
	height: 40px;
	border-radius: var(--avatar-head-radius);
	background-color: var(--noavatar-dark-bg);
}

.udrop-menu {
	margin-top: var(--gap-min);
}

.udrop-menu li a {
	display: flex;
	align-items: center;
	line-height: 24px;
	padding: 14px 0;
	opacity: .8;
	transition: var(--opacity-animation);
	color: inherit !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.udrop-menu li a:hover {
	opacity: 1 !important;
}

.udrop-menu li:not(:first-child) {
	border-top: 1px solid var(--border-white);
}

.udrop-menu li a>.ic2 {
	width: 24px;
	height: 24px;
	margin-right: 10px;
}

.udrop-menu li a>.muted {
	font-style: normal;
	margin-left: auto;
	font-size: var(--fs-sm);
}

.udrop-menu li:last-child a {
	opacity: .5;
}

.udrop-menu li:last-child a:hover {
	opacity: .7;
}

@media (min-width: 460px) {
	.udrop-first>.btn {
		margin-top: 20px;
	}

	.udrop-menu {
		margin-top: 12px;
	}

	.udrop-menu li a {
		padding: 10px 0;
	}
}

@media (min-width: 460px) and (max-width: 991px) {
	.dropdown.open .udrop-box {
		display: flex !important;
	}

	.udrop-first {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-right: 28px;
		width: 100%;
		max-width: 45%;
		min-width: 0;
	}

	.udrop-menu {
		flex: 1 1 auto;
		margin-top: 0;
	}

	.udrop-first>.btn {
		max-width: 180px;
	}

	.udrop-head {
		flex-direction: column;
		min-width: 0;
		width: 100%;
	}

	.udrop-head>.ic2 {
		display: none;
	}

	.udrop-head>a {
		width: 100%;
		text-align: center;
	}

	.udrop-head-avatar {
		min-width: 100px;
		max-width: 100px;
		height: 100px;
		margin-bottom: 12px;
	}
}

/* - Edit - */
.icon_dots {
	width: 16px;
	height: 4px;
	display: flex;
	margin: 0 auto;
}

.icon_dots>i {
	width: 4px;
	height: 4px;
	background-color: var(--text-color);
	border-radius: 50%;
}

.icon_dots>i+i {
	margin-left: 2px;
}

@media (min-width: 992px) {
	.post__edit {
		position: relative;
	}

	.post__edit a {
		border-radius: 50%;
		border-bottom-left-radius: 1px;
		position: absolute;
		z-index: 154;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 26px;
		height: 26px;
		color: #fff !important;
		background-color: rgba(65, 65, 65, .8);
		opacity: 0;
		transition: opacity .2s ease .2s, transform .3s ease .4s;
		box-shadow: 0 0 .75rem 0 rgba(0, 0, 0, 0.5);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

	.post:hover .post__edit a,
	.poster:hover .post__edit a {
		opacity: 1;
		transform: translateY(-100%);
	}

	.post__edit a:hover {
		background-color: rgba(65, 65, 65, .9);
	}

	.post__edit .icon_dots>i {
		background-color: #fff;
	}
}

@media (max-width: 991px) {
	.post__edit {
		display: none;
	}
}

/* - Выпадающее меню кнопки редактировать - */
#dropmenudiv {
	padding: 10px 0;
	min-width: 140px;
	width: auto !important;
	opacity: 1 !important;
	display: none;
	font-size: var(--fs-sm);
	border-radius: 6px;
	box-shadow: 0 8px 40px -10px rgba(0, 0, 0, 0.3);
	background-clip: padding-box;
}

#dropmenudiv {
	background-color: rgba(var(--dark-drop-rgb), 0.9);
	color: var(--dark-drop-text);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

#dropmenudiv a {
	color: inherit !important;
	text-decoration: none !important;
	display: block;
	padding: 5px 20px;
	border: 0 none;
	white-space: nowrap;
}

#dropmenudiv a:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* - User Edit - */
.modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1050;
	display: none;
	outline: 0;
	overflow: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.modal-box {
	transition: opacity .2s ease, transform .2s ease;
	position: relative;
	z-index: 1051;
	width: 100%;
	outline: 0;
	transform: translateY(8px);
	opacity: 0;
}

html.uedit body {
	overflow: hidden;
}

html.uedit .modal-box {
	transform: translateY(0);
	opacity: 1;
}

.modal-head {
	height: 0;
	display: flex;
	justify-content: flex-end;
}

.modal-cont {
	padding-top: 48px;
}

.modal-title {
	font-size: var(--fs-xl);
	font-weight: bold;
	line-height: 1.3;
	margin-bottom: 24px;
}

.modal-close {
	padding: 8px;
	width: 40px;
	height: 40px;
	margin: 8px;
	cursor: pointer;
	opacity: .5;
	transition: var(--opacity-animation);
}

@media (min-width: 992px) {
	.modal-close:hover {
		opacity: .7;
	}
}

.modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1040;
	background-color: #000;
}

.modal-backdrop.fade {
	opacity: 0;
}

.modal-backdrop.in {
	opacity: .3;
}

@media (max-width: 459px) {
	.modal {
		background-color: var(--page-bg);
	}
}

@media (min-width: 460px) {
	.modal-out {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		pointer-events: none;
		margin: 0 auto;
		min-height: 100%;
		padding: 32px 16px;
	}

	.modal-box {
		pointer-events: auto;
		max-width: 600px;
		border-radius: var(--modal-radius);
		background-color: var(--page-bg);
	}

	html.uedit .modal .modal-over {
		opacity: .5;
	}

	.modal-over {
		position: fixed;
		top: 0;
		bottom: 0;
		right: 0;
		left: 0;
		background-color: #000;
		opacity: 0;
		transition: opacity .4s ease;
		pointer-events: auto;
	}
}

.settings-form {
	padding: var(--gap);
	padding-top: 0;
}

/* - Уведомления справа в углу - */
.notify-fly {
	margin: 12px;
	border-radius: 16px;
	pointer-events: none;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	background: rgba(68, 68, 68, 0.60);
	color: #fff;
	position: relative;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.8);
	transition: opacity .2s ease, transform .4s ease, visibility .2s ease;
}

.notify-fly.open {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	pointer-events: auto;
}

.notify-fly-cont {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	padding-right: 32px;
}

.notify-fly-icon {
	display: block;
	padding: 6px;
	width: 28px;
	height: 28px;
	margin-right: 12px;
	color: #000;
	background-color: #fff;
	border-radius: 50%;
}

.notify-fly-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

.notify-fly-text {
	font-size: var(--fs-sm);
}

a.notify-fly-text {
	color: inherit !important;
	text-decoration: none !important;
	cursor: pointer
}

a.notify-fly-text::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.notify-fly-close {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
	width: 32px;
	height: 32px;
	padding: 4px;
	background: none !important;
	border: 0 none;
	color: inherit;
}

.notify-fly-close svg {
	width: 24px;
	height: 24px;
	display: block;
	opacity: .3;
}

.notify-fly-close:hover svg {
	opacity: .5;
}

/* Настройка стандартной капчи */
.c-capcha {
	position: relative;
	display: flex;
}

.c-capcha>a {
	margin-right: 5px;
}

.c-capcha img {
	position: relative;
	display: block;
	width: 120px;
	height: 44px;
	border-radius: var(--field-radius);
	z-index: 1;
	background: var(--page-bg);
	transition: all ease .2s;
}

.c-capcha:hover img {
	box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.2);
	transform: scale(1.3);
	border-color: transparent;
}

.c-capcha>input {
	float: left;
	width: 120px;
	text-align: center;
}

/* Настройка стандартной капчи при ответах на комментарии */
.dle-captcha {
	position: relative;
}

.dle-captcha:after {
	clear: both;
	display: block;
	content: "";
}

.dle-captcha>a {
	float: left;
	margin-right: 5px;
}

.dle-captcha img {
	position: relative;
	display: block;
	width: 130px;
	height: 46px;
	-webkit-transition: all ease .2s;
	transition: all ease .2s;
}

.dle-captcha>input {
	float: left;
	width: 130px;
}