/************************   Bootstrap Additional CSS rules   ************************/
.w2gm-form-control-feedback.w2gm-glyphicon {
	color: #555555;
}

.w2gm-ajax-loading {
	background: url('../images/ajax-indicator.gif') no-repeat center;
}
.sidebar {
	float: right;
	width: 20%;
	margin-right: 1%;
}
.sidebar .postbox {
	min-width: inherit;
}
.sidebar .postbox h3 {
	padding: 10px;
}
.w2gm-settings-wrap {
	float: left;
	width: 78%;
	margin-right: 1%;
}
.w2gm-index-setting-row {
	border-top: 1px solid #DFDFDF;
}
.w2gm-index-setting-row th {
	text-align: center;
}
.w2gm-description-big {
	font-size: 14px;
	font-style: italic;
	font-weight: bold;
}
.w2gm-red-asterisk {
	color: red;
	font-weight: bold;
	font-size: 18px;
	line-height: 1px;
	padding: 2px;
}
.clear_float {
	clear: both;
}

/* Listing locations input */
.w2gm-locations-metabox {
	padding-bottom: 10px;
}

.w2gm-locations-metabox label {
	width: 160px;
	display: inline-block;
}
.w2gm-location-in-metabox {
	border-bottom: 1px solid #EFEFEF;
	padding: 15px 0;
}
.w2gm-location-input {
	overflow: hidden;
}
.w2gm-get-location {
	display: inline-block;
	right: 15px;
	top: 0;
	cursor: pointer;
}

/* Icons selection dialog */
.w2gm-icons-theme-name {
	font-size: 14px;
	color: black;
	font-weight: bold;
	padding-bottom: 4px;
	text-align: center;
} 
.w2gm-icons-theme-block {
	padding: 8px;
}
.w2gm-icon, .w2gm-png-image, .w2gm-fa-icon {
	padding: 3px;
	float: left;
	background-color: white;
	cursor: pointer;
	font-size: 25px !important;
}
.w2gm-selected-icon {
	background-color: #FCA057;
}
.w2gm-icon:hover, .w2gm-png-image:hover, .w2gm-fa-icon:hover {
	background-color: #EFEFEF;
}
.w2gm-selected-icon:hover {
	background-color: #FCA057;
}
.w2gm-icon-tag {
	font-size: 20px !important;
}
.w2gm-marker-icon-tag {
	box-shadow: none !important;
	display: inline-block;
	margin-right: 5px;
	vertical-align: middle;
	font-size: 23px !important;
}
.wp-picker-input-wrap {
	position: relative;
}


.w2gm-tax-dropdowns-wrap select {
    min-width: 200px
}

/* jQuery UI sortable widget customizations */
.ui-sortable-placeholder {
	background-color: #FFFBCC !important;
}
.ui-sortable tr, .w2gm-move-label {
	cursor: move;
}
.ui-sortable tr {
	cursor: move;
	background-color: #FCFCFC;
}
.ui-widget-overlay {
    background-repeat: repeat !important;
	z-index: 5 !important;
}

/* jQuery UI dialog close button */
.ui-dialog-titlebar-close::before {
	content: "";
}

.w2gm-content .ui-slider-horizontal {
	height: 8px;
}
.w2gm-content .ui-slider .ui-slider-handle.ui-corner-all {
	top: -8px;
	width: 21px;
	height: 21px;
	border-radius: 10px;
}

/* Content fields */
.w2gm-delete-selection-item {
	float: left;
	margin-right: 5px;
	cursor: pointer;
}
.w2gm-field {
	padding: 10px 0;
}
.w2gm-field-input-select {
	min-width: 200px
}
.w2gm-field-icon {
	box-shadow: none !important;
	margin-right: 5px;
	display: inline-block;
	vertical-align: middle;
}
.w2gm-content-fields-metabox .w2gm-field {
	padding: 10px 0;
	overflow: hidden;
}
.w2gm-content-fields-metabox .w2gm-field p {
	margin: 0;
}
.w2gm-week-day-wrap, .w2gm-week-day-clear-button {
	margin-top: 20px;
	margin-bottom: 20px;
}
.w2gm-week-day-wrap:first-child {
	margin-top: 0;
}
span.w2gm-week-day {
	display: inline-block;
	width: 160px;
}
/* Maximum width of 768 pixels. */
@media screen and (max-width: 768px) {
	span.w2gm-week-day {
		display: block;
	}
	span.w2gm-week-day-controls {
		display: block;
	}
}

