/* ==================================================
   BRANDED DIALOG SKIN (jQuery UI 1.12.1) -- class "vrs-dialog"
   --------------------------------------------------
   Ported from LaborRateHero's "lrh-dialog" skin. Attach via the dialog's
   `dialogClass: "vrs-dialog"` option. The chrome rules (frame, titlebar, title,
   close button) apply to any dialog with the class; the image-only
   `.ratecard-img*` rules at the bottom self-scope -- they only take effect where
   those elements actually exist (the image lightboxes), so form dialogs that
   share the class are unaffected by them.

   Every selector is prefixed `.ui-dialog.vrs-dialog` (specificity 0,3,0) ON
   PURPOSE so it beats jquery-ui.min.css's `.ui-dialog .ui-dialog-*` rules
   (0,2,0) regardless of load order. Do not "simplify" these selectors.
   ================================================== */

.ui-dialog.vrs-dialog {
	padding: 0px;
	border: none;
	border-radius: 10px;
	box-shadow: 0px 14px 44px rgba(0, 0, 0, 0.35);
	overflow: hidden;            /* clip children to the rounded corners */
	background: #ffffff;
	font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ui-dialog.vrs-dialog .ui-dialog-titlebar {
	background: #0095cc;         /* VRS menu blue (#00aeef), darkened a notch for white-text contrast */
	border: none;
	border-radius: 0px;
	color: #ffffff;
	padding: 0px;
	height: 44px;                /* fixed bar height; title is positioned absolutely */
	position: relative;
}

/* The title is absolutely positioned (out of normal flow) so a long title cannot
   stretch a width:auto dialog wider than its image. It instead truncates with an
   ellipsis, filling the bar between the left edge and the reserved close-button
   space on the right. */
.ui-dialog.vrs-dialog .ui-dialog-title {
	position: absolute;
	left: 16px;
	right: 46px;                 /* reserve room for the close button */
	top: 50%;
	transform: translateY(-50%);
	margin: 0px;
	font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ui-dialog.vrs-dialog .ui-dialog-titlebar-close {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 28px;
	height: 28px;
	margin: -14px 0px 0px 0px;
	padding: 0px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
	/* Collapse jQuery UI's bare "Close" text node; the glyph below sets its own
	   font-size so the "x" still renders. */
	font-size: 0px;
	transition: background 0.15s ease;
}

.ui-dialog.vrs-dialog .ui-dialog-titlebar-close:hover,
.ui-dialog.vrs-dialog .ui-dialog-titlebar-close:focus {
	background: rgba(255, 255, 255, 0.32);
}

/* Hide the spacer span and repurpose jQuery UI's icon span as a clean white "x".
   The glyph lives on the span, NOT on the button via ::before, because
   WebKit/Blink do not render pseudo-elements on <button> elements. */
.ui-dialog.vrs-dialog .ui-dialog-titlebar-close .ui-button-icon-space {
	display: none;
}

.ui-dialog.vrs-dialog .ui-dialog-titlebar-close .ui-icon {
	position: static;
	display: block;
	width: 100%;
	height: 28px;
	margin: 0px;
	padding: 0px;
	background: none;            /* kill the default UI sprite */
	text-indent: 0px;           /* default .ui-icon hides text with text-indent */
	overflow: visible;
	color: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 22px;
	line-height: 28px;
	text-align: center;
}

.ui-dialog.vrs-dialog .ui-dialog-titlebar-close .ui-icon::before {
	content: "\00d7";           /* x */
}

.ui-dialog.vrs-dialog .ui-dialog-content {
	padding: 14px;
	background: #ffffff;
}

/* --------------------------------------------------
   Image-lightbox-only rules (self-scope: only match where the markup exists)
   -------------------------------------------------- */

.ui-dialog.vrs-dialog .ratecard-img-wrap {
	margin: 0px auto;
}

.ui-dialog.vrs-dialog .ratecard-img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(92vw, 760px);
	max-height: 78vh;
	margin: 0px auto;
	border-radius: 6px;
}
