#webprostor_configurator
{
	margin-bottom: 20px;
}

#webprostor_configurator #stock_switch .form-group input[type="checkbox"] {
    display: none;
}
#webprostor_configurator #stock_switch .form-group input[type="checkbox"] + .btn-group > label span {
    width: 20px;
}
#webprostor_configurator #stock_switch .form-group input[type="checkbox"] + .btn-group > label span:first-child {
    display: none;
}
#webprostor_configurator #stock_switch .form-group input[type="checkbox"] + .btn-group > label span:last-child {
    display: inline-block;   
}

#webprostor_configurator #stock_switch .form-group input[type="checkbox"]:checked + .btn-group > label span:first-child {
    display: inline-block;
}
#webprostor_configurator #stock_switch .form-group input[type="checkbox"]:checked + .btn-group > label span:last-child {
    display: none;   
}

#webprostor_configurator .sticky-top,
#modalProducts .sticky-top
{
	position: sticky;
	top: 10px;
	z-index: 103;
}

#webprostor_configurator .sticky-bottom
{
	position: sticky;
	bottom: 0;
}

#webprostor_configurator #steps_groups .list-group-item h3
{
	margin-top: 5px;
	margin-bottom: 15px;
}

#webprostor_configurator .steps h4,
#webprostor_configurator .steps .products h5,
#webprostor_configurator .steps .price
{
	margin-top: 15px;
	margin-bottom: 15px;
}

#webprostor_configurator .steps .price
{
	white-space: nowrap;
}

#webprostor_configurator.compact-view .steps h4,
#webprostor_configurator.compact-view .steps .products h5,
#webprostor_configurator.compact-view .steps h3.price
{
	margin-top: 5px;
	margin-bottom: 10px;
	overflow-wrap: break-word;
}

#webprostor_configurator .steps .picture,
#webprostor_configurator .steps .description
{
	margin-bottom: 15px;
}

#webprostor_configurator .steps .properties
{
	word-wrap: break-word;
}

#webprostor_configurator.compact-view .steps .picture,
#webprostor_configurator.compact-view .steps .description
{
	margin-bottom: 10px;
}

#webprostor_configurator .steps .list-group-item button
{
	margin-bottom: 15px;
}

#webprostor_configurator.compact-view .steps .list-group-item button
{
	margin-bottom: 5px;
}

#webprostor_configurator .steps .quantity-wrapper
{
	margin-top: 10px;
	display: flex;
}

#webprostor_configurator .steps .quantity-wrapper a
{
	display: inline-block;
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	line-height: 16px;
	border: 1px solid #f3f6f8;
	color: #cfd5d9;
	width: 18px;
	vertical-align: top;
	text-decoration: none;
}

#webprostor_configurator .steps .quantity-wrapper a:hover
{
	color: #222;
    box-shadow: 0px 2px 7px 0px rgba(57, 74, 83, 0.2);
}

