body.mkl-pc-settings h1 {
	position: relative;
	background: #FFF;
	margin-left: -20px;
	margin-top: -9px;
	margin-right: -20px;
	padding: 20px;
	display: block !important;
}
body.mkl-pc-settings .wrap > header {
	margin-bottom: 20px;
}

body.mkl-pc-settings .wrap > header .links {
	margin-top: 10px;
	text-align: right;
}
body.mkl-pc-settings h1 img.mkl-logo {
	max-width: 200px;
}
body.mkl-pc-settings h1 span.by {
	position: absolute;
	right: 20px;
	top: 10px;
	font-size: 1rem;
}

body.mkl-pc-settings h1 span.version {
	display: inline-block;
	margin: 0;
	padding: 0;
	line-height: 1;
	vertical-align: top;
	transform: translate(4px, -6px);
	color: #CCC;
	font-size: 1rem;
}

.mkl-settings-content {
	display: none;
}

.mkl-settings-content.active {
	display: block;
}

.mkl-settings-content table.form-table {
    margin-bottom: 2em;
}

.mkl-settings-content table.form-table tr.section-heading th, 
.mkl-settings-content table.form-table tr.section-heading td {
    border-bottom: 1px solid #CCC;
}

.mkl-pc-addons {
	display: flex;
	flex-wrap: wrap;
}

.mkl-pc-addon {
	
	padding: 1em;
	margin: 0 1.9em 2em 0;
	width: calc(32.99% - 1em);
	position: relative; 
	border: 1px solid #ddd;
	/* flex-wrap: wrap; */
	background: #fff;
	-webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1);
	box-shadow: 0 1px 1px -1px rgba(0,0,0,0.1);
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.mkl-pc-addon .button span.dashicons {
	transform: translate(4px, -1px);
}
.mkl-pc-addon:nth-child(3n) {
	margin-right: 0;
}

.mkl-pc-addon .desc {
	margin-bottom: 2em;
}
.mkl-pc-addon h4 {
	font-size: 1.4em;
	position: relative;
}

.mkl-pc-addon h4 span.installed {
	position: absolute;
	right: 10px;
	top: -35px;
	background: #ace64f;
	font-size: 12px;
	color: #477300;
	display: inline-block;
	padding: 6px 16px;
	line-height: 1;
	border-radius: 40px;
	box-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 5px 12px rgba(72, 117, 0, 0.21);
	text-transform: uppercase;
}

.mkl-pc-addon figure {
	background: #e6e6e6;
	margin: -1em -1em 1em -1em;
	padding: 2em 1em;
	text-align: center;
	height: 80px;
}

.mkl-pc-addon figure img {
	max-width: 100%;
	max-height: 100%;
}

.mkl-pc-addon:not(.installed):not(.mkl-pc-theme) {
	background: #f5f5f5;
}

.mkl-pc-addon.mkl-pc-theme {
	width: 100%;
	display: flex; 
	align-items: center;
}
.mkl-pc-addon.mkl-pc-theme figure {
	background: transparent;
	width: 240px;
	height: auto;
	padding: 0;
	/* padding-top: 4em; */
	text-align: left;
	margin: 3em 0em 1em -1em;
}

/* LICENSE */
.mkl-pc-addon .license {
	border-top: 1px solid #dedede;
}
.mkl-pc-addon .license p {
	margin: 0;
	float: left;
}
.mkl-pc-addon .license a.mkl-edit-license {
	float: right;
	margin-top: 9px;
	clear: right;
}
.license a.mkl-edit-license::after {
	font-family: 'dashicons';
	content: '\f140';
	display: inline-block;
	font-size:1.4em;
	vertical-align: middle;
}
.license a.mkl-edit-license.open::after {
	content: '\f143';
}

.mkl-pc-addon .license a.mkl-edit-license + form {
	clear: both;
}

.mkl-pc-addon .license form input[type=text] {
	padding: 4px 7px;
}
.mkl-pc-addon .installed p:before {
	color: #79ba49;
	content: '\f147';
	font-family: 'dashicons';
	font-size: 2em;
	vertical-align: middle;
}

