/*
@author Matthew Hogg
This stylesheet is to make the Olympic "Email a Friend" form appear in a lightbox popup which looks just like the one
found on vehicle pages (e.g., /gm/english/vehicles/buick/lacrosse/highlights01). These styles were copied/pasted from
htdocs\css\vehicles\common\ovp\masterTemplate.css (starting around line 507). Some rules were discarded since they
aren't needed here, and other rules were modified slightly, mostly to account for differences in the base/default CSS
for corporate pages, which aren't consistent with the regular site.
*/

.ui-helper-clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.ui-helper-clearfix {
	display: inline-block;
}

/* required comment for clearfix to work in Opera \*/
* html .ui-helper-clearfix {
	height: 1%;
}

.ui-helper-clearfix {
	display: block;
}
/* end clearfix */

.ui-helper-zfix {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	opacity: 0;
	filter:Alpha(Opacity=0);
}

/* states and images */
.ui-icon {
	display: block;
	text-indent: -9999px;
	overflow: hidden;
	background-repeat: no-repeat;
}

/* icons and positioning */
.ui-icon {
	width: 16px;
	height: 16px;
}

.ui-icon,
.ui-widget-content .ui-icon,
.ui-widget-header .ui-icon {
	background-image: url(/images/vehicles/common/ovp/ui-icons_222222_256x240.png);
}

.ui-state-default .ui-icon {
	background-image: url(/images/vehicles/common/ovp/ui-icons_888888_256x240.png);
}

.ui-state-hover .ui-icon,
.ui-state-focus .ui-icon,
.ui-state-active .ui-icon {
	background-image: url(/images/vehicles/common/ovp/ui-icons_454545_256x240.png);
}

.ui-state-highlight .ui-icon {
	background-image: url(/images/vehicles/common/ovp/ui-icons_2e83ff_256x240.png);
}

.ui-state-error .ui-icon,
.ui-state-error-text .ui-icon {
	background-image: url(/images/vehicles/common/ovp/ui-icons_cd0a0a_256x240.png);
}

.ui-widget-header .ui-icon {
	background-position: -96px -126px;
}

/* Dialog */
.ui-dialog {
	position: relative;
	padding: .2em;
	text-align: left;
}

.ui-dialog div {
	float: none; /* MH: why are divs set float:left in default.css? */
}

.ui-dialog table td {
	color: #222; /* MH: XM Radio pages set a blue color on all <td>s... */
}

.ui-dialog .ui-dialog-titlebar {
	padding: .5em .3em .3em 1em;
	position: relative;
}

.ui-dialog .ui-dialog-title {
	float: left;
	margin: .1em 0 .2em;
	font-size:2em;
}
 
.ui-dialog .ui-dialog-titlebar-close {
	position: absolute;
	right: .3em;
	top: 50%;
	width: 19px;
	margin: -10px 0 0 0;
	padding: 1px;
	height: 18px;
}

.ui-dialog .ui-dialog-titlebar-close span {
	display: block;
	margin: 1px;
}

.ui-dialog .ui-dialog-titlebar-close:hover,
.ui-dialog .ui-dialog-titlebar-close:focus {
	padding: 0;
}

.ui-dialog .ui-dialog-content {
	border: 0;
	padding: .5em 1em;
	background: none;
	overflow: auto;
	zoom: 1;
	font-size: 1em;
	line-height: 14px;
}

.ui-dialog .ui-dialog-buttonpane {
	text-align: left;
	border-width: 1px 0 0 0;
	background-image: none;
	margin: .5em 0 0 0;
	padding: .3em 1em .5em .4em;
}

.ui-dialog .ui-dialog-buttonpane button {
	float: left;
	margin: .5em .4em .5em 0;
	cursor: pointer;
	padding: .2em .6em .3em .6em;
	line-height: 1.4em;
	width:auto;
	overflow:visible;
}

.ui-dialog p {
	line-height: 120%;
	font-size: 100%; /* Font-size is needed since base CSS is done differently on corporate pages */
	margin: 0;
	padding: 0;
}

.ui-dialog input,
.ui-dialog textarea {
	margin: 3px 0;
	padding: 0;
}

.ui-dialog label.error {
	background-color: #fcc;
	color: #f00;
	font-weight: bold;
	margin: 5px;
	padding: 5px;
}

.ui-dialog .errors {
	color: #f00;
	font-weight: bold;
	margin-bottom: 15px;
}

.ui-dialog ul {
	list-style: disc;
	list-style-position: inside;
}

.ui-dialog .errors li {
	margin: 3px 0;
}

/* Component containers */
.ui-widget-content {
	border: 1px solid #aaa;
	background: #fff url(/images/vehicles/common/ovp/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;
	color: #222;
}

.ui-widget-content a {
	color: #222;
}

.ui-widget-header {
	border: 1px solid #aaa;
	background: #ccc url(/images/vehicles/common/ovp/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;
	color: #222;
	font-weight: bold;
}

.ui-widget-header a {
	color: #222;
}

/* Overlays */
.ui-widget-overlay {
	position: absolute;
	left: 0px;
	top: 0px;
	background: #aaa url(/images/vehicles/common/ovp/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
	opacity: .50;
	filter: Alpha(Opacity=50);
}

.ui-widget-shadow {
	margin: -8px 0 0 -8px;
	padding: 8px;
	background: #aaa url(/images/vehicles/common/ovp/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
	opacity: .50;
	filter: Alpha(Opacity=50);
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
}