html.b-html-xpopup,
body.b-body-xpopup {
	/* -webkit-overflow-scrolling: touch; */
	position: relative;
	overflow: hidden;
	/* top: 0px;
  left: 0px; */
	z-index: 1;
	/* pointer-events: none; */
}

html.b-html-xpopup.b-html-xpopup_scrollable,
html.b-html-xpopup.b-html-xpopup_scrollable body.b-body-xpopup {
	overflow: auto;
}

body._xpopup_auto_loading:before {
	background: rgba(0, 0, 0, .5);
	content: '';
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
}

/**
 * b-xpopup-header
 */
.b-xpopup__header-container {
	position: relative;
}

/**
 * b-xpopup-loader
 */
.b-xpopup-loader {
	position: absolute;
	display: none;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
}

.b-xpopup-loader_type_in {
	background: rgba(255, 255, 255, .75);
}

.b-xpopup-loader_type_out {}

.b-xpopup_status_updating .b-xpopup__content-container {
	visibility: hidden;
}

.b-xpopup_box-status_opening.b-xpopup_status_loading .b-xpopup-loader_type_out {
	display: block;
}

.b-xpopup_box-status_opened.b-xpopup_status_loading .b-xpopup-loader_type_in {
	display: block;
}

/* Spin loader. */

.b-xpopup-loader__spinner {
	background: url(images/loader-out.svg) center center no-repeat;
	background-size: contain;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-top: -32px;
	margin-left: -32px;
	width: 64px;
	height: 64px;
	display: block;
}

/* в окне. */

.b-xpopup-loader_type_in .b-xpopup-loader__spinner {
	background-image: url(images/loader-in.svg);
}

/* в не окна. */

.b-xpopup-loader_type_out .b-xpopup-loader__spinner {}

/* Spin loader: end */

/**
 * Defaults
 */
.b-xpopup__bg {
	overflow: hidden;
	background: rgba(11, 11, 11, .5);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	/* pointer-events: auto; */
}

.b-xpopup__bg.b-xpopup_type_image {
	background: rgba(0, 0, 0, .95);
}

.b-xpopup__box {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100%;
	/*100vh некорректн работает в iOS, поэтому 100% */
	outline: none !important;

	overflow-y: auto;
	overflow-x: hidden;
	/* -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box; */
	box-sizing: border-box;
}

.b-xpopup-option_close_on {
	cursor: pointer;
}

.b-xpopup-option_close_off {
	cursor: default;
}


.b-xpopup__content-container {
	position: relative;
	top: 0;
	display: block;
	/* vertical-align: middle; */
	text-align: left;
	z-index: 1045;
	width: auto;
	min-width: 200px;
	/* min-height: 150px; */
	margin: 0 auto;
	transform: none;
	box-sizing: border-box;
}

.b-xpopup.b-xpopup_responsive .b-xpopup__content-container {
	border-radius: 0;
}

.b-xpopup__content {
	overflow: hidden;
	border-bottom-left-radius: var(--xpopup_border-radius);
	border-bottom-right-radius: var(--xpopup_border-radius);
}

.b-xpopup.b-xpopup_responsive .b-xpopup__content {
	border-radius: 0;
}

.b-xpopup_box-status_opening .b-xpopup__content-container,
.b-xpopup_box-status_closing .b-xpopup__content-container {
	display: none;
}

.b-xpopup-action {
	cursor: pointer;
}

.b-xpopup-action_type_back {
	height: var(--xpopup__header_height, 60px);
	width: 40px;
	line-height: var(--xpopup__header_height, 60px);
	/* font-size: 14px; */
	font-weight: normal;
	text-align: center;
	float: left;
	/* margin-right: 10px; */
	margin-left: -15px;
	position: relative;
	opacity: .5;
}

.b-xpopup-action_type_back:hover:after {
	opacity: 1;
}

/**
 * Close buttons
 */

