.enb-device-toggle {

	.enb-device-toggle-button {
		display: grid;
		place-content: center;
		block-size: 32px;
		border-radius: 50% !important;

		&:not(.selected) {
			display: none;
		}

		&:hover {
			background-color: var(--enb-color-200);
		}
	}
}

.block-editor-block-inspector:has(.enb-sticky-device-toggle) {

	> .block-editor-block-card + div {
		position: relative;
		display: flex;
		flex-direction: column;
	}
}

.enb-sticky-device-toggle {
	position: sticky;
	top: 46px;
	z-index: 20;
	order: -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-block: 1px solid rgb(221, 221, 221);
	background-color: var(--enb-color-white);

	button.enb-device-toggle-button {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		border-radius: 0;
		padding-block-end: 8px;
		block-size: 56px;
		font-size: 11px;
		font-weight: 600;

		&:focus {
			box-shadow: none;
		}

		svg {
			width: 24px;
			height: auto;
		}

		&:hover,
		&.selected {
			// background-color: var(--enb-color-200);
			background-color: var(--enb-color-primary-100);
			color: var(--wp-components-color-foreground, #1e1e1e);

			svg {
				color: var(--enb-color-primary-600);
			}
		}

		&.selected {
			background-color: var(--enb-color-primary-50);
		}
	}
}
