:root {
	--ska-primary: #2fa4e7;
	--ska-primary--rgb: 47, 164, 231;
	--ska-color-negative: #db2828;
	--ska-color-positive: #21ba45;
	--ska-color-warning: #f2c037;
	--ska-color-info: #31ccec;
	--ska-wc: #a46497;
	--ska-wc--rgb: 164, 100, 151;
	--ska-code-font: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ska-blocks--use-code-inputs {

	input {

		&:not(:placeholder-shown) {
			font-family: var(--ska-code-font);
		}
	}
}

/** Record editor in full screen when editing attributes/variables. */
.ska-blocks--record-editor--wide {

	& > .components-base-control__field > .ska-record-editor__row > .components-base-control {

		&:nth-child(1) {
			flex-grow: 1;
		}

		&:nth-child(2) {
			flex-grow: 3;
		}
	}
}

.components-base-control {

	&.ska-invalid {

		input[type="text"] {
			--wp-admin-theme-color: #cf2e2e;
			border-color: #cf2e2e !important;
		}
	}
}

.ska-blocks__modal {

	fieldset legend,
	label.ska-label {
		padding: 0;
		margin-bottom: 4px;
		text-transform: uppercase;
		font-weight: 500;
		font-size: 11px;
		line-height: 1.4;
	}
}

.ska-code {
	background-color: rgba(0, 0, 0, .08);
	border-radius: 3px;
	display: inline-block;
	font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", monospace;
	font-size: .875em;
	font-weight: bold;
	padding: 1px 6px;
	vertical-align: baseline;
	line-height: calc(1.4285em - 2px);
}