.b-xpopup__close,
.b-xpopup__arrow {
	overflow: visible;
	cursor: pointer;
	background: transparent;
	border: 0;
	-webkit-appearance: none;
	display: block;
	outline: none;
	padding: 0;
	z-index: 1046;
	-webkit-box-shadow: none;
	box-shadow: none;
	transition: .1s;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

.b-xpopup__close {
	width: var(--xpopup__header_height, 60px);
	height: var(--xpopup__header_height, 60px);
	line-height: var(--xpopup__header_height, 60px);
	position: absolute;
	right: 0;
	top: 0;
	text-decoration: none;
	text-align: center;
	opacity: .7;
	padding: 0;
	color: rgba(255, 255, 255, 1);
	/* text-shadow: 0px 0px 2px #aaa; */
	font-style: normal;
	font-size: 28px;
	font-family: Arial, Baskerville, monospace;
}


.b-xpopup__close:hover,
.b-xpopup__close:focus {
	opacity: 1;
}

.b-xpopup__close:active {
	top: 1px;
}

.b-xpopup_status_loading .b-xpopup__close {
	display: none;
}


.b-xpopup__close_type_outside {
	opacity: .9;
	/*border: 1px solid !important;*/
	width: 30px;
	height: 30px;
	line-height: 30px;
	margin: 5px;
	top: 0 !important;
	right: 0 !important;
	position: fixed;
	font-size: 29px;
	font-family: tahoma;
}

.b-xpopup-option_animation_true .b-xpopup__close_type_outside {
	transition: .3s opacity;
}

.b-xpopup__close_type_outside:hover {
	opacity: 1;
}

/*.b-xpopup_hover_content  .b-xpopup__close_type_outside{
  opacity: 0.4;
}*/

/* header actions */

.b-xpopup__header-actions {
	position: absolute;
	right: 60px;
	top: 18px;
	z-index: 10;
	user-select: none;
	white-space: nowrap;
}

.b-xpopup__header-actions-toggler {
	/* Copied form .fa-ellipsis-v */
	font-family: "Font Awesome 5 Free";
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-size: var(--global-font-size-base, smaller);
	font-variant: normal;
	text-rendering: auto;
	font-weight: bold;
	line-height: 1;

	width: 1em;
	text-align: center;
	position: absolute;
	top: 0;
	right: 0;

	cursor: pointer;
	outline: none;
	opacity: .5;
}

.b-xpopup__header-actions-toggler:before {
	/* Copied form .fa-ellipsis-v:before */
	content: "\f142";
}

.b-xpopup__header-actions-toggler:hover {
	opacity: 1;
}

.b-xpopup__header-actions-toggler span {
	display: none;
}

.b-xpopup__header-actions-items {
	border: 0;
	background: #fff;
	display: none;
	margin: 24px 0 0 0;
	padding: 8px 0;
	list-style: none;
	border-radius: 3px;
	position: absolute;
	top: 2px;
	right: -3px;
	box-shadow: 0 0 2px #bcbcbc;
	font-size: 14px;
}

.b-xpopup__header-actions-items:after,
.b-xpopup__header-actions-items:before {
	position: absolute;
	pointer-events: none;
	border: solid transparent;
	content: '';
	height: 0;
	width: 0;
	bottom: 100%;
	right: 10.5px;
}

.b-xpopup__header-actions-items:before {
	border-width: 6px;
	margin: 0 0px;
	border-bottom-color: #e6e6e6;
}

.b-xpopup__header-actions-items:after {
	border-width: 5px;
	margin: 0 1px;
	border-bottom-color: #fff;
}

.b-xpopup__header-action {
	padding: 0;
}



/* Дополнение к dropdown-стилям для поддержки иконок */

.b-xpopup__header-action-link._has-icons {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	grid-gap: 10px;
	position: relative;
}

.b-xpopup__header-action-link._has-icons._has-icons .b-ico {
	color: var(--global-text-muted, #777);
	font-size: var(--global-font-size-small, small);
}

.b-xpopup__header-action-link._has-icons._has-icons .__icon {
	width: 15px;
}

.b-xpopup__header-action-link._has-icons._has-icons .__hint-icon {
	width: 15px;
	margin-left: auto;
}

.b-xpopup__header-actions-divider {
	height: 1px;
	margin: 9.5px 0;
	overflow: hidden;
	background-color: #e5e5e5;
}

.b-xpopup__header-actions-header {
	display: block;
	padding: 6px 12px;
	font-size: small;
	color: #999;
	white-space: nowrap;
}

.b-xpopup__header-action-link {
	border-top: #fff solid 1px;
	border-bottom: #fff solid 1px;
	display: block;
	padding: 6px 12px;
	text-decoration: none !important;
	text-transform: none !important;
	font-style: normal !important;
	font-weight: normal;
	line-height: 1.5;
	color: #555 !important;
}

.b-xpopup__header-action-link:hover {
	background: #f9f9f9;
	color: #000;
}

.b-xpopup__header-action-link i {
	font-style: normal;
}

.b-xpopup__header-action-link .b-ico {
	margin-right: 15px;
	opacity: .7;
}


/* iframe */
.b-xpopup_type_iframe .b-xpopup__content {
	line-height: 0;
	/* width: 100%; */
	/*max-width: 1100px; */
}

.b-xpopup_type_iframe .b-xpopup__close_type_inside {
	top: 0 !important;
}

.b-xpopup_type_iframe .b-xpopup__content {
	/* height: 100%; */
}

.b-xpopup_type_iframe .b-xpopup__content-inner_DEL {
	width: 100%;
	height: 100%;
	/*height: 0;*/
	overflow: hidden;
	/*padding-top: 56.25%; */
	position: relative;
}

.b-xpopup_type_iframe iframe {
	/* position: absolute; */
	/* display: block; */
	/* top: 0; */
	/* left: 0; */
	/* width: 100%; */
	/* height: 100%; */
	/* box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #000;  */
}

/* image */

.b-xpopup_type_image .b-xpopup-placeholder_image {
	width: 100%;
}

.b-xpopup_type_image .b-xpopup__content {
	text-align: center;
}

.b-xpopup__image-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15px;
	/* background: #00000080; */
	background: linear-gradient(180deg, #00000000, #0000009e);
	color: white;
	font-size: 1rem;
	font-weight: bold;
	text-align: center
}

.b-xpopup__image-counter {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 10px;
	background: #00000080;
	color: white;
	font-size: .9rem;
	/* font-weight: bold; */
	text-align: center
}

/* left-right arrows */

.b-xpopup__arrow {
	position: fixed;
	top: 0;
	/* width: 40%; */
	width: 70px;
	height: 100%;
	text-indent: -9000px;
	cursor: pointer;
	opacity: .4;
	/* z-index: 10000; */
}

.b-xpopup__arrow_left {
	left: 0;
}

.b-xpopup__arrow_right {
	right: 0;
}

.b-xpopup__arrow:hover {
	opacity: 1;
}

.b-xpopup__arrow-icon {
	position: absolute;
	top: 50%;
	margin-top: -37px;
	width: 20px;
	height: 34px;
	text-indent: -9000px;
}

.b-xpopup__arrow_left .b-xpopup__arrow-icon {
	background: url(images/arrows.png) left -22px no-repeat;
	left: 20px;
}

.b-xpopup__arrow_right .b-xpopup__arrow-icon {
	background: url(images/arrows.png) right -54px no-repeat;
	right: 20px;
}



@media screen and (max-width: 767px) {
	.b-xpopup__arrow {
		/* width: 20px; */
	}

	/* .b-xpopup__arrow-icon {
    top: 140px; 
  } */
	.b-xpopup__arrow_left {
		left: 0;
	}

	.b-xpopup__arrow_left .b-xpopup__arrow-icon {
		/* background: rgba(0,0,0,.4) url(images/arrows.png) 0px -22px no-repeat; */
	}

	.b-xpopup__arrow_right {
		right: 0;
	}

	.b-xpopup__arrow_right .b-xpopup__arrow-icon {
		/* background: rgba(0,0,0,.4) url(images/arrows.png) 0px -54px no-repeat; */
	}

	.b-xpopup__image-zoomer {
		visibility: hidden;
	}
}

/* Для типа image */
/*
.b-xpopup_status_changing .b-xpopup__content-container{
  opacity: .0;
}
.b-xpopup__content-container{
  transition: .5s ease;
}

.b-clicked-arrow_left .b-xpopup__content-container {
  transform: translateX(-40%) ;
}
.b-clicked-arrow_right .b-xpopup__content-container {
  transform: translateX(40%) ;
}
.b-xpopup_status_ready .b-xpopup__content-container {
  transform: translateX(0) scale(1);
  opacity: 1;
}
*/

/* .b-xpopup-image {
  transition:  .1s ease;
  opacity: 0;
} 
.b-xpopup_status_ready .b-xpopup-image ,
.b-xpopup_status_error .b-xpopup-image {
  opacity: 1;
} */

.b-xpopup-option_zoomed_true .b-xpopup__content-inner {
	max-height: 100vh;
	;
}

.b-xpopup-option_zoomed_true .b-xpopup-image {
	max-width: none;
}

.b-xpopup-option_zoomed_true .b-xpopup__content-container {
	margin-top: 0;
	max-width: 100%;
}

.b-xpopup-action_type_zoom {
	cursor: zoom-in;
}

.b-xpopup-option_zoomed_true .b-xpopup-action_type_zoom {
	cursor: zoom-out;
}

/**
 * Markup free clearing
 * Details: http://www.positioniseverything.net/easyclearing.html
 */
.b-xpopup-clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.b-xpopup-clearfix {
	display: inline-block;
}

/* Hides from IE-mac \*/
* html .b-xpopup-clearfix {
	height: 1%;
}

.b-xpopup-clearfix {
	display: block;
}

/* End hide from IE-mac */

/**
 * Залипающая сверху панель
 */
.b-xpopup-stick-top.b-xpopup__header-container {
	/* transition: .1s; */
	position: -webkit-sticky;
	/* Safari */
	position: sticky;
	z-index: 1000;
	/* 
    top sticky-элемента - это позиция относительно "липкого" родителя (.b-xpopup-box), а не относительно "окна".
    .b-xpopup-box может иметь padding-top = var(--xpopup__box_padding). 
    Чтобы обеспечить залипание "шапки" при касании края "окна", нам нужно получить отрицательный top "шапки":
    */
	/* --top: calc( 0px - var(--xpopup__box_padding) ); */
	/* top: var(--top);   */
	top: calc(0px - var(--xpopup__box_padding));
	/* overflow: hidden; */
	/* border-top-left-radius: var(--xpopup_border-radius, 5px);
  border-top-right-radius: var(--xpopup_border-radius, 5px); */
}

.b-xpopup__content-container._header-sticked {
	overflow: visible !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

/**
 * Добавляется к элементу внутри содержимого popup, котрый имеет свои стили в отдельном файле. 
 * Это позволяет скрыть такое содержимое пока не подгрузиться файл стилей элемента. 
 * Врутри файла стилей элемента должен быть "включающее" правило.
 *
 * Пример:
 * .b-xpopup_skin_xmsg-dialog .b-element-waiting-for-css{
 *   //visibility:visible !important; 
 *   opacity: 1 !important;
 * }
 * <div class="dialog b-element-waiting-for-css">...</div>
 */
.b-xpopup .b-element-waiting-for-css {
	/* visibility: hidden; */
	opacity: 0;
	transition: .1s;
}