#item_block{
	width:930px;
	margin:auto;
}

#i_header{
	display: flex;
	flex-direction: row;
	background:white;
	margin-bottom:5px;
	padding-bottom:15px;
	/*padding-left:10px;*/
	padding-right:10px;
	position: relative;
	border-radius:5px;
}

#i_miniphotos{
	width:35px;
	min-width: 35px;
	margin-right:3px;
	max-height: 310px;
	overflow-y: auto;
	padding-left:14px;
	direction: rtl;
	user-select: none;
	-moz-user-select:none;
	-webkit-user-select:none;
}

.i_mphoto{
	width:30px;
	height: 30px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	margin-bottom:5px;
	border:solid 1px rgba(0,0,0,.1);
	cursor: pointer;
}

.i_mphoto.selected{
	border:solid 1px #FFCF32;
}

#i_mainphoto{
	width:310px;
	min-width: 310px;
	height: 310px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	cursor: zoom-in;
	margin-left:40px;
	user-select: none;
	-moz-user-select:none;
	-webkit-user-select:none;

	display: flex;
	justify-content: center;
	align-items: center;
	background-color: white;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

#i_mainphoto[data-src='']{
	cursor: default;
}

#i_info{
	margin-top:20px;
	margin-left:20px;/*90px*/
	width:calc(100% - 425px);/*calc(100% - 495px)*/
}

#i_name{
	margin-bottom:7px;
	font-size:32px;
	/*white-space: nowrap;*/
	text-overflow: ellipsis;
	max-width: 700px;
	overflow: hidden;
}

#i_store.instore{
	color:#008A00;
	margin-bottom:5px
}

#i_store.notinstore{
	color:rgb(255,80,80);
	margin-bottom:5px
}

#i_price{
	font-weight: bold;
	font-size:24px;
	margin-top:10px;
	margin-bottom:10px;
}

#i_code{
	font-size:80%;
	margin-bottom:15px;
	color:#5B5858;
}

#i_qty_countbar{
	display: flex;
}

#i_qty_text{
	margin-bottom:3px;
}

#i_qty_cb_input_cont{
	width:100px;
	background:white;
	border:solid 1px rgba(0,0,0,.2);
	text-align: center;
	border-radius:2px;
	padding:4px 4px;
	margin-bottom:15px;
	border-right:none;
}

#i_qty_cb_input{
	width:calc(100% - 20px);
	text-align: center;
	border:none;
	font-size:14px;
}

#i_qty_cb_input_text{
	font-size:14px;
}

.i_qty_cb_arrow{
	width:21px;
	height: 24px;
	text-align: center;
	border:solid 1px rgba(0,0,0,.2);
	cursor: pointer;
}

.i_qty_cb_arrow:active{
	background:rgba(0,0,0,.15);
	box-shadow:inset 0 0 5px rgba(0,0,0,.2);
}

.i_qty_cb_arrow i {
	position:relative;
    top:3px
}

#i_incart_btn{
	width:250px;
	height: 27px;
	line-height:27px;
}


.i_properties{
	background:white;
	padding-left:10px;
	padding-right:10px;
	border-radius:5px;
	padding-top:20px;
	margin-top:20px;
	padding-bottom:25px;
}

.i_prop_cont{
	display: flex;
	margin-bottom:10px;
	align-items: end;
}

.i_prop_cont1{
	display: flex;
	width: 50%;
}

.i_prop_name{
	/*white-space: nowrap;*/
}

.i_prop_placeholder{
	border-bottom:dashed 0.5px rgba(0,0,0,.15);
	width: 100%;
	flex: 1 0 6%;
}

.i_prop_cont2{
	width:50%;
}


input[type=radio]{
	opacity:0;cursor:pointer
}
label{
	cursor:pointer
}
textarea{
	height:286px;
	margin-bottom:5px;
	width:calc(100% - 22px);
	padding:5px 10px;
	border:solid 1px rgba(0, 0, 0, .3)
}
#review_link{
    background:#fff;
    border-radius:5px;
    width:260px;
    height:400px;
    padding:10px;
    margin:5px
}
#tovar_review h2{
    margin-left:10px
}
#rw_name{
	width:calc(100% - 22px);
	max-width:calc(100% - 22px)
}
.rw-wait{
margin:auto;display:block
}
.rw-hide{
	display:none
}
.rw-title{
    display:flex;
	align-items:center;
    overflow:hidden;
	max-width:100%;
	width:100%;
}
.rw-title img{
	margin-right:5px
}
.rw-input{
	font-family:OpenSans, Arial, Tahoma, sans-serif;
	display:block	
}
.rw-ok, .rw-not-ok{
	color:#fff;text-align:center;padding:5px
}
.rw-ok{
	background:#009b0d
}
.rw-not-ok{
	background:#bf0808
}
.reviews{
	display:flex;
	flex-wrap:wrap;
	flex-direction:row;
	justify-content:center
}
.review-card{
	overflow:hidden;
	background:#fff;
	padding:10px;
	border-radius:5px;
	width:260px;
    height:400px;
    margin:5px
}
.review-title{
    display:flex;
    align-items:flex-end;	
    overflow:hidden;
	height:52px
}
.review-title img{
	position:relative;
    top:-2px;
	margin-right:5px
}
.review-name{
	display:inline-block
}
.review-name div{
	font-weight:bold;
	height:18px
}
.review-buyer{
	height:36px;
	display:flex;
	align-items:flex-end
}
.review-text{
    margin-top:5px;
	padding-top:5px;
	overflow:auto;
    height:calc(100% - 65px);
}
.review-no{
	margin-bottom:20px;
	text-align:center;
    color:#6f6f6f
}
.review-star, .review-starless{
	background:no-repeat;
    display:inline-block;
    width:16px;
    height:16px;
    margin:1px;
}
.review-starless{
	background-image:url(https://usumag.kz/img/starless.png)	
}
.review-star{
	background-image:url(https://usumag.kz/img/star.png)
}


@media screen and (max-width:480px){
	textarea{
		height:165px
	}
	#review_link{
		height:280px;
		width:calc(100% - 30px)
	}
	.review-card{
		height:280px;
		width:100%
	}
}

@media screen and (max-width: 1200px){
	#item_block{
		width:100%
	}
}

@media screen and (max-width: 850px){
	#i_miniphotos{
		display: inline-block;
	}
	#i_mainphoto{
		display:inline-block;
	}
	#i_header{
		display: block;
	}
	#i_info{
		width:calc(100% - 40px);
		margin:20px;
	}
}

@media screen and (max-width: 460px){
	.i_mphoto{
		display: inline-block;
		width:50px;
		height: 50px;
	}
	#i_miniphotos{
		width:calc(100% - 6px - 14px);
		margin-left:14px;
		padding-left:0;
		direction: ltr;
		white-space: nowrap;
		height: 70px;
		overflow-x: auto;
		overflow-y:hidden;
		margin-right:14px;
	}
}
@media screen and (max-width: 400px){
	.i_prop_name{
		font-weight:bold
	}
	.i_prop_placeholder{
		border-bottom:none
	}
	.i_prop_cont{
		flex-direction:column;
	}
	.i_prop_cont1, .i_prop_cont2{
		width:100%
	}
	#i_incart_btn{
		width:100%
	}
}
@media screen and (max-width: 395px){
	#i_mainphoto{
		min-width: unset;
		width:100%;
		margin:0;
	}
}