/**
 * #.# Editor Styles
 *
 * CSS for just Backend enqueued after style.scss
 * which makes it higher in priority.
 */
@import "../../common";

.wp-block-ub-button-block {
	margin: 0 auto;
}
.ub-buttons {
	&.orientation-button-row {
		.ub-add-button {
			align-self: center;
		}
	}
	&.orientation-button-column {
		&.align-button-center {
			.ub-add-button {
				align-self: center;
			}
		}
		&.align-button-left {
			.ub-add-button {
				align-self: flex-start;
			}
		}
		&.align-button-right {
			.ub-add-button {
				align-self: flex-end;
			}
		}
		&.align-button-space-between {
			.ub-add-button {
				align-self: flex-start;
			}
		}
	}
}

.ub_button_url_input {
	display: flex;
	align-items: center;
	margin-top: 5px;
}

.ub_button_input_box {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	box-sizing: border-box;
}

.flex-container {
	display: flex;
}

.ub-button-icon-select {
	min-width: 54px;
	min-height: 54px;
	padding: 8px;
	border: 1px solid #8d96a0;
}

.ub-button-available-icon {
	display: inline;
	min-width: 54px;
	min-height: 51px;
}

.ub-button-grid {
	display: grid;
	grid-template-columns: 5fr 2fr;
	> p {
		align-self: center;
	}
}

.ub-button-grid-selector {
	justify-self: self-end;
}

.ub-button-block-main {
	cursor: auto;
}

.ub_button_popover {
	padding: 10px;
	.components-base-control:not(:last-of-type) {
		margin-bottom: 0;
	}
}
.ub-buttons > * {
	vertical-align: middle;
}

.ub-button-delete {
	position: relative;
	.dashicons-dismiss {
		position: absolute;
		top: -9px;
		right: -9px;
	}
}

#ub-button-radius-panel {
	display: flex;
	.components {
		&-range-control {
			width: 180px;
		}
		&-button {
			height: 30px;
			font-size: 11px;
		}
		&-button-group {
			display: flex;
			transform: translateY(30%);
		}
	}
}

.ub-button-content-holder {
	align-items: center;
}

.ub-button-icon-position > .components-base-control__field {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
}