#w2gm-upload-functions {
	margin: 20px 0 40px;
}
.w2gm-upload-option {
	margin: 10px 0;
}
.w2gm-attached-item {
	float: left;
	margin: 15px;
}
.w2gm-attached-item > label {
	display: block;
}
.w2gm-img-div-border {
	background-color: #FFFFFF;
	border: 2px solid #DAE2E8;
	text-align: center;
	margin: 0 auto;
	margin-bottom: 15px;
}
.w2gm-img-div-border > a {
	display: inline-block;
}
.w2gm-img-div-border img {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 none !important;
	background: none repeat scroll 0 0 #FFFFFF !important;
	box-shadow: none !important;
	vertical-align: middle !important;
	border-radius: 0;
}
.w2gm-img-div-helper {
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}
.w2gm-delete-attached-item {
	width: 20px;
	height: 20px;
	background: url('../images/delete.png') no-repeat center;
	cursor: pointer;
}

.w2gm-maps-canvas {
	margin: 20px 0;
	border: 1px solid black;
}
.w2gm-maps-canvas .gm-style img {
	max-width: none !important;
	box-shadow: none !important;
}
.w2gm-maps-canvas .gm-style label {
	width: auto !important;
	display: inline !important;
}
.w2gm-maps-canvas .gm-style-cc > div {
	word-wrap: normal;
}

.w2gm-map-marker, .w2gm-map-marker-empty {
	border-radius: 50% 50% 50% 0;
	height: 40px;
	margin: -30% 0;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	width: 40px;
	cursor: pointer;
	text-align: center;
}
.w2gm-map-marker:after {
	background: #fff none repeat scroll 0 0;
	border-radius: 50%;
	content: "";
	display: block;
	height: 78%;
	left: 11%;
	position: absolute;
	top: 11%;
	width: 78%;
}
.w2gm-map-marker-empty:after {
	background: #fff none repeat scroll 0 0;
	border-radius: 50%;
	content: "";
	display: block;
	height: 40%;
	left: 32%;
	position: absolute;
	top: 28%;
	width: 40%;
}
.w2gm-map-marker .w2gm-map-marker-icon {
	font-size: 22px !important;
	position: relative;
	top: 20%;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	z-index: 1;
	vertical-align: middle;
}

.w2gm-badge {
	border-radius: 10px;
	color: #ffffff;
	display: inline-block;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	min-width: 10px;
	padding: 3px 7px;
	text-align: center;
	vertical-align: baseline;
	white-space: nowrap;
}
.w2gm-listing-status-active, .w2gm-invoice-status-paid {
	background-color: #5BB75B;
}
.w2gm-listing-status-expired {
	background-color: #DA4F49;
}
.w2gm-listing-status-unpaid, .w2gm-invoice-status-unpaid {
	background-color: #FAA732;
}
.w2gm-listing-status-stopped, .w2gm-invoice-status-pending {
	background-color: #000000;
}

/* We do not need restore section in vafpress-framework */
#section_restore {
	display: none !important;
}


/* 
	Bootstrap has default img max-width set to 100% and for some reason lightbox stops resizing
	http://stackoverflow.com/questions/17523977/lightbox-v2-shrinks-the-image-in-the-box
*/
.lb-image{
	max-width: inherit;
}

.w2gm-admin-table label input[type="checkbox"] {
    margin-top: 3px !important;
	margin-left: 0 !important;
}

#w2gm-upload-wrapper {
	margin-bottom: 50px;
}

.vp-wrap .vp-checkbox .field label, .vp-wrap .vp-radiobutton .field label {
  display: block !important;
}

/* Content fields and Groups */
.wp-list-table.contentfields tbody tr:nth-child(odd) {
	background: #f9f9f9
}
.w2gm-nested-sortable-wrapper {
	width: 500px;
}
ul.w2gm-nested-sortable, ul.w2gm-nested-sortable ul {
	list-style-type: none;
	/* margin: 20px 0; */
}
ul.w2gm-nested-sortable li, ul.w2gm-nested-sortable ol li {
	background: linear-gradient(to bottom, #ffffff 0%, #f6f6f6 47%, #ededed 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
	border-color: #d4d4d4 #d4d4d4 #bcbcbc;
	border-image: none;
	border-radius: 3px;
	border-style: solid;
	border-width: 1px;
	cursor: move;
	margin: 10px 0;
	padding: 10px 20px;
}
ul.w2gm-nested-sortable li.w2gm-sortable-group, ul.w2gm-nested-sortable ol li.w2gm-sortable-group {
	background: linear-gradient(to bottom, #ffffff 0%, #A6A6A6 47%, #A6A6A6 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
	border-color: #d4d4d4 #d4d4d4 #bcbcbc;
}

.w2gm-updated, .w2gm-error {
	margin: 5px 0 15px;
	padding: 0 0.6em;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	border-style: solid;
	border-width: 1px;
	display: block;
}
.w2gm-updated p, .w2gm-error p {
	margin: 1em !important;
}
.w2gm-updated {
	background-color: #FFFFE0;
	border-color: #E6DB55;
}
.w2gm-error {
	background-color: #FFEBE8;
	border-color: #CC0000;
}
