.e-page {
	--color: var(--wp-admin-theme-color, #3858e9);
}

.e-box {
	background: #fff;
	padding: 12px 24px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.e-widget_actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	text-align: center;
}

.e-widget_actions input {
	display: none;
}

.auto-fold #wpcontent,
#wpcontent {
	padding-left: 0;
}

.e-header {
	position: sticky;
	top: 32px;
	z-index: 9;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	border-bottom: 1px solid #e0e0e0;
	padding: 12px 24px;
	background: #fff;
}

.e-branding {
	display: flex;
	align-items: center;
	gap: 8px;
}

.e-branding svg {
	width: 40px;
	height: 40px;
}

.e-branding h1 {
	font-size: 20px;
	margin: 0;
}

.e-tabs {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-inline: 24px;
	border-bottom: 1px solid #e0e0e0;
}

.e-tab {
	display: flex;
	align-items: center;
	height: 54px;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
}

.e-tab:focus {
	outline: none;
	box-shadow: none;
	border-radius: 0;
}

.e-tab-active,
.e-tab-active:focus {
	color: var(--color);
	box-shadow: inset 0 -4px 0 currentColor;
}

.e-tab:hover {
	color: var(--color);
}

.e-subTabsBar {
	display: none;
	padding-bottom: 24px;
}

.e-subTabsBar-active {
	display: block;
}

.e-subTabs {
	display: none;
	align-items: center;
}

.e-subTabs-active {
	display: flex;
}

.e-docsLink {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	height: 54px;
	color: var(--color);
	text-decoration: none;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
}

.e-docsLink_text {
	text-decoration: none;
}

.e-docsLink:hover,
.e-docsLink:focus {
	color: var(--color);
	text-decoration: none;
	box-shadow: none;
	outline: none;
}

.e-docsLink:hover .e-docsLink_text,
.e-docsLink:focus .e-docsLink_text {
	text-decoration: underline;
}

.e-docsLink .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
}

.e-subTab {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}

.e-subTab:focus {
	outline: none;
	box-shadow: none;
}

.e-subTab:hover {
	color: var(--color);
	text-decoration: none;
}

.e-subTab + .e-subTab::before {
	content: '|';
	display: inline-block;
	margin-inline: 8px;
}

.e-subTab-active {
	color: var(--color);
}

/* Make the tabs borders reach box edges */
.e-content.e-box {
	padding: 0;
}

.e-tabPanes {
	padding: 24px;
}

.e-header .submit {
	margin: 0;
	padding: 0;
	min-width: 160px;
	text-align: right;
}

.e-header .message {
	position: absolute;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	animation: fadein .5s;
	font-weight: 600;
	color: #00a32a;
}

@keyframes fadein {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.e-header .button {
	font-size: 14px;
	font-weight: 500;
	transition: .1s;
	min-height: 40px;
	line-height: 40px;
	padding: 0 20px;
	margin: 0;
}

.e-body {
	max-width: 1140px;
	margin-inline: auto;
	margin-top: 48px;
	padding-inline: 24px;
}

.e-wrapper {
	display: grid;
	grid-template-columns: 1fr 300px;
	align-items: start;
	gap: 24px;
}

.e-widget {
	margin-bottom: 24px;
}

.e-widget_title {
	font-size: 16px;
	margin-top: 8px;
}

.nav-tab:focus {
	box-shadow: none;
}

.e-tabPane {
	display: none;
}

.e-tabPane-active {
	display: block;
}

.e-tabPane > *:first-child {
	margin-top: 0;
}

.featureBox+.featureBox {
	margin-top: 24px;
}

.featureBox {
	display: flex;
	align-items: start;
	gap: 8px;
}

.featureBox_switch {
	cursor: pointer;
	display: flex;
}

.featureBox .featureBox_input {
	display: none;
}

.featureBox_icon {
	--size: 14px;
	--border: 3px;
	--gap: 2px;

	display: inline-block;
	background: #ccc;
	height: calc(var(--size) + 2 * var(--border));
	width: calc(2 * var(--size) + 2 * var(--border) + var(--gap));
	border-radius: 99px;
	position: relative;
	transition: background .2s;
}

.featureBox_icon:before {
	display: inline-block;
	content: '';
	height: var(--size);
	width: var(--size);
	border-radius: 99px;
	position: absolute;
	top: var(--border);
	left: var(--border);
	background: #fff;
	transition: left .2s;
}

.featureBox_input:checked+.featureBox_icon {
	background: var(--color);
}

.featureBox_input:checked+.featureBox_icon:before {
	left: calc(var(--size) + var(--border) + var(--gap));
}

.featureBox_body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.featureBox_title {
	font-weight: 600;
}

.featureBox_description {
	font-size: 12px;
	color: #757575;
}

.featureBox_more {
	margin-top: 12px;
	display: none;
}

.featureBox:has(.featureBox_input:checked) .featureBox_more {
	display: block;
}

.e-tabPane[data-tab="database"] .featureBox_title {
	font-weight: 400;
}

/* Form controls */
.formControls {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 16px;
}

fieldset label {
	font-size: 14px;
	font-weight: 600;
	display: block;
	margin-top: 12px;
	margin-bottom: 4px;
}

p.description {
	font-size: 12px;
	color: #757575;
}

@media (max-width: 767px) {
	.e-header {
		position: static;
		padding-inline: 12px;
		justify-content: center;
	}

	.e-branding {
		display: none;
	}

	.e-body {
		padding-inline: 12px;
	}

	.e-wrapper {
		grid-template-columns: 1fr;
	}

	.e-tabs {
		flex-wrap: wrap;
		gap: 16px;
	}
}