.mkl-pc-addon .mkl-edit-license + form {
	display: none;
}
.mkl-pc-addon .mkl-edit-license.open + form {
	display: block;
}

@media only screen and (max-width: 860px) {
	.mkl-pc-addon {
		width: calc(50% - 1em);
		margin-right: 1em;
	}
	.mkl-pc-addon:nth-child(3n) {
		margin-right: 1em;
	}
	.mkl-pc-addon:nth-child(2n) {
		margin-right: 1em;
	}

}

@media only screen and (max-width: 600px) {
	.mkl-pc-addons {
		flex-direction: column;
	}
	.mkl-pc-addon {
		width: 100%;
		margin-right: 0;
	}

}

/*
	Theme settings
*/

.theme_setting {
	background: #FFF;
	border-radius: 6px;
	padding: 1em;
	box-shadow: 0 2px 5px rgb(0 0 0 / 15%);
}

.theme_setting .theme_setting_view {
	display: flex;
	flex-wrap: wrap;
}

.theme_setting img {
	max-width: 150px;
	border-radius: 4px;
	display: block;
}

.theme_setting .img {
	padding-right: 1em;
}

.theme_setting .content {
    box-sizing: border-box;
	border-left: 1px solid #efefef;
	padding-left: 1em;
	width: calc(100% - (150px + 1em ));
}

.theme_setting .content h4 {
	margin-top: 0;
	margin-bottom: 0;
}

.theme_setting .content p {
    margin-bottom: 0.7em;
}

.theme_setting .content p ~ button {
    margin-right: .5em;
}

.theme_setting p.no-theme {
    margin-right: .5em;
}

.mkl-pc__theme-selector {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba(0,0,0,.6);
	z-index: 20000;
	display: flex;
	justify-content: center;
	align-items: center;
}

.mkl-pc-themes {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(92vw, 1180px);
	height: min(86vh, 820px);
	background: #f0f0f1;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}

.mkl-pc-themes__layout {
	display: flex;
	flex: 1;
	min-height: 0;
}

.themes-list {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
	position: relative;
	flex: 0 0 300px;
	width: 300px;
	height: auto;
	min-height: 0;
	padding: 12px;
	box-sizing: border-box;
	overflow-y: auto;
}

.mkl-pc-themes footer {
	display: flex;
	position: relative;
	flex: 0 0 auto;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	height: auto;
	padding: 12px 16px;
	border-top: 1px solid #dcdcde;
	background: #fff;
	box-sizing: border-box;
}

.mkl-pc-themes .actions {
	display: flex;
	gap: 8px;
	padding: 0;
}

.mkl-pc-themes .actions .button {
	margin: 0;
}

.themes-list .mkl-pc__theme {
	display: flex;
	flex: 0 0 auto;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 8px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.themes-list .mkl-pc__theme:hover {
	background: #f6f7f7;
}

.themes-list .mkl-pc__theme.selected,
.themes-list .mkl-pc__theme:focus-within {
	background: #f0f6fc;
	box-shadow: inset 0 0 0 2px #2271b1;
}

.themes-list .mkl-pc__theme .trigger {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	appearance: none;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 3;
}

.themes-list .mkl-pc__theme .trigger:focus {
	outline: none;
}

.themes-list .mkl-pc__theme .theme-preview {
	flex: 0 0 108px;
	width: 108px;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	overflow: hidden;
}

.themes-list .mkl-pc__theme .theme-preview img {
	display: block;
	width: 100%;
	height: 64px;
	max-width: none;
	object-fit: cover;
	object-position: center top;
}

.themes-list .mkl-pc__theme .text {
	position: static;
	visibility: visible;
	opacity: 1;
	height: auto;
	width: auto;
	background: transparent;
	padding: 0;
}

.themes-list .mkl-pc__theme .text h4 {
	margin: 0;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
}

.themes-list .mkl-pc__theme .theme-preview .no-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	padding: 0;
}

.themes-list .mkl-pc__theme .no-preview--label {
	position: static;
	transform: none;
	width: auto;
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	text-align: center;
	color: #a7aaad;
}

.theme-detail {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	background: #fff;
	border-left: 1px solid #dcdcde;
}

.theme-detail__empty {
	margin: auto;
	color: #646970;
}

.theme-detail__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 0;
	margin: 16px 16px 0;
	padding: 12px;
	box-sizing: border-box;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.theme-detail__preview img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.theme-detail__preview .no-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 240px;
}

