/**
Попапы
*/
body.popup-overlay {
	overflow: hidden !important;
}

body.popup-overlay #messages_button_top {
	visibility: hidden;
}

.buttongray {
	position: fixed;
	right: 54px;
	top: 6px;
}

.chat-off .buttongray {
	display: none !important;
}

.window {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	overflow-x: auto;
	overflow-y: scroll;
	z-index: 1001;
	display: inline;
	text-align: center;
	overscroll-behavior: none;
}

.window.relative-window {
	text-align: left;
}

.window._closing {
	pointer-events: none;
}

.arrow {
	border: 10px solid transparent;
	position: fixed;
	display: none;
}

.arrow.arrow-left {
	border-right: 10px solid #fff;
}

.arrow.arrow-right {
	border-left: 10px solid #fff;
}

.arrow.arrow-top {
	border-bottom: 10px solid #fff;
}

.arrow.arrow-bottom {
	border-top: 10px solid #fff;
}

div.gray {
	position: fixed;
	background-color: rgba(0, 0, 0, 0.5);
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 1001;
}

#content, .content {
	position: relative;
	overflow: visible;
	height: auto;
	max-height: 50%;
	min-height: 10%;
	min-width: 100%;
	display: inline-block;
}

.content > form {
	padding: 2px;
}

.content-wrapper {
	overflow: auto;
}

body .popup .notify,
.notify {
	box-shadow: 0 0 5px #000000;
	min-width: 150px;
	cursor: auto;
	top: 40px;
	position: relative;
	background-color: #FFFFFF;
	display: inline-block;
	margin: 0 auto;
	padding: 15px;
	border: #999999 solid 1px;
	width: auto;
	text-align: left;
	max-width: calc(100% - 76px) !important;
}

.notify.transition {
	transition: all ease 0.3s 0s;
}

.notify.transition + .arrow {
	visibility: hidden;
}

.notify_buttons {
	position: absolute;
	left: -24px;
	top: inherit;
}

.notify_button,
#x_close_window,
.x_close_window {
	background-color: #FFFFFF;
	border: #999999 solid 1px;
	position: fixed;
	top: inherit;
	line-height: 16px;
}

.x_close_window {
	padding: 4px 4px 4px 0;
	border-radius: 0 10px 10px 0;
	border-left: none;
}

.notify_button {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 4px 0 4px 4px;
	border-radius: 10px 0 0 10px;
	border-right: none;
}

.win-scrollbar {
	position: fixed;
	bottom: 0;
	height: 20px;
	overflow-x: auto;
	overflow-y: hidden;
}

.win-scrollbar > div {
	height: 1px;
}

#sf {
	display: none;
}

.close_window {
	position: absolute;
	right: 0;
	top: inherit;
}

.top_window {
	/*noinspection CssInvalidPropertyValue*/
	cursor: -webkit-grab;
	cursor: grab;
}

.ui-draggable-dragging .top_window {
	/*noinspection CssInvalidPropertyValue*/
	cursor: -webkit-grabbing;
	cursor: grabbing;
}

.notify_slider {
	position: absolute;
	top: -20px;
	right: 0;
	width: 100px;
	display: none;
}

.notify_slider input {
	width: 100%;
}
