/* Thick Box Styles */
#TB_closeWindowButton img, #TB_closeWindowButton .tb-close-icon {
	display:none;
}

#TB_closeAjaxWindow {
	padding: 5px;
}

#TB_closeWindowButton {
	display: block;
	width: 21px;
	height: 21px;
	margin-right: 5px;
	background: url('../images/big_red_x.png') no-repeat;
}

#TB_window {
	top: 50% !important;
	left: 50% !important;
	width: 945px !important;
	max-width: 100%;
	min-height: 80%;
	height: 768px !important;
	max-height: 100%;
	transform: translate(-50%, -50%);
	margin: 0 !important;
}

#TB_window.delete-confirmation {
	min-width: 200px;
	width: auto !important;
	min-height: 200px;
	height: auto !important;
}

#TB_iframeContent {
	width: 100% !important;
	height: calc(100% - 36px) !important;
}

#TB_ajaxContent {
    width: calc(100% - 30px) !important;
    height: calc(100% - 66px) !important;
	padding: 15px;
}

#TB_title {
	height: 35px;
	background-color: #333;
	color: #EEE;
	line-height: 35px;
}

.contentad a.thickbox {
	font-size: 12.5pt;
}

/* Spinner Styles */
.loading_bg {
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.8);
	width: 100%;
	height: 100%;
	display: none;
	opacity: 0;
	-webkit-transition: opacity .5s ease-in;
	-moz-transition: opacity .5s ease-in;
	-ms-transition: opacity .5s ease-in;
	-o-transition: opacity .5s ease-in;
	transition: opacity .5s ease-in;
}

.loading_bg.show {
	display: block;
	opacity: 1;
}

.loading_bg.iframe {
	position: relative;
	top: auto;
	left: auto;
	background: rgba(0, 0, 0, 0.3);
	height: calc(100% - 36px);
}

.loader {
	position: absolute;
	display: table-cell;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	vertical-align: middle;
	background: #FFF;
	-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
    box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
	padding: 10px 30px;
	font-weight: bold;
	width: 200px;
	max-width: 80%;
	height: 175px;
	max-height: 80%;
}

.loader p {
	font-size: 16px;
}

/* Settings Page */
.settings-container {
	max-width: 700px;
}

.menu-masthead {
	border-bottom: 1px solid #333;
	margin-bottom: 10px;
}

.menu-masthead .icon32-contentad-settings,
.menu-masthead .menu-header {
	display: inline-block;
}

.settings-container .menu-header {
	margin-top: 26px !important;
	padding-right: 0;
	float: right;
	vertical-align: bottom;
	color: #333;
}

.settings-container .form-table th {
	width: auto;
	padding: 15px 10px 15px 0;
	display: table-cell;
	vertical-align: top;
}

.wrap.contentad table.form-table th {
	width: 30px;
}

.form-table td {
	padding: 10px 10px 20px 0;
	display: table-cell;
}

.contentad_instructions_h2 {
	color:black;
	font-size: 12.5pt;
	line-height: 26px;

}

.contentad_step {
	width: 26px;
	height: 26px;
	display: inline-block;
	background-color: #F15B3B;
	border-radius: 50%;
	margin: 0;
	padding: 0;
	line-height: 26px;
	text-align: center;
	font-size: 16px;
	color: #fff;
}

.contentad_instructions_help {
  display: block;
	margin-left: 60px;
	font-size: 10pt;
	line-height: 26px;
	font-style: italic;
}

.conentad .menu-header {
	padding-top: 50px;
}

.cad-success-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	background-image: url( '../images/sm_icon_active.png' );
	background-repeat: no-repeat;
}

.cad-error-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	margin-top: 5px;
	background-image: url( '../images/sm_icon_inactive.png' );
	background-repeat: no-repeat;
}

#icon-contentad {
	background: url( '../images/ca_logo.png' ) no-repeat;
}

/* Widgets page */
.wrap h2 a.add-new-h2, .wrap ul.subsubsub, .wrap form#posts-filter div.tablenav .actions {
	display: none;
}

.wrap .add-new-h2 {
	margin: 0 3px;
	padding: 3px 8px;
}

.wrap #logo {
	height: 34px;
	margin: 0 0.3em -3px 0;
}

.wrap .page-title-action {
	display: inline-block;
	white-space: nowrap;
	margin: 0.2em;
}

.wrap form#posts-filter p.search-box {
	margin-bottom: 0.5em;
}

.wrap h1 .subtitle {
	display: block;
}

.ca-indent-section {
	margin-left: 25px;
	display: none;
}

.selected .ca-indent-section {
	display: block;
}

.wrap p.error {
	background:#FFEBE8;
	border: 1px solid #C00;
	padding: 5px 10px;
	max-width: 300px;
}

span.contentad-active-state {
	display: inline-block;
	background: #94ad71; /* Old browsers */
	background: -moz-linear-gradient(top,  #94ad71 0%, #66902e 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#94ad71), color-stop(100%,#66902e)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #94ad71 0%,#66902e 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #94ad71 0%,#66902e 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #94ad71 0%,#66902e 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #94ad71 0%,#66902e 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#94ad71', endColorstr='#66902e',GradientType=0 ); /* IE6-9 */
	padding: 1px 7px 2px;
	font-size: 12px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	line-height: 140%;
	color: #fff;
}

span.contentad-inactive-state {
	display: inline-block;
	background: #aaaaaa; /* Old browsers */
	background: -moz-linear-gradient(top,  #aaaaaa 0%, #666666 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#aaaaaa), color-stop(100%,#666666)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #aaaaaa 0%,#666666 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #aaaaaa 0%,#666666 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #aaaaaa 0%,#666666 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #aaaaaa 0%,#666666 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#aaaaaa', endColorstr='#666666',GradientType=0 ); /* IE6-9 */
	padding: 1px 7px 2px;
	font-size: 12px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	line-height: 140%;
	color: #fff;
}

span.contentad-inactive-state:hover, span.contentad-active-state:hover {
    cursor: pointer;
}

[id^=deleteConfirmation_] {
	display: none;
}

.delete-confirmation {
	text-align: center;
}

.cad-delete {
	margin-right: 30px;
}

.no_excludes .inline-edit-categories .title, 
.no_excludes .inline-edit-categories label, 
.no_excludes .inline-edit-tags .title {
	color: rgba(51,51,51,.5);
}

@media screen and (max-width: 782px) {
	
	/* Thick Box Styles */
	#TB_window {
		max-width: 100%;
		min-height: 100%;
		height: 100% !important;
	}
	
	/* Settings Page */
	.contentad_instructions_help {
		margin-left: 0;
		line-height: normal;
	}
	
	/* Widgets page */
	.wrap .column-placement, .wrap .column-exc_cats, .wrap .column-exc_tags, .wrap .column-last_edited, .wrap .column-widget_stats, .wrap .column-widget_active {
		display: none;
	}

	.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column):not(.column-widget_title) {
		padding: 3px 8px 3px 35%;
	}
	
	.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-widget_title::before {
		content: "";
	}

	.wrap .page-title-action {
		display: inline-block;
		margin: 0 0.2em 11px 0.2em;
		padding: 0.2em 0.5em;
	}
}