@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";

.themes-toolbar-group.responsive-toolbar-group__swipe,
.themes-toolbar-group.responsive-toolbar-group__dropdown {
	padding: 0;

	.responsive-toolbar-group__full-list,
	.responsive-toolbar-group__swipe-list,
	.responsive-toolbar-group__grouped-list {
		display: flex;
		gap: 4px;
		justify-content: space-between;
		padding: 0;

		> div {
			&:first-of-type {
				margin-left: 0;
			}

			&:last-of-type {
				margin-right: 0;
			}
		}
	}

	.components-toolbar {
		background-color: transparent;
		border: 0;

		.components-button {
			line-height: 24px;
			padding: 4px 12px;

			&.responsive-toolbar-group__more-item {
				padding-right: 0;
			}

			&::before {
				transition: background-color 0.15s ease-in-out;
				border-radius: 4px;
				left: 0;
				right: 0;
			}
		}
	}

	.components-dropdown__content {
		border-radius: 4px;

		.components-menu-group > div {
			display: flex;
			flex-direction: column;
			gap: 4px;
		}

		.responsive-toolbar-group__menu-item {
			border-radius: 4px;
		}
	}
}
