#mc-generator .wptab {
	margin-top: 0;
	padding: 12px;
	border: 1px solid #ccc;
	background: #fff;
}

.mc-builder {
	display: grid;
	grid-template-columns: 70% auto;
	column-gap: 20px;
}

#mcs_custom-fields_tab .field-group {
	display: grid;
	column-gap: 20px;
	row-gap: 10px;
	grid-template-columns: repeat( 2, 1fr );
	align-items: end;
}

#mcs_custom-fields_tab .field-input-notice,
#mcs_custom-fields_tab .field-input-view,
#mcs_custom-fields_tab .editor-field-row,
#mcs_custom-fields_tab .new-field-row {
	padding: 2rem 1rem;
	border-radius: 3px;
	margin-bottom: 1rem;
	background: rgba( 0,0,0,.04 );
}

#mcs_custom-fields_tab .field-input-notice {
	background: rgba( 0,0,0,.15 );
	position: relative;
	z-index: 2;
}

#mcs_custom-fields_tab .field-row legend {
	margin-top: -.5em;
}

#mcs_custom-fields_tab .mcs-field-editor {
	position: relative;
}

#mcs_custom-fields_tab .mcs-editor-controls {
	position: absolute;
	right: 0;
	top: 0;
	display:flex;
	flex-wrap: wrap;
	column-gap:4px;
}

.mcs-template-tags {
	display: flex;
	flex-wrap: wrap;
	row-gap: 3px;
	column-gap: 2px;
	align-items: center;
}

#mcs_custom-fields_tab .toggle-view[aria-pressed="true"] {
	background: #2271b1;
	color: #f6f7f7;
}

.button-secondary.delete,
#mcs_custom-fields_tab .toggle-delete {
	color: #8a2424;
	background: #fcf0f1;
	border-color: #8a2424;
}

.button-secondary.delete:hover,
.button-secondary.delete:focus,
#mcs_custom-fields_tab .toggle-delete:focus,
#mcs_custom-fields_tab .toggle-delete:hover {
	background: #8a2424;
	color: #fcf0f1;
}

.mcs-field-notice {
	margin: 5px 0 15px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left-width: 4px;
	box-shadow: 0 1px 1px rgba( 0,0,0,0.04);
	padding: 1px 12px;
}

.mcs-field-notice p {
	margin: .5em 0;
	padding: 2px;
}

.mcs-field-notice.error {
	border-color: #8a2424;
	background: #fcf0f1;
}

.mcs-field-notice.success {
	border-color: #008a20;
	background: #edfaef;
}

#mcs_custom-fields_tab button .dashicons {
	vertical-align: text-top;
}

.mc-form-selector a {
	line-break: anywhere;
}

.mc-sortable li {
	flex-wrap: wrap;
}

.mc-flex.mc-form-title {
	align-items: end;
	column-gap: 4px;
	justify-content: start;
}

.mc-field-editor {
	display: none;
	width: 100%;
}

.field-editor.dirty .button.hidden {
	display: inline-block;
}

.field-fields *[data-status="dirty"] {
	border-left: 5px solid #f0c33c;
}

.mc-sortable .mc-hidden button.edit {
	display: none;
}

.mc-sortable li.mc-editing .mc-field-editor {
	display: block;
}

.mc-sortable .dashicons-move {
	height: 16px;
	font-size: 16px;
	color: #646970;
	margin-right: 8px;
}

.mc-sortable li.mc-editing .edit {
	background: #2c3338;
	color: #fff;
}

.mc-form-builder {
	display: grid;
	grid-template-columns: 10em auto;
	column-gap: 20px;
}

@media screen and (max-width: 782px) {
	.mc-form-builder {
		display: block;
	}
	.mc-form-builder .mc-form-title.mc-flex {
		display: block;
	}
	.mc-form-builder .mc-flex select {
		width: 100%;
	}
}

.mcs-tabs {
	margin-top: 20px;
}

.mcs-tabs .metabox-holder {
	padding-top: 0 !important;
	margin-top: -10px !important;
}

.mc-tabs.mcs-settings .tabs a {
	font-size: 1em;
	font-weight: 700;
}

#mcs_importer_mode, fieldset.mcs-importer {
	width: 100%;
	padding: 2em;
	background: #f6f6f7;
	border: 1px solid #dcdcde;
}

#mcs_importer_mode {
	font-weight: 700;
	font-size: 1.4em;
}

