/* Common */

span.magicbox {
	display: inline-block;
	vertical-align: middle;
	position: relative;
}

span.magicbox input[type=text] {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	border: 0 !important;
	background-color: transparent;
	overflow: hidden;
	box-shadow: none;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
}

span.magicbox span.button {
	display: block;
	position: absolute;
	cursor: pointer;
}

span.magicbox span.list {
	display: none;
	overflow: auto;
	overflow-x: hidden;
	overflow-y: auto;
	position: absolute;
}

span.magicbox span.list span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
}

span.magicbox.enabled,
span.magicbox.enabled {
	z-index: 1000;
}

span.magicbox.enabled span.list,
span.magicbox.enabled span.list {
	display: block;
	text-shadow: none;
}





/* Normal & large */

span.magicbox.magicbox-normal,
span.magicbox.magicbox-large {
	background-color: #fff;
	box-shadow:
		inset 1px 1px 0 0 #cbcbcb,
	    inset 7px 7px 6px -6px #cbcbcb;
	-moz-box-shadow:
		inset 1px 1px 0 0 #cbcbcb,
	    inset 7px 7px 6px -6px #cbcbcb;
	-webkit-box-shadow:
		inset 1px 1px 0 0 #cbcbcb,
	    inset 7px 7px 6px -6px #cbcbcb;
	border-color: #818181 #b8b8b8 #e5e5e5 #a8a8a8;
	border-width: 1px;
	border-style: solid;
}

span.magicbox.magicbox-normal {
	width: 173px;
	height: 18px;
}

span.magicbox.magicbox-large {
	width: 365px;	
	height: 26px;
}

span.magicbox.magicbox-normal.magicbox-with-button {
	width: 163px;
}

span.magicbox.magicbox-large.magicbox-with-button {
	width: 351px;
}

span.magicbox.magicbox-normal input[type=text] {
	padding: 2px;
	width: 169px;
	height: 14px;
	font-weight: normal;
	font-size: 11px;
	line-height: 14px;
}

span.magicbox.magicbox-large input[type=text] {
	padding: 5px 10px;
	width: 345px;
	height: 16px;
	font-size: 14px;
	font-weight: bold;
	line-height: 16px;
}

span.magicbox.magicbox-normal.magicbox-with-button input[type=text] {
	width: 150px;
}

span.magicbox.magicbox-normal span.button,
span.magicbox.magicbox-large span.button {
	top: -1px;
	background-image: url('/lib/Igglo/Form/Magicbox.png');
	background-repeat: no-repeat;
}
		
span.magicbox.magicbox-normal span.button {
	right: -11px;
	width: 20px;
	height: 20px;
	background-position: -28px 0;
}

span.magicbox.magicbox-large span.button {
	right: -15px;
	width: 28px;
	height: 28px;
	background-position: 0 0;
}

span.magicbox.magicbox-normal span.list,
span.magicbox.magicbox-large span.list {
	margin: 0;
	padding: 0;
	left: -1px;
	background-color: #fff;
	box-shadow:
		inset 1px 1px 0 0 #cbcbcb,
	    inset 7px 7px 6px -6px #cbcbcb;
	-moz-box-shadow:
		inset 1px 1px 0 0 #cbcbcb,
	    inset 7px 7px 6px -6px #cbcbcb;
	-webkit-box-shadow:
		inset 1px 1px 0 0 #cbcbcb,
	    inset 7px 7px 6px -6px #cbcbcb;
	border-color: #818181 #b8b8b8 #e5e5e5 #a8a8a8;
	border-width: 1px;
	border-style: solid;
	line-height: 16px;
	font-size: 11px;
	font-weight: normal;
	color: #2f2b2b;
}

span.magicbox.magicbox-normal span.list {
	width: 173px;
	top: 19px;
}

span.magicbox.magicbox-large span.list {
	top: 27px;
	width: 365px;
}

span.magicbox.magicbox-normal span.list.restrict-8,
span.magicbox.magicbox-large span.list.restrict-8 {
	height: 148px;
}

span.magicbox.magicbox-normal span.list.restrict-3,
span.magicbox.magicbox-large span.list.restrict-3 {
	height: 68px;
}

span.magicbox.magicbox-normal span.list span,
span.magicbox.magicbox-large span.list span {
	margin: 0;
	padding: 0 5px;
	height: 16px;
	line-height: 16px;
}

