/* Main metabox */
#udb-main-metabox {
	background-color: transparent;
	border: 0;
	box-shadow: none;
}

#udb-main-metabox > .inside {
	padding-left: 0;
	padding-right: 0;
}

#udb-main-metabox .hndle,
#udb-main-metabox .handlediv,
#udb-main-metabox > .postbox-header {
	display: none;
}

/* Metabox fields */
.udb-metabox-field {
	margin-bottom: 15px;
}

.udb-metabox-field:last-child {
	margin-bottom: 0;
}

.udb-metabox-field label {
	display: inline-block;
	margin-bottom: 5px;
}

/* Icon preview */
#udb-main-metabox .icon-preview i {
	height: 120px;
	width: 120px;
	font-size: 36px;
	line-height: 120px;
	border-radius: 2px;
	text-align: center;
	background: #eee;
}

/* Input fields */
#udb-main-metabox input[type="text"],
#udb-main-metabox input[type="password"],
#udb-main-metabox input[type="number"],
#udb-main-metabox input[type="email"],
#udb-main-metabox input[type="url"],
#udb-main-metabox textarea,
#udb-main-metabox select {
	width: 100%;
}

/* H2 font-weight fix */
#udb-main-metabox h2 {
	font-weight: 600;
}

/* Conditional display */
#udb-main-metabox .widget-fields [data-type].is-active {
	display: block;
}

#udb-main-metabox .widget-fields [data-type] {
	display: none;
}

/* CodeMirror fix */
#udb-main-metabox .CodeMirror-wrap {
	border: 1px solid #ddd;
}

#udb-main-metabox .CodeMirror-sizer {
	margin-left: 46px !important;
}

#udb-main-metabox .CodeMirror-linenumbers {
	width: 29px !important;
}

/* PRO metabox */
.udb-pro-metabox-content li {
	list-style: disc;
	margin-left: 15px;
}

/* User role & user access metabox */
.select2-container {
	width: 100% !important;
}

/* Contact form widget */
.udb-form-widget-log-entry {
	background: #f1f1f1;
	padding: 20px;
	margin-bottom: 10px;
}

.udb-form-widget-log-entry:last-child {
	margin-bottom: 0;
}

.udb-form-widget-success-notice {
	padding: 10px 20px;
	background: #27aa39;
	color: #fff;
	text-align: center;
	margin-bottom: 20px;
}

.udb-form-widget-error-notice {
	padding: 10px 20px;
	background: #ce0a0a;
	color: #fff;
	text-align: center;
	font-weight: 600;
	margin-bottom: 20px;
}

#udb-form-widget-custom-recipient {
	display: none;
	margin: 10px 0;
}

.udb-form-widget-log-entry-indicator {
	height: 8px;
	width: 8px;
	border-radius: 100%;
	display: inline-block;
	margin-right: 5px;
}

.udb-form-widget-log-entry-indicator.error {
	background: #ce0a0a;
}

.udb-form-widget-log-entry-indicator.success {
	background: #27aa39;
}