.theme-detail__preview .no-preview--label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #a7aaad;
}

.theme-detail__meta {
	flex: 0 0 auto;
	padding: 14px 20px 16px;
}

.theme-detail__meta h4 {
	margin: 0 0 6px;
	font-size: 16px;
}

.theme-detail__meta .desc {
	color: #50575e;
	font-size: 13px;
}

.theme-detail__meta .desc p {
	margin: 0;
}

.theme-detail__meta .tags {
	margin-top: 6px;
	color: #a7aaad;
	font-size: 12px;
}

.configurable-products-list.loading {
    position: relative;
}

.configurable-products-list.loading::after {
    content: 'Loading configurable products...';
    display: flex;
    align-items:center;
    justify-content:center;
    position: absolute;
    background: #f0f0f1cf;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-transform: uppercase;
}

button.mkl-settings-toggle-images-in-library[data-mode="hide"] .show-configurations-label,
button.mkl-settings-toggle-images-in-library[data-mode="show"] .hide-configurations-label{
    display: none;
}

.mkl-settings-content[data-content="settings"].active {
    display: flex;
    margin-top: 20px;
    box-shadow: 0 5px 20px #00000020;
    background: #f7f5f5;
}

.mkl-settings-content[data-content="settings"] section:not(.active) {
	display: none;
}

.mkl-settings-content[data-content="settings"] .submenu {
    width: 230px;
    background: #FFF;
}

.mkl-settings-content[data-content="settings"] .submenu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mkl-settings-content[data-content="settings"] .submenu a.active {
	border-left: 4px solid var(--wp-admin-theme-color, var(--wc-blue, #000));
	background: #f7f5f5;
	color: #000;
	box-shadow: 2px -2px 4px -2px inset #0000002e;
}

.mkl-settings-content[data-content="settings"] .submenu a.active:focus,
.mkl-settings-content[data-content="settings"] .submenu a.active:active {
	outline: none;
	box-shadow: none;
}

.mkl-settings-content[data-content="settings"] .submenu + form {
	padding: 20px;
	box-sizing: border-box;
	width: calc( 100% - 250px);
	padding-top: 0;
}

.mkl-settings-content[data-content="settings"] .submenu + form  p.submit {
	position: sticky;
	bottom: 0;
	background: #f7f5f5;
	margin-left: -20px;
	margin-right: -20px;
	padding: 20px;
	box-shadow: 0 -20px 25px -25px #0000003d;
}

body.mkl-pc-settings tr.heading {
    border-bottom: 1px solid #CCC;
}
body.mkl-pc-settings tr.heading th {
    text-transform: uppercase;
}

.mkl-settings-content fieldset.checkboxes label {
	display: block
}

@media (max-width: 900px) {
	.mkl-pc-themes {
		width: 96vw;
		height: 94vh;
	}

	.mkl-pc-themes__layout {
		flex-direction: column;
	}

	.themes-list {
		flex: 0 0 auto;
		flex-direction: row;
		width: 100%;
		min-width: 0;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.themes-list .mkl-pc__theme {
		flex: 0 0 168px;
		width: 168px;
		flex-direction: column;
		align-items: stretch;
	}

	.themes-list .mkl-pc__theme .theme-preview {
		flex-basis: auto;
		width: 100%;
	}

	.themes-list .mkl-pc__theme .theme-preview img,
	.themes-list .mkl-pc__theme .theme-preview .no-preview {
		height: 84px;
	}

	.theme-detail {
		border-left: 0;
		border-top: 1px solid #dcdcde;
	}
}
