

@base_c: #E6E6E6;
@text_c: darken(@base_c,60%);
@start_c: lighten(@base_c,8%);
@end_c: @base_c;
@dstart_c: desaturate(lighten(@start_c,50%),50%); /* default disabled state */

@base_c_sctr: #A2AD00;
@text_c_sctr: darken(@base_c_sctr,40%);
@start_c_sctr: lighten(@base_c_sctr,4%);
@end_c_sctr: @base_c_sctr;
@dstart_c_sctr: desaturate(lighten(@start_c_sctr,50%),50%); /* default disabled state */

@text_shadow: 0 1px 0 lighten(@base_c,27%);
@text_shadow_sctr: 0 1px 0 lighten(@base_c_sctr,27%);

@hover_text_c: darken(@text_c,20%);
@hover_text_c_sctr: darken(@text_c,20%);


@text_c_sctr: #FFF;@text_shadow_sctr: 0 -1px 0 darken(@base_c_sctr,2%);@hover_text_c_sctr: #FFF;
@dend_c: @dstart_c; /* adjusted disabled state */
@border_c: darken(@base_c,10%);
@border_top_c: darken(@base_c,5%);
@border_bottom_c: darken(@base_c,15%);

@dend_c_sctr: @dstart_c_sctr; /* adjusted disabled state */
@border_c_sctr: darken(@base_c_sctr,5%);
@border_top_c_sctr: darken(@base_c_sctr,2%);
@border_bottom_c_sctr: darken(@base_c_sctr,8%);

@r: 0;
@g: 0;
@b: 0;
@r1: 255;
@g1: 255;
@b1: 255;
@shr: 245;
@shg: 245;
@shb: 245;
@grad_pos: 15%;

.button, .primary_button {
	-webkit-box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	-moz-box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	position:relative;
	-pie-poll: true;
	-pie-lazy-init:true;
	behavior:url(PIE.php) url(../../PIE.php);
}

.button:active, .primary_button:active {
	-webkit-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.25),0 1px 2px rgba(0, 0, 0, 0.05);
	-moz-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.25),0 1px 2px rgba(0, 0, 0, 0.05);
	box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.25),0 1px 2px rgba(0, 0, 0, 0.05);
}

.button {
	background-color: @end_c;
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@start_c), color-stop(25%, @start_c), to(@end_c));
	background-image: -webkit-linear-gradient(@start_c, @start_c @grad_pos, @end_c);
	background-image: -moz-linear-gradient(top, @start_c, @start_c @grad_pos, @end_c);
	background-image: -ms-linear-gradient(@start_c, @start_c @grad_pos, @end_c);
	background-image: -o-linear-gradient(@start_c, @start_c @grad_pos, @end_c);
	background-image: linear-gradient(@start_c, @start_c @grad_pos, @end_c);
	-pie-background: linear-gradient(@start_c, @start_c @grad_pos, @end_c);
	color: @text_c;
	text-shadow: @text_shadow;
	border: 1px solid @border_c;
	border-top-color: @border_top_c;
	border-bottom-color: @border_bottom_c;
	-webkit-box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	-moz-box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	behavior:url(PIE.php) url(../../PIE.php);
}

.button:hover {
	color: @hover_text_c;
	-pie-background: linear-gradient(top, lighten(@end_c,8%), @end_c);
	behavior:url(PIE.php) url(../../PIE.php);
}

.button[disabled] {
	color: desaturate(lighten(@text_c,50%),60%);
	background-color: @dstart_c;
	border: 1px solid desaturate(lighten(@border_c,50%),70%);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@dstart_c), color-stop(25%, @dstart_c), to(@dend_c));
	background-image: -webkit-linear-gradient(@dstart_c, @dstart_c @grad_pos, @dend_c);
	background-image: -moz-linear-gradient(top, @dstart_c, @dstart_c @grad_pos, @dend_c);
	background-image: -ms-linear-gradient(@dstart_c, @start_c @grad_pos, @end_c);
	background-image: -o-linear-gradient(@dstart_c, @dstart_c @grad_pos, @dend_c);
	background-image: linear-gradient(@dstart_c, @dstart_c @grad_pos, @dend_c);
	-pie-background: linear-gradient(@dstart_c, @dstart_c @grad_pos, @dend_c);
	behavior:url(PIE.php) url(../../PIE.php);
}

.primary_button {
	background-color: @end_c_sctr;
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@start_c_sctr), color-stop(25%, @start_c_sctr), to(@end_c_sctr));
	background-image: -webkit-linear-gradient(@start_c_sctr, @start_c_sctr @grad_pos, @end_c_sctr);
	background-image: -moz-linear-gradient(top, @start_c_sctr, @start_c_sctr @grad_pos, @end_c_sctr);
	background-image: -ms-linear-gradient(@start_c_sctr, @start_c_sctr @grad_pos, @end_c_sctr);
	background-image: -o-linear-gradient(@start_c_sctr, @start_c_sctr @grad_pos, @end_c_sctr);
	background-image: linear-gradient(@start_c_sctr, @start_c_sctr @grad_pos, @end_c_sctr);
	-pie-background: linear-gradient(@start_c_sctr, @start_c_sctr @grad_pos, @end_c_sctr);
	color: @text_c_sctr;
	text-shadow: @text_shadow_sctr;
	border: 1px solid @border_c_sctr;
	border-top-color: @border_top_c_sctr;
	border-bottom-color: @border_bottom_c_sctr;
	-webkit-box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	-moz-box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	box-shadow: inset 0 1px 0 rgba(@r1, @g1, @b1, 0.2), 0 1px 2px rgba(@r, @g, @b, 0.05);
	behavior:url(PIE.php) url(../../PIE.php);
}

.primary_button:hover {
	color: @hover_text_c_sctr;
	-pie-background: linear-gradient(top, lighten(@end_c_sctr,8%), @end_c_sctr);
	behavior:url(PIE.php) url(../../PIE.php);
}

.primary_button[disabled] {
	color: desaturate(lighten(@text_c_sctr,50%),60%);
	background-color: @dstart_c_sctr;
	border: 1px solid desaturate(lighten(@border_c_sctr,50%),70%);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@dstart_c_sctr), color-stop(25%, @dstart_c_sctr), to(@dend_c_sctr));
	background-image: -webkit-linear-gradient(@dstart_c_sctr, @dstart_c_sctr @grad_pos, @dend_c_sctr);
	background-image: -moz-linear-gradient(top, @dstart_c_sctr, @dstart_c_sctr @grad_pos, @dend_c_sctr);
	background-image: -ms-linear-gradient(@dstart_c_sctr, @start_c_sctr @grad_pos, @end_c_sctr);
	background-image: -o-linear-gradient(@dstart_c_sctr, @dstart_c_sctr @grad_pos, @dend_c_sctr);
	background-image: linear-gradient(@dstart_c_sctr, @dstart_c_sctr @grad_pos, @dend_c_sctr);
	-pie-background: linear-gradient(@dstart_c_sctr, @dstart_c_sctr @grad_pos, @dend_c_sctr);
	behavior:url(PIE.php) url(../../PIE.php);
}
