/**
 * The following styles get applied inside the editor only.
 *
 * Replace them with your own styles or remove the file completely.
 */

.gelo-ai-block {
	.invisible {
		visibility: hidden !important;
	}

	.hidden {
		display: none !important;
	}

	.gelo-ai-block__preview-overlay {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
	}

	// The editing view for the HTML block is equivalent to block UI.
	// Therefore we increase specificity to avoid theme styles bleeding in.
	.block-editor-plain-text {
		background: #fff !important;
		border-radius: 2px !important;
		border: 1px solid #1e1e1e !important;
		box-shadow: none !important;
		box-sizing: border-box;
		color: #1e1e1e !important;
		font-family: Menlo, Consolas, monaco, monospace !important;
		font-size: 14px !important;
		line-height: 1.5;
		max-height: 400px;
		padding: 12px !important;
		min-height: 68px;
	}

	.components-base-control.components-checkbox-control {
		display: inline-flex;
	}

	.components-button-group {
		display: block;
		margin: 0.5rem 0;
		padding-right: 1rem;
		text-align: right;

		&.history-buttons-wrapper {
			text-align: left;

			.history-location {
				color: #333;
				font-size: 1.3rem;
				margin-left: 12px;
			}
		}

		.components-button {
			margin-left: 12px;
		}
	}

	.gelo-ai-block-errors {
		font-size: 1rem;

		.components-notice__actions {
			margin-top: 0.5rem;

			.components-notice__action {
				background-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
				border-radius: 2px;
				color: #fff;
				font-size: 0.875rem;
				padding: 0.5rem 1rem;
				text-decoration: none;
			}
		}
	}
}

@media (min-width: 600px) {
	.gelo-ai-block {
		.block-editor-plain-text {
			min-height: auto;
		}
	}
}
