#editor .edit-post-layout__metaboxes {
	padding: 0;
}

#editor .edit-post-layout__metaboxes .edit-post-meta-boxes-area {
	margin: 0;
}

#editor .postbox>.postbox-header .hndle {
	border-bottom: none;
}

div[id^="themerain_meta"] .inside {
	margin: 0 !important;
	padding: 0 !important;
}

.themerain-meta-field {
	display: grid;
	grid-template-columns: 1fr 4fr;
	color: #1e1e1e;
}

.themerain-meta-field {
	border-top: 1px solid #eee;
}

.themerain-hidden {
	position: absolute;
	top: -999em;
	left: -999em;
}

.themerain-meta-field * {
	box-sizing: border-box;
}

.themerain-meta-field input[type="text"],
.themerain-meta-field input[type="url"],
.themerain-meta-field input[type="number"],
.themerain-meta-field textarea {
	width: 100%;
}

.themerain-meta-field .button:not(.button-primary) {
	background-color: transparent;
}

.themerain-meta-label {
	padding: 15px;
	border-right: 1px solid #eee;
	background-color: #f9f9f9;
}

.themerain-meta-input {
	padding: 15px;
}

.themerain-meta-field .description {
	font-size: 12px;
	font-style: italic;
}

/* URL field */

.themerain-meta-url__wrap {
	position: relative;
}

.themerain-meta-url__wrap input[type="url"] {
	padding-left: 25px;
}

.themerain-meta-url__icon {
	pointer-events: none;
	opacity: .2;
	position: absolute;
	top: 7px;
	left: 8px;
	font-family: dashicons;
	font-style: normal;
	font-size: 14px;
}

.themerain-meta-url__icon::before {
	content: "\f319";
}

/* Toggle field */

.themerain-toggle {
	position: relative;
	width: 36px;
}

.themerain-toggle__track {
	width: 100%;
	height: 18px;
	border: 1px solid #1e1e1e;
	border-radius: 9px;
	background-color: transparent;
}

.is-checked > .themerain-toggle__track {
	border-color: var(--wp-admin-theme-color);
	background-color: var(--wp-admin-theme-color);
}

.themerain-toggle input[type="checkbox"]:focus+.themerain-toggle__track {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--wp-admin-theme-color);
}

.themerain-toggle input[type="checkbox"] {
	opacity: 0;
	z-index: 1;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.themerain-toggle__slider {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #1e1e1e;
	transition: transform .2s;
}

.is-checked > .themerain-toggle__slider {
	background-color: #fff;
	transform: translateX(18px);
}

/* Group field */

.themerain-meta-group .themerain-meta-input {
	display: flex;
	align-items: start;
}

.themerain-meta-group .button {
	margin-right: -1px;
	border-radius: 0;
}

.themerain-meta-group .button:first-child {
	border-radius: 3px 0 0 3px;
}

.themerain-meta-group .button:last-child {
	border-radius: 0 3px 3px 0;
}

.themerain-meta-group input {
	display: none;
}

/* Range */

.themerain-meta-range__value {
	cursor: default;
	margin-left: 10px;
}

.themerain-meta-range input[type=range] {
	-webkit-appearance: none;
	margin: 0;
	padding: 7px 0;
}

.themerain-meta-range input[type=range]:focus {
	outline: none;
}

.themerain-meta-range input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 3px;
	margin-top: -1px;
	border-radius: 1.5px;
	background: #ccd0d4;
}

.themerain-meta-range input[type=range]::-webkit-slider-thumb {
	cursor: pointer;
	height: 15px;
	width: 15px;
	margin-top: -6px;
	border-radius: 50%;
	background-color: var(--wp-admin-theme-color);
	-webkit-appearance: none;
}

.themerain-meta-range input[type=range]::-moz-range-track {
	width: 100%;
	height: 3px;
	margin-top: -1px;
	border-radius: 1.5px;
	background: #ccd0d4;
}

.themerain-meta-range input[type=range]::-moz-range-thumb {
	cursor: pointer;
	height: 15px;
	width: 15px;
	margin-top: -6px;
	border: 0;
	border-radius: 50%;
	background-color: var(--wp-admin-theme-color);
}

/* Color */

.themerain-meta-input .wp-picker-clear {
	margin-left: 6px;
	line-height: 28px !important;
}

.themerain-meta-color .button {
	border-color: #7e8993;
}

/* Media */

.themerain-meta-media__wrap {
	position: relative;
	width: 150px;
}

.themerain-meta-media__preview {
	position: relative;
	display: none;
	width: 150px;
	height: 150px;
	background-color: #f0f0f1;
	text-decoration: none;
	box-shadow: inset 0 0 15px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(0, 0, 0, .05);
}

.has-value > .themerain-meta-media__preview {
	display: block;
}

.themerain-meta-media__preview::before {
	content: "";
	pointer-events: none;
	z-index: 2;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

.themerain-meta-media__preview:focus {
	box-shadow: 0 0 0 4px var(--wp-admin-theme-color);
}

.themerain-meta-media__preview > img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.themerain-meta-media__preview > div {
	background-color: #eee;
	color: #888;
	font-family: dashicons;
	font-size: 80px;
	line-height: 150px;
	text-align: center;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}

.themerain-meta-media__preview > div::before {
	content: "\f490";
}

.themerain-meta-media__remove {
	opacity: 0;
	display: none;
	position: absolute;
	top: 4px;
	left: 116px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #1e1e1e;
	color: #fff;
	font-family: dashicons;
	line-height: 30px;
	text-align: center;
	text-decoration: none;
}

.has-value:hover .themerain-meta-media__remove {
	opacity: 1;
}

.themerain-meta-media__remove::before {
	content: "\f335";
}

.themerain-meta-media__remove:hover {
	color: #b52727;
}

.has-value > .themerain-meta-media__remove {
	display: block;
}

.has-value > .themerain-meta-media__upload {
	display: none;
}

/* Taxonomy field */

.themerain-meta-taxonomy-holder {
	overflow: auto;
	max-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: start;
	padding: 10px;
	border: 1px solid #ccd0d4;
	border-radius: 3px;
}

.themerain-meta-taxonomy-holder label {
	line-height: 22px;
}