span.magicbox.magicbox-normal span.list span.selected,
span.magicbox.magicbox-large span.list span.selected {
	background-color: #bebebe;
}

span.magicbox.magicbox-normal span.list span.make-selection,
span.magicbox.magicbox-large span.list span.make-selection {
	height: 20px;
	line-height: 20px;
	font-size: 14px;
	font-weight: bold;
}

span.magicbox.magicbox-normal span.list span.no-result,
span.magicbox.magicbox-large span.list span.no-result {
	color: #ff1900;
	height: 20px;
	line-height: 20px;
	font-size: 14px;
	font-weight: bold;
}





/* New */

span.magicbox.magicbox-new,
span.magicbox.magicbox-large-new,
span.magicbox.magicbox-new span.list,
span.magicbox.magicbox-large-new span.list {
	background-color: #fff;
	border-color: #a2a2a2 #d9d9d9 #e2e2e2 #d9d9d9;
	border-width: 1px;
	border-style: solid;
	box-shadow: inset 0 20px 20px -20px rgba(0, 0, 0, .125);
	-moz-box-shadow: inset 0 20px 20px -20px rgba(0, 0, 0, .125);
	-webkit-box-shadow: inset 0 20px 20px -20px rgba(0, 0, 0, .125);
}
	
span.magicbox.magicbox-new {
	width: 210px;	
	height: 22px;
	margin: 0 10px 0 0;
	border-radius: 4px;	
	-moz-border-radius: 4px;	
	-webkit-border-radius: 4px;
}

span.magicbox.magicbox-large-new {
	width: 350px;
	height: 22px;
	margin: 0 10px 0 0;
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
}

span.magicbox.magicbox-new.magicbox-with-button {
	width: 150px;
}

span.magicbox.magicbox-large-new.magicbox-with-button {
	width: 250px;
}

span.magicbox.magicbox-new input[type=text] {
	padding: 1px 15px;
	width: 180px;
	height: 20px;
	line-height: 20px;
	font-family: Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #3b3b3b;
	outline: 0;
}

span.magicbox.magicbox-large-new input[type=text] {
	padding: 1px 15px;
	width: 320px;
	height: 20px;
	line-height: 20px;
	font-family: Arial, sans-serif;
	font-size: 12px;
 	font-weight: bold;
	color: #3b3b3b;
	outline: 0;
}

span.magicbox.magicbox-normal.magicbox-with-button input[type=text] {
	width: 150px;
}

span.magicbox.magicbox-new span.button,
span.magicbox.magicbox-large-new span.button {
	top: -1px;
	right: -15px;
	width: 28px;
	height: 28px;
	background-position: 0 0;
}

span.magicbox.magicbox-new span.list {
	margin: 0;
	padding: 0;
	left: -1px;
	top: 23px;
	width: 210px;
	line-height: 16px;
	font-size: 11px;
	font-weight: normal;
	color: #3b3b3b;
}

span.magicbox.magicbox-large-new span.list {
	margin: 0;
	padding: 0;
	left: -1px;
	top: 23px;
	width: 350px;
	line-height: 16px;
	font-size: 11px;
	font-weight: normal;
	color: #3b3b3b;
}

span.magicbox.magicbox-new span.list.restrict-8,
span.magicbox.magicbox-large-new span.list.restrict-8 {
	height: 148px;
}

span.magicbox.magicbox-new span.list.restrict-3,
span.magicbox.magicbox-large-new span.list.restrict-3 {
	height: 68px;
}

span.magicbox.magicbox-large-new span.list span,
span.magicbox.magicbox-new span.list span {
	margin: 0;
	padding: 0 5px;
	height: 16px;
	line-height: 16px;
}

span.magicbox.magicbox-new span.list span.selected,
span.magicbox.magicbox-large-new span.list span.selected {
	background-color: #bebebe;
}

span.magicbox.magicbox-new span.list span.make-selection,
span.magicbox.magicbox-large-new span.list span.make-selection {
	height: 20px;
	line-height: 20px;
	font-size: 14px;
	font-weight: bold;
}

span.magicbox.magicbox-new span.list span.no-result,
span.magicbox.magicbox-large-new span.list span.no-result {
	color: #ff0000;
	height: 20px;
	line-height: 20px;
	font-size: 14px;
	font-weight: bold;
}