#webprostor_configurator .steps input[data-type="quantity"]
{
	max-width: 40px;
	display: inline-block;
	
	border-width: 0 !important;
	box-shadow: none !important;
	
	font-weight: 700;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

#webprostor_configurator .steps .products > div:not(:last-of-type)
{
	padding-bottom: 15px;
}

#webprostor_configurator #progress h5
{
	margin-top: 0;
	margin-bottom: 10px;
}

#webprostor_configurator #progress .progress:last-of-type
{
	margin-bottom: 0;
}

#webprostor_configurator #order_wrapper
{
	display: flex;
}

#webprostor_configurator #order_wrapper #assembly_quantity
{
	max-width: 60px;
}

#webprostor_configurator #order_wrapper #assembly_quantity + a
{
	margin-left: 5px;
}

#webprostor_configurator.compact-view h3,
#webprostor_configurator.compact-view h4,
#webprostor_configurator.compact-view h5,
#webprostor_configurator.compact-view strong
{
	font-weight: 500;
}

#webprostor_configurator.compact-view .alerts
{
	padding-top: 15px;
}

#webprostor_configurator.compact-view .alerts .alert
{
	margin-bottom: 0;
}

#webprostor_configurator.print .webprostor-configurator-items-list table .th-mobile
{
	display: none;
}

#webprostor_configurator #assembly_quantity
{
	margin-bottom: 0px;
}

#webprostor_configurator .panel-secondary
{
    border: 1px solid rgba(0,0,0,0.125);
}

#webprostor_configurator .panel-secondary > .panel-heading
{
	background-color: rgba(0,0,0,0.03);
	border-bottom: 1px solid rgba(0,0,0,0.125);
}

#webprostor_configurator .progress-bar-secondary
{
    background-color: #6c757d !important;
}

#webprostor_configurator .btn-secondary,
#modalProducts .btn-secondary
{
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

#modalProducts #sortPanel.sticky-top
{
	top: 0;
	z-index: 102;
}

#modalProducts #quick_search
{
	border-color: #ccc;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

#modalProducts #sort li,
#modalProducts #views li
{
	margin-bottom: 0;
}

#modalProducts #sort li > a
{
	display: flex;
	align-items: center;
}

#modalProducts #sort li > a span + i
{
	margin-left: 3px;
}

#modalProducts .navbar ul li,
#modalProducts .webprostor-configurator-pagination ul li
{
	padding-left: 0;
}

#modalProducts .navbar ul li:before,
#modalProducts .webprostor-configurator-pagination ul li:before,
#modalProducts .webprostor-configurator-catalog-section ul li:before
{
	content: "";
}

#modalProducts .navbar-text
{
	margin-top: 15px;
    margin-bottom: 10px;
}

#modalProducts #productFilterRight .bx-filter .bx-filter-popup-result,
#modalProducts #productFilterRight .smart-filter-popup-result
{
	left: 97%;
	border-width: 2px 2px 2px 10px;
	-webkit-border-image: url(/bitrix/images/webprostor.configurator/result_popup_right.png) 4 4 4 20 repeat;
	-moz-border-image: url(/bitrix/images/webprostor.configurator/result_popup_right.png) 4 4 4 20 repeat;
	-o-border-image: url(/bitrix/images/webprostor.configurator/result_popup_right.png) 4 4 4 20 repeat;
	border-image: url(/bitrix/images/webprostor.configurator/result_popup_right.png) 4 4 4 20 fill repeat;
}

#modalProducts .webprostor-configurator-catalog-section .description h5
{
	margin-top: 0;
}

#modalProducts .webprostor-configurator-catalog-section .raiting
{
	margin-top: 10px;
	margin-bottom: 5px;
	text-align: center !important;
}

@media (min-width: 992px)
{
	#modalProducts .modal-xl,
	#modalProductInfo .modal-xl
	{
		width: 800px;
	}
}

@media(min-width: 1200px)
{
	#modalProducts .modal-xl,
	#modalProductInfo .modal-xl
	{
		width: 1140px;
	}
}

@media(min-width: 992px)
{
	#productFilterRight
	{
		display: block !important;
	}
}

@media(max-width: 992px)
{
	#modalProducts .sticky-top
	{
		position: relative;
		top: 0;
	}
	
	#modalProducts #sortPanel .navbar-text
	{
		clear: left;
	}
	
	#modalProducts #sortPanel .navbar-nav
	{
		clear: left;
		float: left !important;
	}
}

@media(min-width: 768px)
{
	#webprostor_configurator .text-sm-right
	{
		text-align: right;
	}
}

@media(max-width: 768px)
{
	
	#webprostor_configurator .steps
	{
		text-align: center;
	}
	
	#webprostor_configurator .steps .picture img
	{
		max-height: 150px;
		margin: 0 auto;
	}
	
	#webprostor_configurator .steps .sticky-bottom > div
	{
		width: 100%;
		text-align: center;
	}

	#webprostor_configurator .steps .quantity-wrapper
	{
		justify-content: center;
	}
	
	#webprostor_configurator .steps h3.price,
	#webprostor_configurator .steps .real-balance
	{
		margin-bottom: 10px !important;
	}

	#webprostor_configurator .steps .quantity-wrapper a
	{
		color: #222;
		box-shadow: 0 none;
	}
	
	#modalProducts #sortPanel .navbar-text
	{
		display: none !important;
	}
	
	#modalProducts #sortPanel .navbar-nav
	{
		clear: none;
	}
	
	#modalProducts #sort.navbar-nav
	{
		padding-left: 7.5px;
	}
	
	#modalProducts #views.navbar-nav
	{
		float: right !important;
		padding-right: 7.5px;
	}
	
	#modalProducts #sortPanel .navbar-nav > li
	{
		float: left !important;
	}
	
	#modalProducts #productFilterRight .bx-filter .bx-filter-popup-result,
	#modalProducts #productFilterRight .smart-filter-popup-result
	{
		position: absolute`;
		bottom: auto;
		left: auto;
		right: 0;
		width: auto;
		padding: 15px;
		margin: 0;
		border: 0 none;
		background: #fff;
		z-index: 99999;
		border: 1px solid #dee2e6;
		border-right: 0;
		
		text-align: center;
		font-size: 18px;
		line-height: 28px;
	}
	
	#modalProducts #productFilterRight .bx-filter .bx-filter-popup-result a,
	#modalProducts #productFilterRight .smart-filter-popup-result a
	{
		border-radius: 4px;
		border: 1px solid #cecece;
		padding: 15px 25px;
		display: inline-block;
		margin-top: 3px;
	}
}