/* =========================================================
   Dynamic Visibility
   ========================================================= */

.jet-menu-dv {
	>.components-base-control:first-child {
		margin-top: 16px;
	}

	.jet-menu-dv__rules {
		margin-top: 12px;

		.components-base-control .components-checkbox-control {
			margin-top: 14px;
		}
	}

	.jet-menu-dv__rule {
		padding: 8px 0;
		margin-bottom: 8px;
	}

	&__row {
		display: flex;
		gap: 12px;
		align-items: flex-start;

		.components-base-control {
			flex: 1 1 auto;
			min-width: 0;
		}
	}

	&__row + &__row {
		margin-top: 10px;
	}

	&__remove.components-button.is-tertiary {
		display: flex;
		align-items: center;
		margin-left: auto;
		margin-top: 22px;

		.components-button {
			padding: 0;
			font-size: 12px;
		}
	}

	&__footer {
		display: flex;
		justify-content: flex-start;
		margin-top: 8px;
	}

	&__relation {
		margin-top: 14px;
		padding-top: 14px;
		border-top: 1px solid #dcdcde;
	}
}

.jet-menu-dv-roles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 16px;
	margin-top: 6px;

	.components-checkbox-control__label {
		word-break: break-word;
	}
}

@media (max-width: 782px) {
	.jet-menu-dv {
		&__row {
			flex-direction: column;
			align-items: stretch;
		}

		&__remove {
			margin-left: 0;
			justify-content: flex-end;
			padding-bottom: 0;
			margin-top: 0;
		}
	}

	.jet-menu-dv-roles {
		grid-template-columns: 1fr;
	}
}
