
.mai-metabox .cmb-row:not(.cmb-repeatable-grouping) {
	border: none !important;
}

.mai-metabox .cmb-type-group {
	max-width: 100% !important;
}

.mai-metabox .cmb-repeat-group-wrap .cmb-th,
.mai-metabox .cmb-repeat-group-wrap .cmb-td {
	float: none;
	width: 100% !important;
}

.mai-metabox .cmb-repeat-group-wrap .cmb-th label {
	font-size: 14px;
}

.mai-metabox .cmb-repeat-group-wrap .cmb2-upload-button {
	float: none !important;
}

.cmb2-postbox .mai-metabox .cmb-row:not(.cmb-repeatable-grouping):not(.mai-section-advanced-settings-title):not(.cmb-type-checkbox) {
	padding: 10px 0 0 !important;
	margin-bottom: 8px !important;
}

.mai-metabox .cmb2-metabox-description {
	display: block !important;
	color: #444 !important;
	font-size: 13px !important;
	font-style: italic !important;
	padding-top: .5em !important;
}

.cmb2-postbox .mai-metabox .cmb-row.cmb-type-checkbox {
	padding: 0 !important;
	margin-bottom: 8px !important;
}

.mai-metabox .cmb-type-checkbox .cmb2-metabox-description {
	display: inline-block !important;
	font-style: normal !important;
	padding-bottom: 0 !important;
	margin: 2px 0 5px !important;
}

.mai-metabox #cmb2-metabox-mai_static_archive_settings .cmb-row.cmb2-id-mai-content-archives-title .cmb2-metabox-title,
.mai-content-archive-metabox .cmb2-id-more-link .cmb-th label,
.mai-content-archive-metabox .cmb2-id-content-archive-limit label,
.mai-content-archive-metabox .cmb2-id-image-location label,
.mai-content-archive-metabox .cmb2-id-image-size label,
.mai-content-archive-metabox .cmb2-id-image-alignment label {
	display: none;
}

#mai_post_banner .cmb-th {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	border: 0;
	overflow: hidden;
}

#mai_post_banner .cmb-th:focus {
	clip: auto !important;
	height: auto;
	width: auto;
	display: block;
	font-size: 1em;
	font-weight: bold;
	padding: 15px 23px 14px;
	color: #323232;
	background: #fff;
	z-index: 100000; /* Above WP toolbar. */
	text-decoration: none;
	-webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.6);box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}

#mai_post_banner.cmb2-postbox .mai-metabox .cmb-row.cmb2-id-hide-banner {
	padding: 0 !important;
	margin: 0 !important;
}

#mai_post_banner.cmb2-postbox .mai-metabox .cmb-row.cmb2-id-banner {
	margin: 0 0 1em !important;
}

#mai_post_banner.cmb2-postbox .mai-metabox .cmb-row .cmb2-upload-button,
#mai_post_banner.cmb2-postbox .mai-metabox .cmb-row .cmb2-media-item p {
	margin: 0;
}

#mai_post_settings.cmb2-postbox .mai-metabox .cmb-row.cmb2-id-hide-banner .cmb-th:first-of-type,
#mai_post_settings.cmb2-postbox .mai-metabox .cmb-row.cmb2-id-hide-banner .cmb-th:first-of-type > label {
	display: none;
	visibility: hidden;
}

#mai_sections_repeat .cmb-field-list {
	margin: 0;
}

.mai-section {
	position: relative;
	margin-left: calc( -1em - 2px );
	margin-right: calc( -1em - 2px );
	margin-bottom: 6px;
	border: 1px solid #e9e9e9;
	border-top: none;
	overflow: hidden;
}

.mai-section-settings {
	-webkit-transition: margin 0.3s;-o-transition: margin 0.3s;transition: margin 0.3s;
}

.mai-section-settings-inner {
	height: calc( 100% - 32px ); /* 100% - padding cause no border box in admin */
	padding: 16px;
	overflow-x: hidden;
	overflow-y: auto;
}


.mai-section-settings {
	width: 260px;
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	background-color: #f5f5f5;
	padding: 0;
	margin: 0 -261px 0 0; /* 260px panel width + border */
	border-left: 1px solid #e9e9e9;
	z-index: 99;
}

.mai-section-advanced-settings {
	background-color: rgba(0, 0, 0, 0.05);
	padding: 16px;
	margin-top: 32px;
}

.cmb2-postbox .mai-section-settings .mai-section-advanced-settings-title {
	background-color: rgba(0, 0, 0, 0.05);
	padding: 6px 12px;
	margin: -16px -16px 0;
}

.mai-section-content {
	padding: 16px;
	margin-right: 0;
}

.mai-section-content::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	background-color: rgba(0, 0, 0, 0.2);
	-webkit-transition: opacity 0.3s ease-in-out;
	-o-transition: opacity 0.3s ease-in-out;
	transition: opacity 0.3s ease-in-out;
	opacity: 0;
	z-index: -1;
}

.mai-settings-open .mai-section-settings {
	margin-right: 0;
	-webkit-box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

.mai-settings-open .mai-section-content {
	position: relative;
}

.mai-settings-open .mai-section-content:hover {
	cursor: pointer;
}

.mai-settings-open .mai-section-content::after {
	opacity: 1;
	z-index: 1;
}

.mai-section-settings .mai-section-settings-toggle-wrap {
	display: block;
	position: absolute;
	top: 12px;
	right: calc( 100% + 16px );
	padding: 0 !important;
	margin: -9px 0 0 !important;
}

.mai-section-settings .mai-section-settings-toggle-wrap .cmb2-metabox-title {
	padding: 0;
	margin: 0;
}

.mai-section-settings-close {
	margin-bottom: 8px !important;
}

.mai-section-settings .button {
	width: auto;
	display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;
	-webkit-box-align: center;-ms-flex-align: center;align-items: center;
}

.mai-section-settings .button .dashicons {
	margin-right: 4px;
}

.mai-settings-open .mai-section-settings .mai-section-settings-toggle-wrap {
	margin-bottom: 0;
}

.mai-section-settings select {
	width: 100%;
}

.mai-section-settings .cmb2-media-status .img-status img {
	width: 100%;
}

#mai-sections-importexport-toggles {
	display: inline-block;
	margin: 16px 0;
	padding: 0 36px 0 0;
	border-bottom: 1px solid #ccc;
}

#mai-sections-importexport-toggles li {
	margin-bottom: 0;
}

#mai-sections-importexport-toggles .mai-importexport-toggle {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 0 -1px 0;
	border: 1px solid transparent;
	border-radius: 3px 3px 0 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	outline: none;
}

#mai-sections-importexport-toggles .mai-importexport-toggle.active {
	color: #555;
	text-decoration: none;
	border-color: #ccc;
	border-bottom-color: #fff;
}

#mai_sections_importexport textarea#mai_sections_json_import,
#mai_sections_importexport textarea#mai_sections_json_export {
	width: 99%;
}

#mai_sections_importexport label[for="mai_sections_json_import_images"] {
	display: inline-block;
	max-width: calc( 100% - 26px );
	margin-bottom: 4px;
}