#mcs_importer_mode:hover {
	border: 1px solid #2271b1;
	color: #2271b1;
}

fieldset.mcs-importer {
	width: auto;
	padding: 1em;
}

.mcs-importer-progress {
	margin: 1em 0;
	padding: 1em;
	background: #f6f7f7;
}

.mcs-importer-progress span {
	overflow: hidden;
	background: #2c3338;
	color: #fff;
	display: block;
	padding: 1em;
	margin: -1em;
}

.mcs-import-data li {
	padding: 3px 6px;
	display: block;
}

.mcs-import-data li.odd {
	background: #f6f7f7;
}

.mcs-import-data li.unknown {
	background: #f5e6ab;
}

.mcs-importer-schedule th:nth-of-type(1) {
	width: 10em;
}

.mcs-importer-schedule th:nth-of-type(3) {
	width: 6em;
}

.mcs-importer-schedule th:nth-of-type(4) {
	width: 8em;
}

.mcs-importer-schedule td:nth-of-type(4) {
	text-align: right;
}

#mcs_miscellaneous_tab .mcs-field-notes {
	display: block;
	padding: 6px 0;
	font-style: italic;
}

.toggles {
	border-bottom: 1px solid #a7aaad;
}

.toggles li {
	display: inline-block;
	margin-bottom: 0;
	border: 1px solid #a7aaad;
	border-bottom: 0px;
	background: #f0f0f1;
	position: relative;
	top: 1px;
	font-weight: 700;
}

.toggles li button {
	all: unset;
	padding: 6px;
}

.toggles li:has( button[aria-expanded="true"] ) {
	background: #fff;
}

.toggles li:has( button:focus, button:hover ) {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

.mc-generator input[type="checkbox"] + label {
	display: inline-block;
}

.mc-generator .mc-row {
	display: grid;
	grid-template-columns: 12em 1fr 6em;
	align-items: center;
	padding: 1em .5em;
	margin-bottom: .5em;
	column-gap: 1em;
}

.saved-submission-forms li {
	display: flex;
	align-items: center;
	column-gap: 4px;
}

.saved-submission-forms .dashicons {
	line-height: 1.2;
}

@media (max-width: 782px) {
	.mc-generator .mc-row {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}
}

.mc-generator .mc-row:nth-of-type(odd) {
	background: rgba( 0,0,0,.04 );
}

#mcs_miscellaneous_tab .mcs-custom-field {
	margin-bottom: 1rem;
}

#mcs_importer_tab .mcs-reset {
	display: none;
}

.mcs-manage-payment li label:nth-of-type(1) {
	display: inline-block;
	width: 9em;
}

.my-calendar-admin .mcs-payment-page .tablenav {
	font-size: 1.2em;
}

.my-calendar-admin .mcs-payment-page input {
	max-width: 100%;
}

.my-calendar-admin .mcs-payment-page tr:nth-of-type(even) {
	background: #f0f0f1;
}

.mc-search-view ul.labels label,
.mcs-settings ul.labels label {
	display: block;
}

.mc-search-view ul.labels,
.mcs-settings ul.labels {
	display: flex;
	flex-wrap: wrap;
	row-gap: 20px;
	column-gap: 20px;
}

.mcs-search input {
	width: 100%;
}

.mcs-earnings h3 {
	font-size: 1.1em;
}

.mcs-payment-filters {
	padding:.5em .5em .5em 2em;
	border: 1px solid #ccc;
	background: #f0f0f1;
	color: #1d2327;
	list-style-type: disc;
}

.submissions-status {
	padding: .5em;
	background: #00000008;
	border: 1px solid #c3c4c7;
}

.submissions-status ul {
	display: flex;
	column-gap: 1rem;
	row-gap: .5rem;
	flex-wrap: wrap;
}

.submissions-status li {
	margin: 0;
}

.my-calendar-admin .toggles {
	margin-bottom: 0;
	position: relative;
	bottom: -1px;
}

.my-calendar-admin fieldset.notifications {
	padding: 1rem;
	border: 1px solid #a7aaad;
}

.mc-notification-templates h3 {
	margin: 2em 0 0;
}

.mcs-row {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	column-gap: 16px;
	padding: 4px 4px 8px;
}

.mcs-row p {
	margin: .5em 0;
}

.mcs-row:nth-of-type(odd) {
	background: rgba( 0,0,0,.04 );
}

@media (max-width: 782px) {
	.mcs-row {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}
}

tr.editing, fieldset.editing {
	background: #fcf9e8;
}