#VFG {
    width: 282px;
    height: 282px;
    color: #000000;
}

#VFG h3 {
    color: #ff0000;
    font-size: 18px;
    margin: 15px 0 0 20px;
    text-align: left;
}

.ui-selectmenu-menu {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    display: none;

	color: white;
}

#VFG .ui-selectmenu-menu .ui-menu {
    overflow: auto;
    /* Support: IE7 */
    overflow-x: hidden;
    padding-bottom: 1px;
}

#VFG .ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
    font-size: 1em;
    font-weight: bold;
    line-height: 1.5;
    padding: 2px 0.4em;
    margin: 0.5em 0 0 0;
    height: auto;
    border: 0;
}

.ui-selectmenu-open {
    display: block;
    visibility: visible;

    max-height: 220px;
    min-width: 150px;
}

#VFG table {
	width: 100%;
}

#VFG td {
	height: 30px;

	vertical-align: middle;
}

#VFG td + td {
	width: 60%;
}

#vfg_Submit {
	margin: 10px auto;
}

#VFG .ui-selectmenu-button {
    display: inline-block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    cursor: pointer;

    height: 25px !important;
    box-sizing: border-box;
}

#VFG h3 {
	color:#ff0000;
	font-size: 18px;
	margin:15px 0 0 20px;
	text-align:left;
}

#VFG fieldset {
	border:none;
	padding:0;
	height: 18px;
	margin:17px 0;
}

#VFG .ui-selectmenu { 
	display: block; 
	position:relative; 
	text-decoration: none; 
	overflow:hidden;
}

#VFG .ui-selectmenu-button {
	position: relative;
	display:block;
	padding:7px 0 0 10px;
    color:#000000;
	font:normal 12px helvetica;
	background:url(../../images/metraonline/form_bg_long.png) no-repeat 0 0;
	height:100%;
	cursor: pointer;
}

#VFG .ui-icon-triangle-1-s {
	display: block;
	width: 19px;
	height: 25px;
	position: absolute;	
	right: 0; top: 0;
	background: url('/images/metraonline/form_arrows.jpg') no-repeat 0 0;
}

#VFG .ui-selectmenu-disabled .ui-icon-triangle-1-s {
	background-position: 0 -75px;
}

#VFG .ui-selectmenu-button.ui-state-hover .ui-icon-triangle-1-s, 
#VFG .ui-selectmenu-button.ui-state-focus .ui-icon-triangle-1-s
{
	background-position: 0 -25px;
}

#VFG .ui-selectmenu-button.ui-state-hover {
	background-position: 0 -25px;
}

#VFG .ui-selectmenu-disabled {
	background-position: 0 -75px;
	color: #666;
	cursor: default;
}

.ui-menu {
	background: #666;
	color: white;

	width: auto;
	max-height: 200px;
	overflow-y: scroll;
}

.ui-menu-item {
	padding-left: 12px;
}

.ui-widget-content {
	list-style-type: none;
	padding: 0;
}

.ui-widget-content .ui-state-focus {
	background: #ef4130;
}

#VFG #submit {
	background: url('/images/metraonline/button-repeat.png') repeat-x 0 0;
	border-radius:10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border:none;
	width:174px;
	height:30px;
	cursor:pointer;
	margin-left:32px;
	color:#fff;
	font-size: 14px;
	padding:0 0 0 0;
    margin-top: 23px;
	text-transform: uppercase;
}

#VFG  #submit cufon {
    position: relative;
    top:-2px;
}

#VFG #submit:active {
	background-position: 0 -30px;
}

#VFG {
	position: relative;
}

#VFG p {
	display: block;
	text-align: center;
	margin: 12px auto;
}

#vfg_overlay {
	position: absolute;
	bottom: 0;
	left: 0;
}

#vfg_msg {
	display: none;
	border: 1px dashed #733;
	width: 200px;
	margin: 0 auto;
	text-align: center;
	border-radius: 4px
}

#vfg_loading_msg {
	display: block;
	color: #000;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* metraonline */

#VFG.front-vfg {
	text-align: left;

    background: url(../../images/metraonline/vfg_bg.png) no-repeat 0 0;
    float: left;
    margin: 20px 0 0 20px;
}

#VFG.front-vfg form {
	margin: 0 20px;
}

.front #VFG.front-vfg {
	margin: 3px 0 0 30px;
}

/* metradealer */

#tabs_search #VFG {
	float: right;
}

#tabs_search #VFG form {
	background: none;
	border: 0;
	padding: 0;
}

#tabs_search #VFG td {
	border: 0;
	padding: 0;
}

#tabs_search #VFG #vfg_overlay {
	position: absolute;
	top: 0;
	left: 0;
}