/* Editor style: Page title in a box */
.editor-visual-editor__post-title-wrapper {
	margin-top: 0 !important;
}

.editor-visual-editor__post-title-wrapper .wp-block-post-title {
	border: 1px solid var(--border-color);
	border: 0;
	padding: var(--spacing-md);
	background-color: var(--color-state-default);
	border-radius: var(--border-radius-md);
	margin: var(--spacing-md);
	font-size: 2rem;
	line-height: 2.4rem;
	font-family: sans-serif;
	font-weight: 700;
}

.components-checkbox-control__input[type="checkbox"] {
	width: 16px;
	height: 16px;
	min-width: initial;
}

.inline-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.inline-buttons.space {
	justify-content: space-between;
}

.inline-buttons.center {
	justify-content: center;
}

.tot-core-components-media-control {
	position: relative;
}

.tot-core-components-media-control .buttons {
	position: absolute;
	z-index: 3;
	padding: var(--spacing-sm);
	background: rgba(255, 255, 255, 0.7);
	background: #fff;
	border-radius: var(--border-radius-sm);
	opacity: 0;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	/* transition: opacity 0.2s ease-in-out; */
}

.tot-core-components-media-control img {
	z-index: 1;
	cursor: pointer;
	width: 100%;
	height: auto;
	display: block;
}

.tot-core-components-media-control .components-base-control__input {
	position: relative;
	border: solid 1px var(--border-color);
	max-width: 500px;
	border-radius: var(--border-radius-sm);
	outline: solid 2px transparent;
	overflow: hidden;
}

.tot-core-components-media-control .components-base-control__input:hover {
	outline: solid 2px var(--border-color);
}

.tot-core-components-media-control
	.components-base-control__input:hover:before {
	content: "";
	position: absolute;
	z-index: 2;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
}

.tot-core-components-media-control
	.components-base-control__input:hover
	.buttons {
	opacity: 1;
}

.tot-core-components-textarea-counter-control .components-textarea-counter {
	position: relative;
}

.tot-core-components-textarea-counter-control .components-base-control__field {
	position: relative;
}

.tot-core-components-textarea-counter-control .textarea-counter {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: var(--color-input-background);
	font-size: 10px;
	line-height: 10px;
	color: var(--color-text-muted);
	padding: 10px;
	border-bottom-left-radius: var(--border-radius-sm);
	border-bottom-right-radius: var(--border-radius-sm);
}

.tot-core-components-textarea-counter-control
	.components-textarea-control__input {
	padding-bottom: 30px !important;
	width: 100%;
	min-height: 100px;
	display: block;
}

.tot-core-components-media-control .components-base-control__label,
.tot-core-components-textarea-counter-control .components-base-control__label {
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
	display: block;
	margin-bottom: calc(8px);
	padding: 0px;
}

.components-mover-control-buttons {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
}

.components-mover-control-buttons .components-button.has-icon {
	height: 20px;
}

.components-mover-control-buttons .components-button.has-icon::before {
	height: calc(100% - 4px);
}

.components-mover-control-buttons .components-button.has-icon.is-up-button svg {
	top: 3px;
	flex-shrink: 0;
}

.components-mover-control-buttons
	.components-button.has-icon.is-down-button
	svg {
	bottom: 3px;
	flex-shrink: 0;
}

.is-root-container.block-editor-block-list__layout
	> .block-editor-block-list__block {
	padding-left: 1rem !important;
	padding-right: 1rem !important;
}

.is-root-container.block-editor-block-list__layout
	> .block-editor-block-list__block.is-reusable {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.is-root-container.block-editor-block-list__layout
	> .block-editor-block-list__block.is-reusable
	> div {
	padding-left: 1rem !important;
	padding-right: 1rem !important;
}

.wp-block-image.is-selected:focus:after,
.wp-block-image.is-selected:after {
	border-radius: inherit;
}
