/* \Sentra.Designs\BasicDesigner\modules\searchform\styles\style-search-result-page.css */
@sbutmarginleft:3px;
@sinp_padding: {{sinp_padding}}px;
@sform_Width: {{sform_inpwidth}}px;
@sinp_hormargin: floor(({{CB_Width}}px - {{sform_inpwidth}}px) * 0.5);

.sformborder_srp(@search_borderwidth) when (@search_borderwidth > 0) {
	border: {{search_borderwidth}}px {{search_borderstyle}} {{search_bordercolor}};
}
/*
.sformborderradius_srp(@search_borderradius) when (@search_borderradius > 0) {
	border-radius: {{sform_topborderradius}}px {{sform_topborderradius}}px {{sform_bottomborderradius}}px {{sform_bottomborderradius}}px;
}
.sform_shadow_srp(@search_shadow_color) when not (@search_shadow_color = transparent) {
	box-shadow: {{search_ShadowPosX}}px {{search_ShadowPosY}}px {{search_shadow_blur}}px {{search_shadow_spread}}px {{search_shadow_color}} {{search_shadow_location}};
}
*/
.adsefo_input_width_bg(@form_inputlens_file) when not (@form_inputlens_file = 'none.png') {
	width: {{sform_inpwidth}}px - {{sformbuttonwidth}}px - 2 * @sinp_padding - {{lenswidth}}px - @sbutmarginleft - {{search_borderwidth}}px * 2;
	padding: @sinp_padding;
	background: {{inp_bg_color}} url(./{{template_images}}/{{form_inputlens_file}}) no-repeat scroll {{sformlens_posx}} center;
}
.adsefo_input_width_bg(@form_inputlens_file) when (@form_inputlens_file = 'none.png') {
	width: {{sform_inpwidth}} - {{sformbuttonwidth}}px - @sinp_padding - 2 * @sinp_padding - {{lenswidth}}px - @sbutmarginleft - {{search_borderwidth}}px * 2;
	padding: @sinp_padding!important;
	background: {{inp_bg_color}};
}
.form_adsefo_align(@sform_align) when (@sform_align = left) {
		float:left;
		margin: @sinp_padding 0;
}
.form_adsefo_align(@sform_align) when (@sform_align = center) {
		float:none;
		margin: @sinp_padding auto;
}
.form_adsefo_align(@sform_align) when (@sform_align = right) {
		float:right;
		margin: @sinp_padding 0;
}
.adsefo_input_sbut_align(@sbuttonheight, @sinpheight) when (@sbuttonheight > @sinpheight) {
		input[type="text"] {/* align sewnd button and input field by moving input field down */
				margin-top: floor(({{sbuttonheight}}px - {{sinpheight}}px - 2 * {{search_borderwidth}}px - 2 * @sinp_padding) * 0.5);

		}
}
.adsefo_input_sbut_align(@sbuttonheight, @sinpheight) when (@sbuttonheight < @sinpheight) {
		.sbutton {/* align sewnd button and input field by moving send button down */
				margin-top: floor(({{sinpheight}}px + 2 * {{search_borderwidth}}px + 2 * @sinp_padding - {{sbuttonheight}}px) * 0.5);
		}
}
/* Styles for the advanced search form */
.contentbar{
	form.adsefo {		/* advanced search form */
		width:@sform_Width;
		.form_adsefo_align({{sform_align}});
		position:relative;
		z-index:0;
		input[type="text"] {
				color: {{inp_color}};
				.adsefo_input_width_bg('{{form_inputlens_file}}');
/*
IE 9 or below:
				width: @sform_Width - {{sformbuttonwidth}}px - @sinp_padding - @sinp_padding - {{sformbuttonwidth}}px - 2px\9;
*/
				height: {{sinpheight}}px;
		}
		.adsefo_input_sbut_align({{sbuttonheight}}, {{sinpheight}});
		.sbutton {
			float: left;
			background: transparent url(./{{template_images}}/{{form_sendbutton_file}}) no-repeat scroll left center;
			height: {{sbuttonheight}}px;
			width: {{sbuttonwidth}}px;
			margin-left: @sbutmarginleft;
		}
		.sbutton:hover {
			background: transparent url(./{{template_images}}/{{form_hover_sendbutton_file}}) no-repeat scroll left center;
		}
		input[type="image"] {
			height: {{sbuttonheight}}px + @sinp_padding + @sinp_padding;
			width: {{sbuttonwidth}}px;
		}
		.sadv {
			float:left;
			width: @sform_Width;
			margin:10px 0;
			.actionbutton {
				span {
					display:none;
				}
			}
			.right {
				 padding:10px 2px;
			}
		}
		select {
			float:left;
			.sformborder_srp({{search_borderwidth}});
			width: @sform_Width - {{sform_label_Width}}px;
			height: {{sform_selectheight}}px;
			padding:2px 2px 2px 0;
			margin:@sinp_padding 0;
			option {
				background:transparent;
			}
		}
		label {
			float:left;
			line-height:{{sform_selectheight}}px;
			width: {{sform_label_Width}}px;
			font-weight:bold;
			margin:2px 0;
		}
	}
}
